Skip to content

Commit d766f77

Browse files
committed
feat: add dark theme
1 parent 1c97140 commit d766f77

35 files changed

+10199
-4826
lines changed

_assets/css/_base-variables.scss

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ $link-hover-color: #2D2DB2;
1818
$link-background-color: #f2f8ff;
1919
$navigation-link-color: #696b6e;
2020

21-
$btn-support-color: $text-primary-color;
22-
$btn-support-border: #C8E2F2;
21+
$btn-support-color: #2D6CEC;
22+
$btn-support-border: #2D6CEC;
2323
$btn-support-border-hover: #94D7FF;
24+
$btn-support-hover-color: #ffffff;
2425

2526
$border-separator-color: #DEDEDE;
2627
$border-horizontal-color: #E6E6E6;

_assets/css/_dojo-layout.scss

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
.action-buttons {
2+
margin-top: 12px;
3+
border: 1px solid #e8ebef;
4+
border-bottom: 0;
5+
background-color: #fefefe;
6+
7+
.btn {
8+
margin: 0;
9+
padding: .72em 1.5em;
10+
border: 0;
11+
border-radius: 0;
12+
line-height: 1.2em;
13+
outline: none;
14+
background-color: transparent;
15+
color: #333;
16+
border-width: 0;
17+
border-right: 1px solid #e8ebef;
18+
font-size: 14px;
19+
20+
&:hover {
21+
text-decoration: none;
22+
background-color: #e8ebef;
23+
color: #000;
24+
}
25+
}
26+
27+
+ pre {
28+
margin-top: 0;
29+
}
30+
31+
.active-button,
32+
.active-button:hover {
33+
background-color: #e8ebef;
34+
color: #333;
35+
}
36+
37+
.btn-dojo {
38+
float: right;
39+
border-right: 0;
40+
border-left: 1px solid #e8ebef;
41+
42+
svg {
43+
margin-right: 10px;
44+
}
45+
46+
path {
47+
fill: currentColor;
48+
}
49+
}
50+
}
51+
52+
.CodeMirror {
53+
clear: both;
54+
border: 1px solid #ebecee;
55+
height: auto !important;
56+
font-family: "Metric Mono", "Ubuntu Mono", "Consolas", "Monaco", monospace;
57+
58+
pre {
59+
font-family: "Metric Mono", "Ubuntu Mono", "Consolas", "Monaco", monospace !important;
60+
}
61+
}
62+
63+
.CodeMirror-code {
64+
line-height: 18px;
65+
font-size: 13px;
66+
}
67+
68+
.snippet-runner {
69+
width: 100%;
70+
min-height: 450px;
71+
box-sizing: border-box;
72+
}

0 commit comments

Comments
 (0)