1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
#main-grid > main {
grid-area: content;
color: #222;
}
#main-grid > header {
grid-area: header;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 10px;
margin-bottom: 1em;
border-bottom: 1px solid #ddd;
}
#main-grid > footer {
grid-area: footer;
color: #eee;
font-size: small;
text-align: right;
}
#top-title {
font-size: 1.4em;
}
#top-nav {
line-height: 2.5;
user-select: none;
}
#toc {
grid-area: toc;
border-bottom: 2px dashed #ccc;
margin-bottom: 1.5em;
padding-bottom: 1.8em;
}
#toc ul {
margin: 0 0 0 1.2em;
padding: 0.1em;
}
#main-grid {
display: grid;
grid-row-gap: 10px;
grid-template-areas:
"header"
"toc"
"content"
"footer";
width: 100%;
max-width: 1080px;
margin: 0 auto;
}
@media only screen and (min-width: 1000px) and (min-device-width: 700px) {
#main-grid {
grid-template-areas:
"header header"
"toc content"
"footer footer";
grid-column-gap: 2.5em;
grid-row-gap: 20px;
grid-row-gap: 1em;
grid-template-columns: 1fr 4fr;
}
#toc {
border-bottom: none;
font-size: 0.9em;
}
#main-grid > main > h1:first-child {
margin-top: 0;
}
}
@media only print {
#main-grid > header, #main-grid > footer, #toc {
display: none;
}
}
|