maud/docs/styles.css

84 lines
1.1 KiB
CSS
Raw Normal View History

2018-11-24 16:13:36 +13:00
html {
box-sizing: border-box;
font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
2019-03-16 19:13:04 +13:00
border-top: 0.75rem solid #808;
2018-11-24 16:13:36 +13:00
}
*, *::before, *::after {
box-sizing: inherit;
}
body {
margin: 0 auto;
padding: 0 0 2rem;
2018-11-24 16:13:36 +13:00
max-width: 40rem;
}
header h1 {
margin: 0 0 1rem -0.25rem;
2019-03-16 19:13:04 +13:00
font-size: 5rem;
line-height: 0.75;
2018-12-09 10:33:29 +13:00
}
2019-03-24 14:51:41 +13:00
header h1 a:link, header h1 a:visited {
2018-12-09 10:33:29 +13:00
color: #808;
2018-11-24 16:13:36 +13:00
}
nav ul {
padding: 0;
list-style: none;
}
footer {
font-size: 0.75rem;
}
2018-11-24 16:13:36 +13:00
pre {
padding: 1rem;
font: 15px Consolas, monospace;
2019-03-24 14:51:41 +13:00
background: #fef;
overflow: auto;
2018-11-24 16:13:36 +13:00
}
a:link {
text-decoration: none;
}
2019-03-24 14:51:41 +13:00
a:link, a:visited {
color: #a0a;
}
2018-11-24 16:13:36 +13:00
a:focus, a:hover, a:active {
background: #fdd;
}
@media (min-width: 60rem) {
body {
max-width: 56rem; /* 15 + 1 + 40 */
display: grid;
grid-template-rows: auto auto minmax(0, 1fr);
2018-11-24 16:13:36 +13:00
grid-template-columns: 15rem auto;
grid-gap: 0 1rem;
2018-11-24 16:13:36 +13:00
}
header {
2019-03-16 19:36:07 +13:00
grid-column: 1;
2018-11-24 16:13:36 +13:00
grid-row: 1;
}
nav {
grid-column: 1;
grid-row: 2;
}
main {
grid-column: 2;
grid-row: 1 / 4;
}
footer {
grid-column: 1;
grid-row: 3;
2018-11-24 16:13:36 +13:00
}
}