Skip to content

Commit 9415585

Browse files
committed
Dark theme prep
1 parent 62b9a0e commit 9415585

File tree

7 files changed

+83
-56
lines changed

7 files changed

+83
-56
lines changed

content/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ We are available on Discord, IRC, Matrix and Telegram, in the Forum and on Reddi
3131
![Multiple PinePhones with different operating systems.](/img/Pinephone_revisions.jpg)
3232
{{</ box >}}
3333

34-
{{< box style="full themevlblue pad" >}}
34+
{{< box style="full bg_palecyan pad" >}}
3535
{{< box_news title="News" type="blog" amount="2" style="rows" >}}
3636
{{</ box >}}
3737

@@ -50,7 +50,7 @@ To achieve this, we actively work with the development community and champion en
5050
{{</ box >}}
5151
{{</ box >}}
5252

53-
{{< box style="themewhite pad" >}}
53+
{{< box style="pad" >}}
5454
{{< box style="f50 rows" title="Innovation meets collaboration" content="markdown" >}}
5555
The PINE64 community is large, vibrant and diverse. Independent and partner-project developers, hackers and hardware enthusiasts, privacy advocates and FOSS geeks - you name it, we’ve got 'em all.
5656

@@ -66,7 +66,7 @@ They all contribute to the project thereby shaping it and determining its course
6666
{{< box style="pad" type="image" link="/img/pinenotebg1.png" width="400" >}}{{</ box >}}
6767
{{</ box >}}
6868

69-
{{< box style="themegrey full" >}}
69+
{{< box style="bg_lightblue full" >}}
7070
{{< box style="pad" >}}
7171
{{< box_news title="Latest contest" type="contests" amount="1" style="rows" >}}
7272
{{</ box >}}

content/community/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ aliases:
77
- /web-irc/ # from pine64.com
88
---
99

10-
{{< box style="themewhite pad" >}}
10+
{{< box style="pad" >}}
1111
{{< box style="pad_s blueshadow" type="image" link="/img/slider_index_1.jpg" width="380" >}}{{</ box >}}
1212
{{< box style="pad f50 rows" title="" content="markdown" >}}
1313
***Welcome to the PINE64 community!***
@@ -75,7 +75,7 @@ PINE64 community is not some always responding, restless commercial customer ser
7575

7676
## Vision
7777

78-
{{< box style="themewhite pad" >}}
78+
{{< box style="pad" >}}
7979
{{< box style="pad f50 rows" title="" content="markdown" >}}
8080
_PINE64_ is a community-driven company focused on creating high-quality, low-cost ARM devices and, more recently, RISC-V devices for individuals and businesses around the globe. PINE64 made its debut with the [PINE A64](/documentation/Pine_A64) single-board computer, which successfully launched on Kickstarter in 2015. PINE64 has since released a multitude of other devices, including both development boards and end-user devices.
8181

themes/pinetheme/assets/css/documentation.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ body {
33
overflow-y: scroll;
44
}
55
#header {
6-
box-shadow: 0 1px 2px #ddd;
6+
box-shadow: 0 1px 2px var(--grey);
77
}
88
#content {
99
display: block;
@@ -40,7 +40,7 @@ body {
4040
border-left: 1px solid #bbdcff;
4141
}
4242
#doc-toc a {
43-
color: #363636;
43+
color: var(--fg);
4444
font-size: 15px;
4545
font-weight: unset !important;
4646
}

themes/pinetheme/assets/css/slider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Carousel */
22
.cr {
33
position: relative;
4-
background-color: #F3F6F9;
4+
background-color: var(--lightblue);
55
}
66
.cr-inner {
77
position: relative;

themes/pinetheme/assets/css/style.css

Lines changed: 72 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,50 @@
33
margin: 0;
44
}
55

6+
:root {
7+
--blue: rgb(0, 75, 160);
8+
--lightblue: #f3f6f9;
9+
--medblue: #e4f0ff;
10+
--palecyan: #eff7f9;
11+
--white: #ffffff;
12+
--grey: #e6e6e6;
13+
--fg: #222222;
14+
--fg-main-menu: #000000;
15+
--bg: #ffffff;
16+
--bg-table: #f8f8f8;
17+
--bg-table-hl: #ececec;
18+
--bg-table-border: #dee2e6;
19+
}
20+
621
body {
7-
background-color: #fff;
22+
background-color: var(--bg);
823
font-family: Roboto, sans-serif;
9-
color: rgb(34, 34, 34);
24+
color: var(--fg);
1025
}
1126

1227
:root {
13-
--blue: rgb(0, 75, 160);
14-
--white: #ffffff;
28+
color-scheme: light dark;
29+
}
30+
31+
/***
32+
TBD: <meta name="color-scheme" content="light dark">
33+
***/
34+
/***
35+
@media (prefers-color-scheme: dark) {
36+
37+
:root {
38+
--blue: rgb(0, 90, 194);
39+
--grey: #111111;
40+
--fg: #ddd;
41+
--fg-main-menu: #d8d8d8;
42+
--bg: #181818;
43+
--bg-table: #2c2c2c;
44+
--bg-table-hl: #404040;
45+
--bg-table-border: #6c757d;
46+
}
1547
}
48+
***/
49+
1650
/* Text styles */
1751
a {
1852
color: var(--blue);
@@ -35,7 +69,7 @@ h1 {
3569
font-size: 40px;
3670
font-weight: 300;
3771
padding-bottom: 20px;
38-
color: rgb(34, 34, 34);
72+
color: var(--fg);
3973
}
4074
h2 {
4175
font-size: 26px;
@@ -48,7 +82,6 @@ h3,
4882
h4,
4983
h5,
5084
h6 {
51-
/*padding: 12px 0 12px 0;*/
5285
font-weight: 300;
5386
}
5487
h2 {
@@ -68,7 +101,7 @@ h3 a,
68101
h4 a,
69102
h5 a,
70103
h6 a {
71-
color: rgb(34, 34, 34);
104+
color: var(--fg);
72105
}
73106
.imageblock {
74107
margin-bottom: 1.6rem;
@@ -198,22 +231,15 @@ div.themeblue {
198231
background: linear-gradient(90deg, #2868B0 0%, #2F82C6 100%);
199232
color: white;
200233
}
201-
div.themegrey {
202-
background-color: #F3F6F9;
203-
color: black;
204-
}
205-
div.themegrey p {
206-
color: #777;
207-
}
208234
div.themewhite {
209-
background-color: #FFF;
210-
color: black;
235+
background-color: var(--bg);
236+
color: var(--fg);
211237
}
212238
div.themewhite h3 {
213-
color: #333;
239+
color: var(--fg);
214240
}
215241
div.themewhite p {
216-
color: #222222;
242+
color: var(--fg);
217243
}
218244
div.themecommunity {
219245
background-color: #003380;
@@ -254,25 +280,15 @@ div.community_round {
254280
border-bottom-right-radius: 50%;
255281
}
256282
div.themecontest {
257-
background-color: rgb(211, 211, 211);
283+
background-color: #d3d3d3;
258284
background-image: url("/img/tria2_i.svg");
259285
background-repeat: no-repeat;
260286
background-size: cover;
261287
color: white;
262-
font-weight: 500;
263288
}
264289
div.themecontest h1 {
265290
color: white;
266291
}
267-
div.themelightblue {
268-
background-color: #e4f0ff;
269-
}
270-
div.themelightgrey {
271-
background-color: #e6e6e6;
272-
}
273-
div.themevlblue {
274-
background-color: #eff7f9;
275-
}
276292
div.themeblog {
277293
color: white;
278294
font-weight: 400;
@@ -329,6 +345,18 @@ div.themedarkgrey {
329345
div.themedarkgrey h1 {
330346
color: white;
331347
}
348+
div.bg_grey {
349+
background-color: var(--grey);
350+
}
351+
div.bg_lightblue {
352+
background-color: var(--lightblue);
353+
}
354+
div.bg_medblue {
355+
background-color: var(--medblue);
356+
}
357+
div.bg_palecyan {
358+
background-color: var(--palecyan);
359+
}
332360

333361
/* Pagination */
334362
ul.pagination {
@@ -341,23 +369,25 @@ ul.pagination {
341369
justify-content: center;
342370
}
343371
ul.pagination li {
344-
color: #333;
372+
color: var(--fg);
345373
margin: 2px;
346374
padding: 2px 6px;
347375
text-align: center;
348376
font-size: 1.31rem;
349377
font-weight: 600;
350378
margin-bottom: 3rem;
351-
background-color: #f5f5f5;
379+
background-color: var(--bg);
352380
border-radius: 2px;
381+
min-width: 26px;
382+
border-radius: 4px;
353383
}
354384
ul.pagination li.disabled {
355385
display: none;
356386
}
357387
ul.pagination li a {
358388
/*padding: 4px 8px;*/
359389
line-height: 2rem;
360-
color: #333;
390+
color: var(--fg);
361391

362392
}
363393
ul.pagination li.active a, ul.pagination li a:hover {
@@ -393,7 +423,6 @@ pre {
393423
width: 100%;
394424
}
395425
#header-container {
396-
background-color: white;
397426
/*border-bottom: 1px solid #ddd;*/
398427
max-width: 1200px;
399428
/*margin: auto;*/
@@ -434,7 +463,7 @@ input#hamburger_cb,
434463
padding: 0 10px;
435464
border-top-left-radius: 2px;
436465
border-bottom-left-radius: 2px;
437-
background-color: #F3F6F9;
466+
background-color: var(--lightblue);
438467
border: none;
439468
color: #333;
440469
height: 38px;
@@ -509,7 +538,7 @@ input#hamburger_cb,
509538
}
510539
#main_menu .nav-link {
511540
padding: 15px;
512-
color: black;
541+
color: var(--fg-main-menu);
513542
text-decoration: none;
514543
font-size: 1.13rem;
515544
white-space: nowrap;
@@ -632,9 +661,6 @@ div.roundedbutton:hover {
632661
padding: 2px;
633662
font-weight: 400;
634663
}
635-
.editpage a {
636-
color: #003f9e;
637-
}
638664
@media screen and (max-width: 750px){
639665
.editpage {
640666
visibility: hidden;
@@ -811,7 +837,7 @@ div.credits {
811837
line-height: 2;
812838
}
813839
.devices tbody {
814-
background-color: white;
840+
background-color: var(--bg);
815841
}
816842
.devices td {
817843
border-top: 1px solid #aaa;
@@ -836,6 +862,7 @@ div.credits {
836862
}
837863
/* Device box */
838864
.device_box {
865+
background-color: var(--bg);
839866
flex: 0 0 100%;
840867
min-width: 200px;
841868
width: 280px;
@@ -872,7 +899,7 @@ div.credits {
872899
}
873900
.device_box p {
874901
padding: 0 10px 0 10px !important;
875-
color: #555;
902+
color: var(--fg);
876903
font-size: 0.94rem;
877904
font-weight: 400;
878905
margin-bottom: 0;
@@ -919,7 +946,7 @@ table {
919946
max-width: 100%;
920947
margin-top: 1rem;
921948
margin-bottom: 1rem;
922-
border: 1px solid #dee2e6;
949+
border: 1px solid var(--bg-table-border);
923950
table-layout: fixed;
924951
width: 100%;
925952
}
@@ -953,12 +980,12 @@ table th.halign-center {
953980
text-align: center;
954981
}
955982
thead {
956-
background-color: #ececec;
983+
background-color: var(--bg-table-hl);
957984
margin-bottom: 0;
958985
}
959986

960987
tbody {
961-
background-color: #f8f8f8;
988+
background-color: var(--bg-table);
962989
margin-bottom: 0;
963990
}
964991

@@ -1206,12 +1233,12 @@ div.podcast:hover {
12061233

12071234
/* Footer */
12081235
#footer {
1209-
color: #555;
1236+
color: var(--fg);
12101237
}
12111238
#footer a {
12121239
text-decoration: none;
12131240
font-weight: 300;
1214-
color: #555;
1241+
color: var(--fg);
12151242
}
12161243
#footer ul {
12171244
list-style-type: none;

themes/pinetheme/layouts/partials/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div id="footer" class="box full themelightgrey">
1+
<div id="footer" class="box full bg_grey">
22
<div class="box rows">
33
<div class="box cols">
44
<div class="col">
@@ -53,7 +53,7 @@ <h2>Guidelines</h2>
5353
<hr id="footer-line">
5454
</div>
5555

56-
<div class="box cols themelightgrey">
56+
<div class="box cols bg_grey">
5757
<img id="footerlogo" src="/img/logo.png" alt="The PINE64 logo">
5858
<span>&copy; {{ now.Format "2006" }} PINE64</span>
5959
</div>

themes/pinetheme/layouts/podcast/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ define "main" }}
22

3-
<div class="box full themelightblue">
3+
<div class="box full bg_medblue">
44
<div class="box pad">
55
<h1>PineTalk</h1>
66

0 commit comments

Comments
 (0)