jtm.dev/assets/style.css

106 lines
1.4 KiB
CSS

body {
background: white;
font: 15pt/1.5em sans-serif;
margin: auto;
max-width: 120ch;
min-height: 100%;
}
body > header {
color: #EEEEEE;
background: #111111;
padding: 20px;
}
h1, h2, h3 {
margin: 5px 0;
}
section, article {
margin: 10px 0;
}
.experience h3 {
display: inline-block;
}
.experience-duration {
float: right;
}
.container {
display: flex;
flex-flow: row-reverse wrap;
align-items: stretch;
}
.container:not(header) {
background-color: #FAFAFA;
}
.content {
padding: 25px;
}
article {
background-color: #FAFAFA;
padding: 25px;
padding-top: 5px;
padding-right: auto;
margin: 0;
}
p, article li {
max-width: 75ch;
}
.sidebar {
padding: 25px;
min-width: 23ch;
flex-grow: 1;
}
.sidebar:not(nav) {
background-color: #F0F0F0;
color: #111;
}
h1:not(::parent.noflex) {
display: inline-block;
align-self: center;
}
body > header:not(.noflex) {
display: flex;
flex-flow: row wrap;
align-items: stretch;
}
nav {
flex-grow: 1;
align-self: center;
margin-left: auto;
display: flex;
flex-flow: row-reverse wrap;
}
nav a {
color: white;
font-size: 1.5em;
}
nav ul {
list-style-type: none;
display: inline-block;
margin: 0;
}
nav li {
display: inline-block;
margin: 0 10px;
}
code {
font-weight: bold;
}