This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgolangtour-dark.user.css
172 lines (146 loc) · 3.74 KB
/
golangtour-dark.user.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
/* ==UserStyle==
@name GolangTour-Dark
@namespace github.com/d-Rickyy-b
@version 1.1.0
@description A dark theme for the "Tour of Go" introduction for the Go programming language
@homepageURL https://github.com/d-Rickyy-b/GolangTour-Dark
@updateURL https://raw.githubusercontent.com/d-Rickyy-b/GolangTour-Dark/main/golangtour-dark.user.css
@license MIT
@author d-Rickyy-b
==/UserStyle== */
@-moz-document domain("tour.golang.org"), regexp("^https?://go.dev/tour/.*") {
/* Overview site at https://tour.golang.org/list */
.container {
background-color: #1f2c36;
color: #c9d1d9;
}
.lesson {
background-color: #1a1f25;
color: #c9d1d9;
}
/* All other sites on https://tour.golang.org/ */
/* Table of contents (top right) */
.toc {
color: #c9d1d9;
background: #1a1f25;
border-left: 4px solid#1a1f25;
border-bottom: 4px solid #1a1f25;
}
.toc-lesson {
background-color: #1f2c36;
color: #c9d1d9;
}
.toc-module {
color: #c9d1d9;
background: #1a1f25;
}
.toc-page {
background-color: #263540;
color: #c9d1d9;
}
/* Menu bars */
.top-bar {
color: #c9d1d9;
background: #1a1f25;
}
#file-menu,
#explorer {
color: #c9d1d9;
background: #1c2831;
}
.module-bar {
color: #c9d1d9;
}
.menu-button,
.menu-button.active {
background-color: #3f4954;
color: #d3d3d3;
}
.menu-button:hover:not(.active) {
border: 1px solid #7e7e7e;
background-color: #4c5a69;
color: #d3d3d3;
}
/* Left side content*/
.slide-content {
background: #1f2c36;
color: #c9d1d9;
}
/* Code blocks left side */
#left-side pre,
#left-side code {
background-color: rgba(110, 118, 129, 0.4);
color: #fff;
border-radius: 6px;
padding-top: 2px;
padding-bottom: 2px;
padding-left: 4px;
padding-right: 4px;
margin: 2px;
}
h1,
h2,
h3,
h4,
.module-title {
color: #c9d1d9;
}
/* Code Editor division gutter between line numbers and code */
.CodeMirror-gutters {
border-right: 1px solid #0000;
}
/* Background grid dividing left side from right side and right top from right bottom */
div[vertical-slide],
div[horizontal-slide] {
background: #1a1f25;
}
/* Background for code editor and output */
#file-editor .CodeMirror-lines,
#file-editor .CodeMirror-gutters,
#file-editor .CodeMirror,
#bottom-part,
.output,
.output>pre {
background-color: #1f2c36;
color: #c9d1d9;
}
/* Background for all the root containers */
html,
body,
#editor-container,
#right-side,
#file-editor {
background: #1f2c36;
}
/* Text selection in code editor */
.CodeMirror-selected,
.CodeMirror-focused .CodeMirror-selected,
.CodeMirror-line::selection,
.CodeMirror-line>span::selection,
.CodeMirror-line>span>span::selection,
.CodeMirror-line::-moz-selection,
.CodeMirror-line>span::-moz-selection,
.CodeMirror-line>span>span::-moz-selection {
background: #3a3d41;
}
/* Code editor cursor/caret color */
.CodeMirror-cursor {
border-color: #c9d1d9;
}
/*Syntax highlighting*/
.cm-s-default .cm-keyword {
color: #548BE1
}
.cm-s-default .cm-string {
color: #ce9178;
}
.cm-s-default .cm-atom {
color: #dcdcaa;
}
.cm-s-default .cm-comment {
color: #6a9949;
}
.cm-s-default .cm-number {
color: #b5cea8;
}
}