Skip to content

Commit 1b83dcb

Browse files
committed
Updated CSS per Stylelint recommendations
1 parent 75fc9d0 commit 1b83dcb

File tree

1 file changed

+92
-84
lines changed

1 file changed

+92
-84
lines changed

assets/styles/styles.css

Lines changed: 92 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
html {
77
height: 101%;
8-
text-rendering: optimizeLegibility;
8+
text-rendering: optimizelegibility;
99
-webkit-font-smoothing: antialiased;
1010
}
1111

@@ -24,7 +24,7 @@ form {
2424
}
2525

2626
input {
27-
-webkit-appearance: none;
27+
appearance: none;
2828
}
2929

3030
input[type="search"] {
@@ -59,10 +59,29 @@ input[type="submit"]:hover {
5959
a {
6060
color: #444;
6161
text-decoration: none;
62+
outline: none;
63+
}
64+
65+
section a {
66+
border-bottom: 2px #090 solid;
67+
padding-bottom: 1px;
68+
}
69+
70+
footer a {
71+
color: #090;
72+
}
73+
74+
nav li {
75+
list-style: none;
76+
margin-right: 20px;
77+
font-weight: bold;
78+
float: left;
79+
}
80+
81+
nav li a {
82+
color: #090;
6283
}
6384

64-
a,
65-
a:hover,
6685
a:active,
6786
a:visited {
6887
outline: none;
@@ -71,6 +90,20 @@ a:visited {
7190
a:hover {
7291
color: #090;
7392
border-bottom: none;
93+
outline: none;
94+
}
95+
96+
section a:hover {
97+
border-bottom: 2px #FFF solid;
98+
}
99+
100+
footer a:hover {
101+
color: #222;
102+
}
103+
104+
nav li a:hover,
105+
nav li a.active {
106+
color: #222;
74107
}
75108

76109
img {
@@ -100,7 +133,7 @@ h3 {
100133
border-bottom: 1px #999 solid;
101134
color: #444;
102135
font-size: 18px;
103-
margin: 40px 0 20px 0;
136+
margin: 40px 0 20px;
104137
padding-bottom: 10px;
105138

106139
}
@@ -135,110 +168,96 @@ code {
135168
font-family: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
136169
font-size: 15px;
137170
line-height: initial;
138-
padding: 2px 5px 1px 5px;
171+
padding: 2px 5px 1px;
139172
white-space: pre;
140173
}
141174

175+
nav {
176+
border-bottom: 1px solid #999;
177+
border-top: 1px solid #999;
178+
overflow: hidden;
179+
padding: 10px 0;
180+
}
181+
182+
nav.submenu {
183+
border-top: none;
184+
margin-bottom: 20px;
185+
}
186+
187+
nav.submenu.alphabetical {
188+
border-bottom: none;
189+
}
190+
191+
nav.submenu.alphabetical h3 {
192+
margin-top: 0;
193+
}
194+
142195
article ul,
143196
article ol {
144197
margin-bottom: 20px;
145198
margin-left: 40px;
146199
}
147200

148-
article h2.rslt + p + ul,
149201
article h3.src + ul,
150-
article h3.rslt + ul {
202+
article h3.rslt + ul,
203+
article h2.rslt + p + ul {
151204
margin-left: 0;
152205
}
153206

154-
article h2.rslt + p + ul li,
155-
article h3.src + ul li,
156-
article h3.rslt + ul li {
207+
article h3.src + ul li {
157208
list-style: none;
158209
}
159210

160-
article h2.rslt + p + ul li p,
161-
article h3.rslt + ul li p {
162-
margin-bottom: 0;
163-
}
164-
165-
article h2.rslt + p + ul li,
166211
article h3.rslt + ul li {
212+
list-style: none;
167213
border-bottom: 1px solid #CCC;
168214
padding-bottom: 10px;
169215
margin-bottom: 10px;
170216
}
171217

172-
article h2.rslt + p + ul li:first-child,
173-
article h3.rslt + ul li:first-child {
174-
border-top: 1px solid #CCC;
175-
padding-top: 10px;
176-
margin-top: 40px;
177-
}
178-
179-
article h2.rslt + p + ul li:last-child,
180-
article h3.rslt + ul li:last-child {
181-
border-bottom: none;
182-
padding-bottom: 0;
183-
margin-bottom: 0;
184-
}
185-
186-
nav {
187-
border-bottom: 1px solid #999;
188-
border-top: 1px solid #999;
189-
overflow: hidden;
190-
padding: 10px 0;
191-
}
192-
193-
nav li {
218+
article h2.rslt + p + ul li {
219+
border-bottom: 1px solid #CCC;
220+
padding-bottom: 10px;
221+
margin-bottom: 10px;
194222
list-style: none;
195-
margin-right: 20px;
196-
font-weight: bold;
197-
float: left;
198223
}
199224

200-
nav li a {
201-
color: #090;
225+
nav.submenu.alphabetical li {
226+
float: none;
202227
}
203228

204-
nav li a:hover,
205-
nav li a.active {
206-
color: #222;
229+
nav.submenu.alphabetical li a {
230+
font-weight: normal;
207231
}
208232

209-
nav.submenu {
210-
border-top: none;
211-
margin-bottom: 20px;
233+
article h3.rslt + ul li p,
234+
article h2.rslt + p + ul li p {
235+
margin-bottom: 0;
212236
}
213237

214-
nav.submenu.alphabetical {
238+
article h3.rslt + ul li:last-child {
215239
border-bottom: none;
240+
padding-bottom: 0;
241+
margin-bottom: 0;
216242
}
217243

218-
nav.submenu.alphabetical li {
219-
float: none;
244+
article h3.rslt + ul li:first-child,
245+
article h2.rslt + p + ul li:first-child {
246+
border-top: 1px solid #CCC;
247+
padding-top: 10px;
248+
margin-top: 40px;
220249
}
221250

222-
nav.submenu.alphabetical li a {
223-
font-weight: normal;
224-
}
225-
nav.submenu.alphabetical h3 {
226-
margin-top: 0;
251+
article h2.rslt + p + ul li:last-child {
252+
border-bottom: none;
253+
padding-bottom: 0;
254+
margin-bottom: 0;
227255
}
228256

229257
section {
230258
margin-top: 30px;
231259
}
232260

233-
section a {
234-
border-bottom: 2px #090 solid;
235-
padding-bottom: 1px;
236-
}
237-
238-
section a:hover {
239-
border-bottom: 2px #FFF solid;
240-
}
241-
242261
.mouseprint {
243262
font-size: 13px;
244263
}
@@ -248,7 +267,7 @@ summary {
248267
}
249268

250269
details {
251-
margin: -10px 0 10px 0;
270+
margin: -10px 0 10px;
252271
}
253272

254273
footer {
@@ -258,28 +277,18 @@ footer {
258277
padding: 20px 0;
259278
}
260279

261-
footer a {
262-
color: #090;
263-
}
264-
265-
footer a:hover {
266-
color: #222;
267-
}
268-
269280
footer nav {
270281
border: none;
271282
padding-top: 0;
272283
}
273284

274-
275285
/*
276286
Tablet Screen Styles
277287
*/
278288

279-
@media screen and (max-width: 1024px) {
280-
289+
@media screen and (width <= 1024px) {
281290
body {
282-
-webkit-text-size-adjust: 100%;
291+
text-size-adjust: 100%;
283292
padding: 1em;
284293
margin: 0 auto;
285294
width: 800px;
@@ -308,10 +317,9 @@ footer nav {
308317
Small Screen Styles
309318
*/
310319

311-
@media screen and (max-width: 800px) {
312-
320+
@media screen and (width <= 800px) {
313321
body {
314-
-webkit-text-size-adjust: 100%;
322+
text-size-adjust: 100%;
315323
padding: 1em;
316324
margin: 0 auto;
317325
width: 90%;
@@ -328,7 +336,7 @@ footer nav {
328336
}
329337

330338
h3 {
331-
margin: 20px 0 20px 0;
339+
margin: 20px 0;
332340
}
333341

334342
p {

0 commit comments

Comments
 (0)