-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
571 lines (554 loc) · 12.3 KB
/
style.css
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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
/*
Theme Name: Lunar
Theme URI: https://classicpress-themes/
Author: Tradesouthwest
Author URI: https://tradesouthwest.com/
Description: Lunar is a flex based theme templated for general website use. Basic content sections are full width. Footer is full width with three widget sections. Options include content padding; background-color; custom header text and link; link color; text alignment; Demo at https://leadspilot.com/classicpress/
Requires PHP: 7.4
Requires CP: 1.4
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header,sticky-post, threaded-comments, translation-ready, blog
Text Domain: solo
This theme, like ClassicPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
/* === CSS Index ===
* I - Page Model
* II - Content Elements
* III - Article Content
* IV - Navigation Elements
* V - WP Requires
* VI - Media Queries
*/
/* ********************************************************* I - Page Model */
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
:root {
--font-serifs: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
--color-primary-x-light: #fafafa;
--clr-lite: #ffffff;
--bkg-dark: #2d2d2d;
}
body {
font-size: 16px;
font-family: var(--font-serifs);
width: 98%;
margin: 0 auto;
color: #444444;
background: #f8f8f8;
}
/* Flexbox container */
.container {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
}
/* Header */
.header, .footer-base {
display: flex;
flex: 1 1 auto;
width: 100%;
padding: 1rem;
}
/* Middle section */
.content {
flex: 2 1 66.66%;
display: inline-flex;
padding: 1rem;
overflow-x: hidden;
}
.content pre{
overflow-x: scroll;
max-width: 100%;
white-space: pre-wrap;
}
/* Content below nav can be wrapped in `main` to allow for z-index */
main {
position: relative;
z-index: 1;
}
/* Right sidebar */
.sidebar {
flex: 1 1 33.33%;
display: inline-flex;
padding: 1rem;
}
/* Footer */
.site-footer{
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
align-items: first baseline;
border-top: 2px solid #ddd;
}
.footer-section{
flex: 1 1 100%;
width: 100%;
}
.footer-base{
flex-direction: row;
}
.footer-base div{
display: flex;
margin-right: 1em;
}
.content, .sidebar{
padding: 15px 30px;
}
.entry-content{
display:flex;
flex-direction: column;
justify-content: start;
}
.site-heading{
color: inherit;
}
.site-title-heading {
width: 100%;
}
.lunar-row{
display:flex;
width:100%;
flex-direction: column;
}
.lunar-content > article{
white-space: normal;
}
/* Responsive layout */
@media screen and (min-width: 1024px) {
body{
max-width:1440px;
}
.container {
flex-direction: row;
}
.content, .sidebar {
display:flex;
}
.footer-section{
flex: 1 1 33.33%;
width: 33.33%;
padding: 1rem;
}
.site-title-heading {
width: 50%;
height: 100px;
}
.lunar-row{
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}
}
/* ************************************************** II - Content Elements */
/* Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
line-height: 1.485;
}
img {
border-style: none;
/* @source normalize.css */
height: auto;
max-width: 100%;
/* Adhere to container width. vertical-align: middle; */
}
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
height: 1px;
overflow: hidden;
position: absolute !important;
width: 1px;
word-wrap: normal !important;
}
/* must have higher specificity than alternative color schemes inline styles */
.skip-link {
background-color: #f1f1f1;
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
color: #21759b;
display: block;
font-family: inherit;
font-size: 14px;
font-weight: 700;
left: -9999em;
outline: none;
padding: 15px 23px 14px;
text-decoration: none;
text-transform: none;
top: -9999em;
}
.logged-in .skip-link {
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
font-family: "Open Sans", sans-serif;
}
.skip-link:focus {
clip: auto;
height: auto;
left: 6px;
top: 7px;
width: auto;
z-index: 100000;
}
a:active, a:hover {
outline: 0;
}
hr{
height: 0;
border: 1px solid #aaa;
width: 100%;
display: block;
}
hr:before, hr:after{
content: " ";
display: table;
width: 100%;
clear:both;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.42857143;
color: #333;
word-break: break-all;
word-wrap: break-word;
background-color: #f5f5f5;
border: 1px solid #ccc;
border-radius: 4px;
}
a {
color: #029;
}
a:hover {
opacity: .86;
}
.brd-lite{
border: 1px solid #eee;
}
.bkg-dark a {
color: #fefefe;
}
.bkg-warn {
background: salmon;
}
.bkg-high {
background: #ffffda;
}
.bkg-dark {
background: #3d3d3d;
color: white;
}
.bkg-med {
background: #cecece;
}
.bkg-lite {
background: #efefef;
}
.bkg-noted {
background: #daeff1;
}
figure {
display: flex;
flex-direction: column;
}
/* figcaption should be inside of figure tag */
figcaption {
display: flex;
flex-direction: row;
position: relative;
top: 0;
text-align: center;
justify-content: center;
min-height: 1.5em;
line-height: 1.5;
}
.centered {
display: flex;
margin: 0 auto;
text-align: center;
justify-content: center;
}
.no-border {
border-color: transparent;
}
.dark-border {
border-color: #2d2d2d;
}
.med-border {
border-color: #aaaaaa;
}
.lite-border {
border-color: #efefef;
}
.dash-border {
border-style: dashed;
border-color: green;
}
.upto a{
display: flex;
width: 1em;
height: 1em;
background: var(--bkg-dark);
color: var(--clr-lite);
font-size: 1.75em;
text-align: center;
padding: 7px 6px;
line-height: .5;
border-radius: 50%;
cursor: pointer;
}
.site-description{
display: flex;
padding-top: 1em;
}
.site-title a{
text-decoration: none;
text-shadow: 1px 1px 1px #eee, -1px -1px 2px #eee;
}
.site-title-heading.tagline-top{
display: flex;
padding: .8em;
}
.site-search{
margin-left: auto;
position: relative;
}
.site-search .searchform,
.site-search .searchform div{
width: 100%;
display: inline-flex;
}
.site-heading{
background-size: 100% auto;
}
.site-title{
margin-left:.5em;
}
/* ********************************************************* III - Article Content */
.blog .featured-img-container {
max-height: 320px;
text-align: center;
overflow: hidden;
}
.blog .featured-img-container img{
height: 320px;
width: fit-content;
margin: 0 auto;
}
.single .featured-img-container img{
display: flex;
margin: 0 auto;
}
.featured-img-container figcaption{
background: rgba(252,252,252,.4);
color: #555
}
.post.format-standard:after{
content: "";
width: 15%;
margin: 0 auto;
display: block;
height: 1px;
border-bottom: 1px solid #ddd;
}
.blog .excerpt-content{
max-width: 90%;
}
/* ********************************************************* IV - Navigation Elements */
.nav-container {
position: unset;
margin: 0;
height: 100%;
width: 100%;
border-top: 2px solid #ddd;
padding-top: 1em;
}
.nav-container ul {
display: flex;
flex-direction: column;
margin: 0;
padding: 0;
position: relative;
justify-content: space-around;
}
.nav-container ul li {
list-style: none;
font-size: 1rem;
/* background: var(--bkg-dark); */
}
.nav-container li {
display: inherit;
position: relative;
padding: 0;
white-space: normal;
}
.nav-container ul li ul{
border-right: thin dashed #aaa;
border-bottom: thin dashed #aaa;
border-top: thin dashed #aaa;
margin-left: -1px;
margin-top: .222em;
}
.nav-container a {
padding: 5px 8px;
opacity: 1;
text-decoration: none;
}
.nav-container a:hover{
text-decoration: underline;
}
/* ************************************************** V - WP Requires */
#wp-calendar {
table-layout:fixed;
}
#wp-calendar td{
padding: 3px 4px;
border-top: thin solid #ddd;
border-right:thin solid #ddd;
}
.comment-form label + input,
.comment-form label + textarea,
.comment-form label + select {
display: flex;
flex-direction: column;
border: 1px solid #818181;
}
/* ************************************************** VI - Media Queries */
.page-nav-wrapper.is-open {
display: flex;
padding: 0;
margin: 0;
list-style: none;
}
@media (max-width: 979px) {
.page-nav-wrapper {
display: none;
}
.site-description{
position: relative;
top: -3.444em;
}
.site-search{
position: relative;
top: -4em
}
}
.menu-toggle {
min-height: 60px;
min-width: 60px;
display: flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 0;
background-color: transparent;
cursor: pointer;
border: none;
border-radius: 50%;
outline: none;
}
@media (min-width: 979px) {
.menu-toggle {
display: none;
}
}
@media screen and ( max-width: 600px ) and ( orientation: portrait ) {
.site-description{
display: flex;
min-width: 100%;
width: 100%;
max-width:100%;
position: relative;
top: -3em;
}
.site-search{
position: relative;
left: -100%;
top: .67em;
}
.site-search input{
max-width: 200px;
}
}
@media all and (min-width: 980px) {
.nav-container {
position: relative;
z-index: 99999;
border-bottom: 2px solid #ddd;
padding-top: 0;
}
.nav-container ul {
justify-content: space-between;
flex-direction: row;
flex-wrap: wrap;
}
.nav-container a {
padding: 10px 12px;
background: #f9f9f9; /*var(--navback);*/
border: thin solid transparent;
width: calc( 150px + 2vw );
min-height: 2.67em;
height: fit-content;
white-space: pre-line;
font-size: medium;
}
.nav-container li {
height: auto;
}
.nav-container ul li {
font-size: .825rem;
}
.nav-container ul li ul li a {
border-top: 1px dotted rgba(165,165,165,.76);
border-right: 1px solid rgba(165,165,165,.76);
border-bottom: 1px solid rgba(165,165,165,.76);
border-left: 1px solid rgba(165,165,165,.76);
font-size: .9rem;
}
.nav-container ul li ul ul {
z-index: 99990;
top: calc( 1em + 16px );
margin-left: calc( 3em + 24px );
}
.nav-container ul li ul {
position: absolute;
justify-content: space-around;
margin-left: 0;
top: calc( 1.75em + .825rem );
z-index: 99800;
background: none;
border: none;
flex-direction: column;
visibility: hidden;
opacity: 0;
transition: visibility 0s linear 400ms, opacity 400ms;
}
.nav-container ul li:hover ul, .nav-container ul li:focus ul, .nav-container ul li:focus-within ul {
visibility: visible;
opacity: 1;
transition: visibility 0s linear 0s, opacity 400ms;
}
.nav-container ul li ul li li {
visibility: hidden;
opacity: 0;
transition: visibility 0s linear 400ms, opacity 400ms;
margin-left: 3em;
}
.nav-container ul li ul li:hover li, .nav-container ul li ul li:focus li, .nav-container ul li ul li:focus-within li {
visibility: visible;
opacity: 1;
transition: visibility 0s linear 0s, opacity 400ms;
}
.site-footer{
flex-direction: row;
}
}