Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 3f632f1

Browse files
committed
Tweaks to new style including dark mode updates
1 parent 3df1418 commit 3f632f1

File tree

3 files changed

+43
-9
lines changed

3 files changed

+43
-9
lines changed

runestone/activecode/css/activecode.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@
6161
position: initial;
6262
}
6363

64+
.unittest-results {
65+
margin-left: 20px;
66+
}
67+
6468
.ac_output {
69+
margin-top: 10px;
6570
display: none;
6671
background-color: inherit;
6772
}
@@ -79,7 +84,7 @@
7984
}
8085

8186
.ac_question {
82-
background-color: rgb(224, 236, 217);
87+
background-color: var(--questionBgColor);
8388
padding-left: 10px;
8489
padding-top: 10px;
8590
margin: 5px;
@@ -114,6 +119,11 @@
114119
padding: 3px;
115120
}
116121

122+
.CodeMirror {
123+
border: solid 2px;
124+
margin-bottom: 10px;
125+
}
126+
117127
.ac_sql_result {
118128
background-color: lightgrey;
119129
padding: 10px;

runestone/common/css/runestone-custom-sphinx-bootstrap.css

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@
2020
--successAlerts: #dff0d8;
2121
--contentWidthRegular: 660px;
2222
--contentWidthWide: 1060px;
23+
--componentBgColor: #f0f8ff;
24+
--componentBorderColor: #000000;
25+
--questionBgColor: rgb(217, 233, 235);
2326
}
2427

2528
[data-theme="dark"] {
26-
--background: #000000;
27-
--outerBackground: #3d3d3d;
28-
--links: #1165f0;
29-
--bodyFont: #ffffff;
29+
--background: #2c2f33;
30+
--outerBackground: #23272a;
31+
--links: #7289da;
32+
--bodyFont: #99aab5;
3033
--tooltip: #000000;
3134
--grayToWhite: #ffffff;
3235
--navbar: #3d3d3d;
@@ -37,10 +40,13 @@
3740
--completionButtonHover: #560073;
3841
--admonition: #3d3d3d;
3942
--admonitionBorder: #262626;
40-
--codeButtons: #2c0aa6;
43+
--codeButtons: #7289da;
4144
--codeButtonsBorder: #ffffff;
4245
--dangerAlerts: #8c2626;
4346
--successAlerts: #217300;
47+
--componentBgColor: #07467d;
48+
--componentBorderColor: #939090;
49+
--questionBgColor: rgb(23, 85, 93);
4450
}
4551

4652
/* custom modification of basic.css for color-contrast (AA compliant) */
@@ -225,13 +231,21 @@ div.container {
225231

226232
.runestone {
227233
clear: both;
228-
}
234+
background-color: var(--componentBgColor);
235+
padding: 10px;
236+
border-style: solid;
237+
border-color: var(--componentBorderColor);
238+
border-radius: 10px;
239+
margin-bottom: 20px;
240+
margin-top: 20px;
241+
}
229242

230243
/* Sets width of content "column" */
231244
#main-content section > *:not(section) {
232245
max-width: var(--contentWidthRegular);
233246
margin-left: auto;
234247
margin-right: auto;
248+
235249
}
236250

237251
/* Handle content in nested sections by allowing them to grow*/

runestone/dragndrop/css/dragndrop.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
:root {
2+
--draggableBgColor: #EFEFEF;
3+
--dropableBgColor: #DDDDDD;
4+
}
5+
6+
[data-theme="dark"] {
7+
--draggableBgColor: #9d9191;
8+
--dropableBgColor: #783131;
9+
}
10+
111
.rsdraggable {
212
margin-left: 2%;
313
margin-top: 5px;
@@ -38,7 +48,7 @@
3848
-webkit-border-radius:10px;
3949
border-radius: 10px;
4050
display: block;
41-
background-color:#EFEFEF;
51+
background-color: var(--draggableBgColor);
4252
border:1px solid lightgray;
4353
padding:10px;
4454
margin-top: 5px;
@@ -55,7 +65,7 @@
5565
-webkit-border-radius:10px;
5666
border-radius: 10px;
5767
display: block;
58-
background-color:#DDDDDD;
68+
background-color: var(--dropableBgColor);
5969
border:1px solid lightgray;
6070
padding:10px;
6171
margin-top: 5px;

0 commit comments

Comments
 (0)