Skip to content

Commit 8d1122b

Browse files
rearrange to avoid descending selectors
1 parent 22d2012 commit 8d1122b

File tree

1 file changed

+64
-64
lines changed

1 file changed

+64
-64
lines changed

style.css

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,49 @@ body {
9191
min-width: 100%;
9292
}
9393

94+
.general-table {
95+
font-family: Arial, Helvetica, sans-serif;
96+
border-collapse: collapse;
97+
width: clamp(100%, 100%, 1000px);
98+
text-align: left;
99+
}
100+
101+
.general-table td, .general-table th {
102+
border: 1px solid #333;
103+
padding: 8px;
104+
}
105+
106+
.general-table tr {
107+
color: #333;
108+
text-shadow: 0 1px 0 rgb(255 255 255 / 50%);
109+
}
110+
111+
.pinout-table tbody tr {
112+
cursor: pointer;
113+
}
114+
115+
.general-table tr:nth-child(even){
116+
background-color: #fc935a;
117+
}
118+
119+
.pinout-table tr:hover {
120+
background-color: #f15a24;
121+
}
122+
123+
.general-table th {
124+
background-image: linear-gradient(rgb(255 255 255 / 20%),transparent);
125+
padding-top: 12px;
126+
padding-bottom: 12px;
127+
text-align: left;
128+
background-color: #f15a24;
129+
color: #333;
130+
text-shadow: 0 1px 0 rgba(255 255 255 / 50%);
131+
}
132+
133+
.info-table {
134+
display: none;
135+
}
136+
94137
.name-wrapper {
95138
flex-wrap: wrap;
96139
display: flex;
@@ -207,70 +250,12 @@ body {
207250
}
208251
}
209252

210-
.general-table {
211-
font-family: Arial, Helvetica, sans-serif;
212-
border-collapse: collapse;
213-
width: clamp(100%, 100%, 1000px);
214-
text-align: left;
215-
}
216-
217-
.pinout-table tbody tr {
218-
cursor: pointer;
219-
}
220-
221-
.general-table td, .general-table th {
222-
border: 1px solid #333;
223-
padding: 8px;
224-
}
225-
226-
.general-table tr {
227-
color: #333;
228-
text-shadow: 0 1px 0 rgb(255 255 255 / 50%);
229-
}
230-
231-
.general-table tr:nth-child(even){
232-
background-color: #fc935a;
233-
}
234-
235-
.pinout-table tr:hover {
236-
background-color: #f15a24;
237-
}
238-
239-
.general-table th {
240-
background-image: linear-gradient(rgb(255 255 255 / 20%),transparent);
241-
padding-top: 12px;
242-
padding-bottom: 12px;
243-
text-align: left;
244-
background-color: #f15a24;
245-
color: #333;
246-
text-shadow: 0 1px 0 rgba(255 255 255 / 50%);
247-
}
248-
249-
.info-table {
250-
display: none;
251-
}
252-
253253
@media (prefers-color-scheme: dark) {
254254
html {
255255
background-color: #111;
256256
color: #eee;
257257
}
258258

259-
.switch > table {
260-
background-color: #2d3035;
261-
}
262-
263-
.switch table td,
264-
.switch input:checked ~ table td:first-child {
265-
color: #eee;
266-
text-shadow: 1px 1px 1px #191b1e;
267-
}
268-
269-
270-
td[data-field="pin"] {
271-
border: 1px solid #aaa !important;
272-
}
273-
274259
.general-table tbody tr {
275260
color: #aaa;
276261
}
@@ -288,6 +273,21 @@ body {
288273
color: #333;
289274
}
290275

276+
.switch > table {
277+
background-color: #2d3035;
278+
}
279+
280+
.switch table td,
281+
.switch input:checked ~ table td:first-child {
282+
color: #eee;
283+
text-shadow: 1px 1px 1px #191b1e;
284+
}
285+
286+
287+
td[data-field="pin"] {
288+
border: 1px solid #aaa !important;
289+
}
290+
291291
#board-link, #board-link:visited {
292292
color: #eee;
293293
}
@@ -304,10 +304,6 @@ body {
304304
display: none !important;;
305305
}
306306

307-
td:not(.print-column), .info-table, thead, #board-link {
308-
display: none;
309-
}
310-
311307
.connector-container {
312308
flex: 0 1 100%;
313309
height: unset;
@@ -336,8 +332,8 @@ body {
336332
font-size: 10px;
337333
}
338334

339-
td:not([data-field="pin"]) {
340-
border: none !important;
335+
td:not(.print-column), .info-table, thead, #board-link {
336+
display: none;
341337
}
342338

343339
td[data-field="pin"] {
@@ -348,6 +344,10 @@ body {
348344
padding: 0;
349345
}
350346

347+
td:not([data-field="pin"]) {
348+
border: none !important;
349+
}
350+
351351
html, tr {
352352
background-color: #eee !important;
353353
color: #111 !important;

0 commit comments

Comments
 (0)