1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
|
/* Since this site is about teaching web concepts, even this file is a learning
* opportunity. */
body {
color: beige ;
background: #111 ;
margin-bottom: 200px ;
font-family: sans-serif ;
}
h1 {
text-align: center ;
color: lightgreen ;
}
header h1 {
font-size: 40px ;
}
h2 {
text-align: center ;
color: deeppink ;
font-size: 24pt ;
border-bottom: dashed #ddd 1px ;
max-width: 500px ;
margin: 1em auto ;
}
h3 {
color: gold ;
clear: both ;
}
/* "a" is for links. */
a {
color: lightblue ;
}
/* The "hover" option, which can be used with pretty much anything, allows you
* to set different settings if someone hovers over something with their mouse.
* */
a:hover {
color: white ;
}
dt {
font-weight: bold ;
}
/* code and pre are for formatting monospace text commands. Use code generally,
* but pre is for separate code blocks. pre is also sensitive to whitespace,
* unlike most of HTML. */
code {
border-radius: 5px ;
}
pre {
background: #111222 ;
border: 1px solid lime ;
border-radius: 20px ;
padding: 1em ;
white-space: pre-wrap;
overflow-wrap: break-word ;
max-width: 600px ;
margin: auto ;
}
.wide { max-width: inherit ; }
p img, li img, h1 img, h2 img, h3 img, h4 img, dt img, .inline {
vertical-align: middle ;
max-width: 1em;
max-height: 1em;
border: none ;
display: inline ;
}
p img, li img, h1 img, h2 img, h3 img, h4 img, dt img, .inline {
vertical-align: middle ;
max-width: 1em;
max-height: 1em;
border: none ;
display: inline ;
}
img {
max-width: 90% ;
margin: auto ;
display: block ;
border: solid 5px beige ;
}
.titleimg {
border: none ;
height: 150px ;
}
strong {
color: orange ;
}
footer {
text-align: center ;
font-variant: small-caps ;
clear: both ;
padding: 2em 0 ;
}
footer li {
display: inline-block ;
padding: 0 .5em ;
font-size: x-large ;
}
footer li:hover {
background: lightblue ;
}
nav { font-size: small ;}
footer { font-size: large ; }
nav ul, footer ul, #taglist {
padding: 0;
}
main {
margin: auto ;
}
/* asides are used for minor tangential notes. I have them shrunk down in
* softer colors in a box with soft corners (border-radius). */
aside {
border: solid 1px black ;
border-radius: 20px ;
padding: 0 1em 0 1em ;
font-size: small ;
}
aside p {
color: gray ;
}
aside code {
color: green ;
}
/* .callout here is refencing any aside given the class name callout
* An example being: <aside class="callout"> */
aside.callout {
border: solid 1px orange;
}
.cnp {
width: 100% ;
}
/* This "@media" block defines rules that will only be applied when the minimum
* width of the screen is 55em or greater. In essence, they are settings that
* only apply on normal widescreens, but *not* phones and low res monitors.
* Since we have more room on widescreens, we change a couple things. */
@media (min-width: 55em) {
aside {
margin: 0 30px 0 30px;
}
.resright, .disappear {
display: block ;
float: right;
padding: 20px ;
clear: both ;
max-height: 400px ;
max-width: 300px ;
}
header { max-width: 900px ; margin: auto;}
main { max-width: 850px ; }
}
.ll {
font-size: large ;
line-height: 1.3em ;
max-width: 600px;
margin: auto ;
display: block ;
}
.ll dt {
display: inline-block ;
width: 6em ;
background: gray ;
max-width: 30% ;
}
.ll dd {
display: inline ;
background: blue ;
max-width: 60% ;
}
.ll dd:after {
display:block;
content: '' ;
}
/* These settings are for the cryptocurrency donation QR codes and info on the
* main page. */
.qr { max-width: 150px ; padding: 10px; border: none; }
.cryptocontainer {
display: flex ;
flex-wrap: wrap ;
justify-content: center ;
}
.cryptoinfo {
max-width: 350px ;
text-align: center ;
padding-left: 10px ;
padding-right: 10px ;
}
.cryptoinfo code,.crypto {
font-size: small ;
overflow-wrap: break-word ;
}
/* The "Next Article" Button changes color and also has a 👉 automatically
* added to its front. */
@-webkit-keyframes next {
0% {color: yellow ;}
100% {color: lightblue}
}
.prev {
font-size: large ;
text-align: center ;
margin: auto ;
display: block ;
font-weight: bold ;
padding: 1em ;
}
.prev:before {
content: "👈" ;
}
.next a {
color: inherit ;
}
.next {
-webkit-animation:next 1s infinite alternate ;
font-size: xx-large ;
text-align: center ;
margin: auto ;
display: block ;
font-weight: bold ;
padding: 1em ;
}
#servicelist {
text-align: center ;
}
.next:before {
content: "👉" ;
}
#servicelist {
padding-left: 0 ;
}
#servicelist li {
display: inline-block ;
height: 150px ;
width: 150px ;
position: relative ;
}
#servicelist img {
height: 80% ;
width: 80% ;
max-height: none ;
max-width: none ;
position: absolute ;
left: 50% ;
transform: translateX(-50%);
}
#servicelist .title, #servicelist li:hover .desc {
display: block ;
position: absolute ;
color: white ;
width: 100% ;
text-align: center ;
top: 50%;
transform: translateY(-50%);
border-radius: 1em ;
font-size: large ;
}
.left {
width: 45% ;
float: left ;
clear: both ;
}
.right {
width: 45% ;
float: right ;
}
br {
clear: both;
}
#servicelist .title {
font-size: xx-large ;
background-color: rgba(3,3,3,0.6) ;
}
#servicelist li:hover .desc {
background-color: rgba(3,3,3,0.9) ;
}
#servicelist li:hover .title, .desc, .tags {
display: none ;
}
mark {
background: unset ;
color: orange ;
font-weight: bold ;
}
|