-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathaside.css
More file actions
44 lines (39 loc) · 879 Bytes
/
aside.css
File metadata and controls
44 lines (39 loc) · 879 Bytes
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
/* ASIDE */
/* Put content to the left or right of the page as an "aside". This is an
* alternative to footnotes.
*/
aside {
hyphens: auto; /* Hyphenate, as this text is quite narrow. */
}
aside {
position: absolute;
left: -15em;
width: 14em;
text-align: right;
font-size: .9em;
}
/* Alternative: place on the right.
aside {
position: absolute;
right: -15em;
width: 14em;
}
*/
@media (max-width: 83em) { /* Place inline if it won't fit on the screen. */
aside {
position: static;
width: auto;
text-align: left;
background-color: #f7f7f7;
padding: .4em 2em;
border: 1px solid var(--color-border);
hyphens: none;
}
}
/* Optional: place the page further to the right, so that there's more space for
* the aside.
* Adjust the media query above to max-width: 63em
.page {
left: 10em;
}
*/