Skip to content

Commit dd5788b

Browse files
authored
Merge pull request #279 from oliverfencott/global-dark-mode
Global dark mode
2 parents 00f981f + e73ebac commit dd5788b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2399
-395
lines changed

static/1.10.1/css/docpage.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,17 @@
169169
.next .prevnext-text::after {
170170
content: " >";
171171
}
172+
173+
@media (prefers-color-scheme: dark) {
174+
.binding-type {
175+
color: #ccc;
176+
}
177+
178+
.binding-text {
179+
color: unset;
180+
}
181+
182+
.example-title {
183+
color: #ccc;
184+
}
185+
}

static/1.10.1/css/landing.css

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
margin: 0;
100100
width: 100%;
101101
transition: background 0.3s;
102-
text-indent 2px;
102+
text-indent: 2px;
103103
}
104104

105105
#replin:focus {
@@ -118,8 +118,8 @@
118118

119119
/* Github Banner */
120120

121-
.github-corner:hover .octo-arm{
122-
animation:octocat-wave 560ms ease-in-out;
121+
.github-corner:hover .octo-arm {
122+
animation: octocat-wave 560ms ease-in-out;
123123
}
124124

125125
/* Donate button */
@@ -128,23 +128,41 @@
128128
margin: 0 15px;
129129
}
130130

131-
@keyframes octocat-wave{
131+
@keyframes octocat-wave {
132132
0%, 100% {
133-
transform:rotate(0);
133+
transform: rotate(0);
134134
}
135135
20%, 60% {
136-
transform:rotate(-25deg);
136+
transform: rotate(-25deg);
137137
}
138-
40%, 80%{
139-
transform:rotate(10deg);
138+
40%, 80% {
139+
transform: rotate(10deg);
140140
}
141141
}
142142

143143
@media (max-width:500px) {
144144
.github-corner:hover .octo-arm {
145-
animation:none;
145+
animation: none;
146146
}
147147
.github-corner .octo-arm {
148-
animation:octocat-wave 560ms ease-in-out;
148+
animation: octocat-wave 560ms ease-in-out;
149149
}
150150
}
151+
152+
@media (prefers-color-scheme: dark) {
153+
#replterm {
154+
border-color: #333;
155+
background: #333;
156+
color: #ccc;
157+
}
158+
159+
#replinbar {
160+
border-color: #333;
161+
color: unset;
162+
background: #1a1a1a;
163+
}
164+
165+
#replin:focus {
166+
background: unset;
167+
}
168+
}

static/1.10.1/css/main.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,34 @@ code {
287287
text-decoration: underline;
288288
color: white !important;
289289
}
290+
291+
@media (prefers-color-scheme: dark) {
292+
body {
293+
background-color: #222;
294+
color: #eee;
295+
}
296+
297+
h1, h2, h3, h4 {
298+
color: #f8f8f2;
299+
}
300+
301+
h3 {
302+
color: #e3e0e0;
303+
}
304+
305+
h4 {
306+
color: #cccccc;
307+
}
308+
309+
a {
310+
color: #09a5b8;
311+
}
312+
313+
table tr {
314+
background: #222;
315+
}
316+
317+
.mendoza-code {
318+
background: #333;
319+
}
320+
}

static/1.11.1/css/docpage.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,17 @@
169169
.next .prevnext-text::after {
170170
content: " >";
171171
}
172+
173+
@media (prefers-color-scheme: dark) {
174+
.binding-type {
175+
color: #ccc;
176+
}
177+
178+
.binding-text {
179+
color: unset;
180+
}
181+
182+
.example-title {
183+
color: #ccc;
184+
}
185+
}

static/1.11.1/css/landing.css

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
margin: 0;
100100
width: 100%;
101101
transition: background 0.3s;
102-
text-indent 2px;
102+
text-indent: 2px;
103103
}
104104

105105
#replin:focus {
@@ -118,8 +118,8 @@
118118

119119
/* Github Banner */
120120

121-
.github-corner:hover .octo-arm{
122-
animation:octocat-wave 560ms ease-in-out;
121+
.github-corner:hover .octo-arm {
122+
animation: octocat-wave 560ms ease-in-out;
123123
}
124124

125125
/* Donate button */
@@ -128,23 +128,41 @@
128128
margin: 0 15px;
129129
}
130130

131-
@keyframes octocat-wave{
131+
@keyframes octocat-wave {
132132
0%, 100% {
133-
transform:rotate(0);
133+
transform: rotate(0);
134134
}
135135
20%, 60% {
136-
transform:rotate(-25deg);
136+
transform: rotate(-25deg);
137137
}
138-
40%, 80%{
139-
transform:rotate(10deg);
138+
40%, 80% {
139+
transform: rotate(10deg);
140140
}
141141
}
142142

143143
@media (max-width:500px) {
144144
.github-corner:hover .octo-arm {
145-
animation:none;
145+
animation: none;
146146
}
147147
.github-corner .octo-arm {
148-
animation:octocat-wave 560ms ease-in-out;
148+
animation: octocat-wave 560ms ease-in-out;
149149
}
150150
}
151+
152+
@media (prefers-color-scheme: dark) {
153+
#replterm {
154+
border-color: #333;
155+
background: #333;
156+
color: #ccc;
157+
}
158+
159+
#replinbar {
160+
border-color: #333;
161+
color: unset;
162+
background: #1a1a1a;
163+
}
164+
165+
#replin:focus {
166+
background: unset;
167+
}
168+
}

static/1.11.1/css/main.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,34 @@ code {
287287
text-decoration: underline;
288288
color: white !important;
289289
}
290+
291+
@media (prefers-color-scheme: dark) {
292+
body {
293+
background-color: #222;
294+
color: #eee;
295+
}
296+
297+
h1, h2, h3, h4 {
298+
color: #f8f8f2;
299+
}
300+
301+
h3 {
302+
color: #e3e0e0;
303+
}
304+
305+
h4 {
306+
color: #cccccc;
307+
}
308+
309+
a {
310+
color: #09a5b8;
311+
}
312+
313+
table tr {
314+
background: #222;
315+
}
316+
317+
.mendoza-code {
318+
background: #333;
319+
}
320+
}

static/1.12.2/css/docpage.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,17 @@
169169
.next .prevnext-text::after {
170170
content: " >";
171171
}
172+
173+
@media (prefers-color-scheme: dark) {
174+
.binding-type {
175+
color: #ccc;
176+
}
177+
178+
.binding-text {
179+
color: unset;
180+
}
181+
182+
.example-title {
183+
color: #ccc;
184+
}
185+
}

static/1.12.2/css/landing.css

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
margin: 0;
100100
width: 100%;
101101
transition: background 0.3s;
102-
text-indent 2px;
102+
text-indent: 2px;
103103
}
104104

105105
#replin:focus {
@@ -118,8 +118,8 @@
118118

119119
/* Github Banner */
120120

121-
.github-corner:hover .octo-arm{
122-
animation:octocat-wave 560ms ease-in-out;
121+
.github-corner:hover .octo-arm {
122+
animation: octocat-wave 560ms ease-in-out;
123123
}
124124

125125
/* Donate button */
@@ -128,23 +128,41 @@
128128
margin: 0 15px;
129129
}
130130

131-
@keyframes octocat-wave{
131+
@keyframes octocat-wave {
132132
0%, 100% {
133-
transform:rotate(0);
133+
transform: rotate(0);
134134
}
135135
20%, 60% {
136-
transform:rotate(-25deg);
136+
transform: rotate(-25deg);
137137
}
138-
40%, 80%{
139-
transform:rotate(10deg);
138+
40%, 80% {
139+
transform: rotate(10deg);
140140
}
141141
}
142142

143143
@media (max-width:500px) {
144144
.github-corner:hover .octo-arm {
145-
animation:none;
145+
animation: none;
146146
}
147147
.github-corner .octo-arm {
148-
animation:octocat-wave 560ms ease-in-out;
148+
animation: octocat-wave 560ms ease-in-out;
149149
}
150150
}
151+
152+
@media (prefers-color-scheme: dark) {
153+
#replterm {
154+
border-color: #333;
155+
background: #333;
156+
color: #ccc;
157+
}
158+
159+
#replinbar {
160+
border-color: #333;
161+
color: unset;
162+
background: #1a1a1a;
163+
}
164+
165+
#replin:focus {
166+
background: unset;
167+
}
168+
}

static/1.12.2/css/main.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,34 @@ code {
287287
text-decoration: underline;
288288
color: white !important;
289289
}
290+
291+
@media (prefers-color-scheme: dark) {
292+
body {
293+
background-color: #222;
294+
color: #eee;
295+
}
296+
297+
h1, h2, h3, h4 {
298+
color: #f8f8f2;
299+
}
300+
301+
h3 {
302+
color: #e3e0e0;
303+
}
304+
305+
h4 {
306+
color: #cccccc;
307+
}
308+
309+
a {
310+
color: #09a5b8;
311+
}
312+
313+
table tr {
314+
background: #222;
315+
}
316+
317+
.mendoza-code {
318+
background: #333;
319+
}
320+
}

static/1.13.1/css/docpage.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,17 @@
169169
.next .prevnext-text::after {
170170
content: " >";
171171
}
172+
173+
@media (prefers-color-scheme: dark) {
174+
.binding-type {
175+
color: #ccc;
176+
}
177+
178+
.binding-text {
179+
color: unset;
180+
}
181+
182+
.example-title {
183+
color: #ccc;
184+
}
185+
}

0 commit comments

Comments
 (0)