1
1
body {
2
2
display : grid;
3
- place-items : center ;
3
+ place-items : top ;
4
4
font-family : Verdana, Geneva, Tahoma, sans-serif;
5
- margin : 0 ;
6
5
padding : 0 ;
7
6
color : # 222 ;
8
- }
9
- section {
10
- display : grid;
11
7
grid-template-columns : 480px auto;
12
- grid-column- gap : 20px ;
8
+ grid-gap : 20px ;
13
9
margin : 20px ;
14
10
}
15
- article {
16
- }
17
- article p {
18
- margin-top : 0 ;
19
- }
20
11
footer {
21
12
display : grid;
13
+ grid-column : 1 / 3 ;
22
14
align-items : center;
23
15
margin : 20px 0 ;
24
16
}
@@ -27,36 +19,41 @@ footer p {
27
19
margin : 0 ;
28
20
text-align : center;
29
21
}
30
- nav {
31
- text-align : center;
32
- margin-top : 20px ;
33
- }
34
22
aside {
23
+ grid-template-rows : auto 1fr ;
24
+ }
25
+ aside nav {
35
26
display : grid;
36
27
grid-template-columns : 50% 50% ;
37
- grid-template-rows : auto 1fr ;
38
28
}
39
- aside div {
40
- grid-column : 1 / 3 ;
29
+ aside h2 {
30
+ font-size : 120 % ;
41
31
}
42
- article div img {
43
- max-width : 100% ;
32
+ aside ul , aside li {
33
+ margin : 0 ;
34
+ padding : 0 ;
44
35
}
45
- article div {
46
- padding : 20px ;
36
+ aside li {
37
+ margin-left : 20px ;
38
+ font-size : 80% ;
39
+ }
40
+ article img {
41
+ max-width : 100% ;
47
42
}
48
43
a , a : hover {
49
44
color : # 859900 ;
50
45
}
51
46
a : hover {
52
47
text-decoration : none;
53
48
}
54
- header {
49
+ header , body > nav {
55
50
background : # eeeeee ;
56
51
display : block;
57
52
line-height : 22px ;
58
53
padding : 20px ;
59
54
display : grid;
55
+ }
56
+ header {
60
57
grid-template-columns : auto auto;
61
58
}
62
59
header h1 {
@@ -65,21 +62,30 @@ header h1 {
65
62
font-size : 20px ;
66
63
grid-column : 1 ;
67
64
}
68
- header ul {
65
+ header ul , nav ul {
69
66
grid-column : 2 ;
70
67
list-style : none;
71
68
margin : 0 ;
72
69
padding : 0 ;
73
70
text-align : right;
74
71
}
75
- header li {
72
+ header li , nav li {
76
73
display : inline-block;
77
74
padding : 0 0 0 10px ;
78
75
white-space : pre;
79
76
}
80
77
header li : nth-child (2 ) a , header li : nth-child (2 ) a : visited , header li : nth-child (2 ) a : hover {color : # 268bd2 ;}
81
78
header li : nth-child (3 ) a , header li : nth-child (3 ) a : visited , header li : nth-child (3 ) a : hover {color : # d33682 ;}
82
79
header li : nth-child (4 ) a , header li : nth-child (4 ) a : visited , header li : nth-child (4 ) a : hover {color : # dc322f ;}
80
+
81
+ .labels a , .a : visited {
82
+ color : inherit;
83
+ text-decoration : none;
84
+ }
85
+ .labels a : hover {
86
+ color : inherit;
87
+ text-decoration : underline;
88
+ }
83
89
.labels .right {
84
90
counter-reset : pin 0 ;
85
91
}
@@ -104,49 +110,65 @@ header li:nth-child(4) a, header li:nth-child(4) a:visited, header li:nth-child(
104
110
line-height : 20px ;
105
111
color : # ffffffaa ;
106
112
}
107
- table : nth-child (1 ) tr : nth-child (1 ): before {
113
+ /* Square pin-1 designator */
114
+ .labels : nth-child (1 ) tr : nth-child (1 ): before {
108
115
border-radius : 0% ;
109
116
}
110
117
111
- td {
118
+ . labels td {
112
119
height : 22px ;
113
120
line-height : 22px ;
114
121
text-align : left;
115
122
overflow : hidden;
116
123
font-size : 12px ;
117
- cursor : default;
118
124
white-space : nowrap;
119
125
position : relative;
120
126
border-bottom : 1px solid # CCCCCC ;
121
127
padding : 0 0 0 5px ;
122
128
}
123
129
124
- table tr : last-child td , table tr : last-child th {
130
+ . labels tr : last-child td , . labels tr : last-child th {
125
131
border-bottom : 0 ;
126
132
}
127
133
128
- table {
134
+ . labels {
129
135
border-collapse : collapse;
130
136
}
131
137
132
- tbody {
138
+ . labels tbody {
133
139
display : grid;
134
140
grid-template-columns : repeat (1 , 25px auto auto);
135
141
}
136
- tbody tr {
142
+
143
+ .labels tbody tr {
137
144
display : contents;
138
145
}
139
146
140
147
141
-
142
-
143
148
tr .ground td {color : # 22222266 ;}
144
149
tr .ground : hover td {color : # fff ;}
145
150
146
151
.labels tbody tr : hover , .labels tbody tr : hover : before {color : # fff ;}
147
152
.labels .left tr td : last-child {border-left : 5px solid transparent;}
148
153
.labels .right tr td : last-child {border-right : 5px solid transparent;}
149
154
155
+ /* Icon colours, helps diambiguate some of the similar looking icons
156
+ which don't pass the squint-test well */
157
+ .gpio i {color : # 859900aa ;}
158
+ /*.pwm i {color: #002b36ee;}*/ /* TODO: Too dark for dark mode... */
159
+ .power i {color : # dc322faa ;}
160
+ .i2s i {color : # 2aa198aa ;}
161
+ .gpclk i {color : # df8f8eaa ;}
162
+ .i2c i {color : # 268bd2aa ;}
163
+ .spi i {color : # d33682aa ;}
164
+ .uart i {color : # 6c71c4aa ;}
165
+ .ground i {color : # 555555aa ;}
166
+
167
+ .fa-solid {margin-right : 5px ;}
168
+
169
+ tr : hover i {color : inherit;}
170
+
171
+ /* Pin colours. Background for the pseudo element that forms the pin. */
150
172
.labels tbody tr .gpio : before {background-color : # 859900aa ;}
151
173
.labels tbody tr .pwm : before {background-color : # 002b36aa ;}
152
174
.labels tbody tr .power : before {background-color : # dc322faa ;}
@@ -182,8 +204,8 @@ tr.ground:hover td {color: #fff;}
182
204
background-color : # 000000 ;
183
205
color : # eee ;
184
206
}
185
- tr .ground td {color : # eeeeee66 ;}
186
- header {
207
+ . labels .ground td {color : # eeeeee66 ;}
208
+ header , body > nav {
187
209
background : # 111111 ;
188
210
}
189
211
.filter label ,
@@ -197,7 +219,7 @@ tr.ground:hover td {color: #fff;}
197
219
footer a : hover {
198
220
color : # 3ba6f1 ;
199
221
}
200
- td , th {
222
+ . labels td {
201
223
border-bottom-color : # 333333 ;
202
224
}
203
225
.labels tbody tr : before {
0 commit comments