diff options
author | Case Duckworth | 2022-07-17 23:10:22 -0500 |
---|---|---|
committer | Case Duckworth | 2022-07-17 23:10:22 -0500 |
commit | 6aa64d77e0f8ef2e42bdb90bc5ed3f6557e3ed81 (patch) | |
tree | d54f6332408be6add8865714cb2bf1ef54160bdf /style.css | |
download | sfeed-6aa64d77e0f8ef2e42bdb90bc5ed3f6557e3ed81.tar.gz sfeed-6aa64d77e0f8ef2e42bdb90bc5ed3f6557e3ed81.zip |
Initial commit
Diffstat (limited to 'style.css')
-rw-r--r-- | style.css | 176 |
1 files changed, 176 insertions, 0 deletions
diff --git a/style.css b/style.css new file mode 100644 index 0000000..0fa9d6b --- /dev/null +++ b/style.css | |||
@@ -0,0 +1,176 @@ | |||
1 | body { | ||
2 | background: #888; | ||
3 | } | ||
4 | |||
5 | main { | ||
6 | position: relative; | ||
7 | display: flex; | ||
8 | flex: column nowrap; | ||
9 | } | ||
10 | |||
11 | #items { | ||
12 | max-width: 70ch; | ||
13 | } | ||
14 | |||
15 | .entries tr { | ||
16 | vertical-align: baseline; | ||
17 | } | ||
18 | |||
19 | .fresh { | ||
20 | font-weight: bold; | ||
21 | } | ||
22 | |||
23 | .entry-timestamp { | ||
24 | font-family: monospace; | ||
25 | padding-right: 8px; | ||
26 | } | ||
27 | |||
28 | #list { | ||
29 | padding: 2ch; | ||
30 | } | ||
31 | |||
32 | aside { | ||
33 | flex-grow: 1; | ||
34 | } | ||
35 | |||
36 | aside li { | ||
37 | list-style: none; | ||
38 | text-align: right; | ||
39 | } | ||
40 | |||
41 | aside li:nth-child(even), | ||
42 | tr:nth-child(even) | ||
43 | { | ||
44 | background: inherit; | ||
45 | } | ||
46 | |||
47 | aside li:nth-child(odd), | ||
48 | tr:nth-child(odd) | ||
49 | { | ||
50 | background: #aaa; | ||
51 | } | ||
52 | |||
53 | a { display: block; } | ||
54 | |||
55 | a:link { | ||
56 | text-decoration: none; | ||
57 | color: black; | ||
58 | } | ||
59 | a:visited { | ||
60 | font-style: italic; | ||
61 | color: inherit; | ||
62 | } | ||
63 | aside a:visited { font-style: normal; } | ||
64 | a:hover { | ||
65 | background: yellow; | ||
66 | } | ||
67 | a:active{ | ||
68 | background: cyan; | ||
69 | } | ||
70 | |||
71 | header { | ||
72 | display: flex; | ||
73 | flex: row wrap; | ||
74 | margin: 1ch 0; | ||
75 | align-items: baseline; | ||
76 | justify-content: space-between; | ||
77 | } | ||
78 | header h2, header h1 { | ||
79 | margin: 0; | ||
80 | } | ||
81 | header h2 a { display: inline; } | ||
82 | header .top { | ||
83 | font-size: 80%; | ||
84 | text-align: right; | ||
85 | flex-grow: 1; | ||
86 | } | ||
87 | |||
88 | body>nav { | ||
89 | border-bottom: 1px solid black; | ||
90 | margin-top: 0; | ||
91 | text-align: right; | ||
92 | } | ||
93 | body>nav a { display: inline; } | ||
94 | |||
95 | .last-updated { | ||
96 | font-style: italic; | ||
97 | font-size: 80%; | ||
98 | text-align: right; | ||
99 | } | ||
100 | |||
101 | .entries { border-collapse: collapse; } | ||
102 | |||
103 | .entries, .entry-title { width: 100%; } | ||
104 | .entry-extra a { color: blue; display: inline; } | ||
105 | |||
106 | header a { display: inline; } | ||
107 | |||
108 | @media screen and (max-width: 720px) { | ||
109 | main, header { | ||
110 | flex-flow: row wrap; | ||
111 | padding:0; margin: 0; | ||
112 | } | ||
113 | * { border: none; } | ||
114 | .entries, .entry-title { width: 100%; } | ||
115 | html, body, #list, #items { padding: 0; margin: 0; max-width: 100%; } | ||
116 | header h2, header p { margin: 4px; } | ||
117 | aside a { display: inline; } | ||
118 | aside { | ||
119 | padding: 2ch; | ||
120 | order: 1; | ||
121 | border-bottom: 1px solid black; | ||
122 | } | ||
123 | aside ul { margin: 0; padding: 0; } | ||
124 | #list { order: 2; } | ||
125 | aside li { | ||
126 | display: inline; | ||
127 | background: inherit !important; | ||
128 | } | ||
129 | aside li::after { | ||
130 | background: inherit; | ||
131 | font-weight: normal; | ||
132 | content: " //"; | ||
133 | } | ||
134 | aside li:last-child::after { | ||
135 | content: ""; | ||
136 | } | ||
137 | .entry-timestamp { | ||
138 | display: none; | ||
139 | } | ||
140 | } | ||
141 | |||
142 | @media (prefers-color-scheme: light) { | ||
143 | body { background: white; color: black; } | ||
144 | aside li:nth-child(even), | ||
145 | tr:nth-child(even) { background: white; } | ||
146 | aside li:nth-child(odd), | ||
147 | tr:nth-child(odd) { background: #eee; } | ||
148 | a:link { color: black; } | ||
149 | a:hover { background: yellow; } | ||
150 | a:active { background: cyan; } | ||
151 | .entry-extra a { color: blue; } | ||
152 | body>nav { border-bottom: 1px solid black; } | ||
153 | } | ||
154 | |||
155 | @media (prefers-color-scheme: dark) { | ||
156 | body { background: black; color: white; } | ||
157 | aside li:nth-child(even), | ||
158 | tr:nth-child(even) { background: black; } | ||
159 | aside li:nth-child(odd), | ||
160 | tr:nth-child(odd) { background: #222; } | ||
161 | a:link { color: white; } | ||
162 | a:hover { color: yellow; background: inherit; } | ||
163 | a:active { color: cyan; background: inherit; } | ||
164 | .entry-extra a { color: cyan; } | ||
165 | body>nav { border-bottom: 1px solid white; } | ||
166 | } | ||
167 | |||
168 | @media screen and (max-width: 720px) and (prefers-color-scheme: dark) { | ||
169 | aside { border-bottom: 1px solid white; } | ||
170 | aside li { background: black !important; } | ||
171 | } | ||
172 | |||
173 | @media screen and (max-width: 720px) and (prefers-color-scheme: light) { | ||
174 | aside { border-bottom: 1px solid black; } | ||
175 | aside li { background: white !important; } | ||
176 | } | ||