diff options
Diffstat (limited to 'style.css')
-rw-r--r-- | style.css | 168 |
1 files changed, 96 insertions, 72 deletions
diff --git a/style.css b/style.css index 299b98b..2e59c5d 100644 --- a/style.css +++ b/style.css | |||
@@ -1,117 +1,141 @@ | |||
1 | body { | 1 | body { |
2 | font-size: 14pt; | 2 | font-size: 14pt; |
3 | line-spacing: 1.4; | 3 | line-spacing: 1.4; |
4 | } | 4 | } |
5 | 5 | ||
6 | img { | 6 | img { |
7 | max-width: 100%; | 7 | max-width: 100%; |
8 | } | 8 | } |
9 | 9 | ||
10 | pre, | 10 | pre, |
11 | code { | 11 | code { |
12 | overflow: scroll; | 12 | overflow: scroll; |
13 | } | ||
14 | |||
15 | #main { | ||
16 | max-width: 932px; | ||
17 | margin: auto; | ||
18 | } | ||
19 | |||
20 | .nav { | ||
21 | text-align: right; | ||
13 | } | 22 | } |
14 | 23 | ||
15 | details { | 24 | details { |
16 | margin: 1ch; | 25 | margin: 5px; |
17 | max-width: 78ch; | 26 | padding: 5px; |
18 | margin: auto; | 27 | position: relative; |
19 | padding: 1ch; | ||
20 | position: relative; | ||
21 | } | 28 | } |
22 | 29 | ||
23 | details[open] { | 30 | details[open] { |
24 | border: 1px solid; | 31 | border: 1px solid; |
25 | border-radius: 1ch; | 32 | border-radius: 5px; |
26 | min-height: 4.2em; | 33 | min-height: 4.2em; |
34 | } | ||
35 | |||
36 | .info { | ||
37 | position: relative; | ||
38 | } | ||
39 | .info[open] summary { | ||
40 | position: absolute; | ||
41 | bottom: 5px; | ||
42 | right: 5px; | ||
27 | } | 43 | } |
28 | 44 | ||
29 | summary { | 45 | summary { |
30 | display: block; | 46 | border-radius: 5px; |
31 | padding: 1ch; | 47 | display: block; |
32 | margin: -1ch; | 48 | padding: 5px; |
33 | font: 12pt monospace; | 49 | margin: -5px; |
50 | font: 12pt monospace; | ||
34 | } | 51 | } |
35 | 52 | ||
36 | .info { | 53 | .info { |
37 | font: 10pt monospace; | 54 | font: 10pt monospace; |
38 | position: absolute; | 55 | position: absolute; |
39 | right: 0; | 56 | right: 0; |
40 | bottom: 1px; | 57 | bottom: 1px; |
41 | border-radius: 1ch; | 58 | border-radius: 5px; |
42 | } | 59 | } |
43 | .info summary { | 60 | .info summary { |
44 | font: inherit; | 61 | font: inherit; |
45 | text-align: right; | 62 | text-align: right; |
46 | } | 63 | } |
47 | 64 | ||
48 | summary:hover { | 65 | summary:hover { |
49 | text-transform: uppercase; | 66 | text-transform: uppercase; |
50 | border-radius: 1ch; | 67 | border-radius: 5px; |
68 | } | ||
69 | |||
70 | time, | ||
71 | .time { | ||
72 | float: right; | ||
51 | } | 73 | } |
52 | 74 | ||
53 | .links { | 75 | .links { |
54 | float: right; | 76 | float: right; |
55 | } | 77 | } |
56 | 78 | ||
57 | .content { | 79 | .content { |
58 | margin: 2ch; | 80 | margin: 10px; |
59 | } | 81 | } |
60 | 82 | ||
61 | a { | 83 | a { |
62 | text-decoration: none; | 84 | text-decoration: none; |
63 | padding: 2px; | 85 | padding: 2px; |
64 | } | 86 | } |
65 | 87 | ||
66 | a:link, | 88 | a:link, |
67 | a:visited { | 89 | a:visited { |
68 | color: inherit; | 90 | color: inherit; |
69 | } | 91 | } |
70 | 92 | ||
71 | @media screen and (prefers-color-scheme: light) { | 93 | @media screen and (prefers-color-scheme: light) { |
72 | body { | 94 | body { |
73 | background: white; | 95 | background: white; |
74 | color: black; | 96 | color: black; |
75 | } | 97 | } |
76 | details { | 98 | details { |
77 | background: #ddd; | 99 | background: #ddd; |
78 | } | 100 | } |
79 | details[open] { | 101 | details[open] { |
80 | background: #bbb; | 102 | background: #bbb; |
81 | } | 103 | } |
82 | a:link { | 104 | a:link { |
83 | background: cyan; | 105 | background: cyan; |
84 | } | 106 | } |
85 | a:hover, | 107 | a:hover, |
86 | summary:hover { | 108 | summary:hover, |
87 | background: yellow; | 109 | details[open] > summary { |
88 | } | 110 | background: yellow; |
89 | pre, | 111 | } |
90 | code { | 112 | pre, |
91 | background: #eee; | 113 | code { |
92 | } | 114 | background: #eee; |
115 | } | ||
93 | } | 116 | } |
94 | 117 | ||
95 | @media screen and (prefers-color-scheme: dark) { | 118 | @media screen and (prefers-color-scheme: dark) { |
96 | body { | 119 | body { |
97 | background: #002222; | 120 | background: #002222; |
98 | color: #dee; | 121 | color: #dee; |
99 | } | 122 | } |
100 | details { | 123 | details { |
101 | background: #220000; | 124 | background: #220000; |
102 | } | 125 | } |
103 | details[open] { | 126 | details[open] { |
104 | background: #333; | 127 | background: #333; |
105 | } | 128 | } |
106 | a:link { | 129 | a:link { |
107 | background: #002244; | 130 | background: #002244; |
108 | } | 131 | } |
109 | a:hover, | 132 | a:hover, |
110 | summary:hover { | 133 | summary:hover, |
111 | background: brown; | 134 | details[open] > summary { |
112 | } | 135 | background: brown; |
113 | pre, | 136 | } |
114 | code { | 137 | pre, |
115 | background: #111; | 138 | code { |
116 | } | 139 | background: #111; |
140 | } | ||
117 | } | 141 | } |