-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.css
279 lines (238 loc) · 4.91 KB
/
base.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
@import url('org_css_dark.css');
@import url('org_css_light.css');
body {
width: 100%;
height: 100%;
margin: 0;
background-size: 5px 5px;
}
body::-webkit-scrollbar {
width: 0; /* 隐藏滚动条 */
}
.toggletheme {
z-index: 999;
position: fixed;
top: 25px;
right: 7%;
--white:#fff;
transform: translate(-50%, -50%);
/* filter: drop-shadow(2px 3px 1px rgb(0 0 0 / 0.4)); */
}
.toggletheme input[type="checkbox"] {
visibility: hidden;
}
.toggletheme input[type=checkbox]{
}
.toggletheme label {
cursor: pointer;
text-indent: -9999px;
width: 2.1rem;
height: 1rem;
background: rgba(0,0,0,.05);
display: block;
border: none;
border-radius: 500rem;
position: relative;
}
.toggletheme label:after {
content: '';
position: absolute;
top: 0px;
left: 0px;
width: 1rem;
height: 1rem;
background: #fff ;
border-radius: 500rem;
transition: 0.2s;
box-shadow: 0 1px 2px 0 rgba(34,36,38,.15), inset 0 0 0 1px rgba(34,36,38,.15);
/* transition: background .3s ease,left .3s ease; */
}
.toggletheme input:checked + label {
background: rgba(0,0,0,.05);
}
.toggletheme input:checked + label:after {
left: calc(100%);
transform: translateX(-99%);
background: #fff linear-gradient(transparent,rgba(0,0,0,.05))
}
.dark .toggletheme input:checked + label {
background: rgba(0,0,0,.5);
}
.dark .toggletheme input:checked + label:after {
background: hsl(219deg 17% 77%) linear-gradient(transparent,rgba(0,0,0,.05))
}
.white_icon {
display: block;
position: relative;
width: 1rem;
height: 1rem;
top: 2.2rem;
left: -1.45rem;
color: rgba(0,0,0,.5);
}
.night_icon {
display: block;
position: relative;
width: 1rem;
height: 1rem;
top: -1.015rem;
left: 2.55rem;
color: rgba(0,0,0,.5);
}
.dark .white_icon {
color: rgba(255,255,255,.5);
}
.dark .night_icon {
color: hsla(286, 59%, 66%, 101%);
}
.light .btncheck {
text-shadow: 0 0 20px gray;
background-color: rgb(243 242 242);
}
.light .btncheck:hover {
text-shadow: 0 0 20px gray;
background-color: white;
cursor: pointer;
}
.dark .btncheck {
text-shadow: 0 0 12px gray;
background-color: hsl(217deg 12% 12%);
}
.dark .btncheck:hover {
text-shadow: 0 0 12px gray;
background-color: hsl(220deg 13% 18%);
cursor: pointer;
}
.btncheck {
display: block;
visibility: visible;
position: fixed;
top: 25px;
left: 220px;
pointer-events: auto;
-moz-border-radius: 30px;
-webkit-border-radius: 30px;
/* border-radius: 10px; */
}
@keyframes movein {
0% {
transform: translateX(-240);
}
100% {
transform: translateX(0);
}
}
@keyframes moveout {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-240);
}
}
@media screen and (max-width: 1335px) {
#preamble{
transform: translateX(-240px);
}
.btncheck {
display: none;
}
#content {
max-width: 75em;
padding-left: 20px;
}
.light div.outline-2,.light #footnotes ,.dark div.outline-2,.dark #footnotes{
margin-left: 5%;
max-width: 90%;
}
.light h1.title ,.dark h1.title{
text-align: left;
margin: 1em 0 0 0%;
}
.light html, .light body,.dark html, .dark body {
font-size: 14px;
}
.light #table-of-contents,.dark #table-of-contents {
display: none;
}
.previousButton {
width: 30px;
height: 100vh;
position: fixed;
left: 0px;
top: 0px;
justify-content: center;
text-align: center;
vertical-align: middle;
display: flex;
flex-direction: column;
font-size: 2em;
}
.nextButton {
width: 30px;
height: 100vh;
position: fixed;
right: 0px;
top: 0px;
justify-content: center;
text-align: center;
vertical-align: middle;
display: flex;
flex-direction: column;
font-size: 2em;
}
}
@media screen and (min-width: 1335px) {
.hidden-content {
transform: translateX(240px);
}
#preamble {
transform: translateX(0px);
}
#content {
max-width: 60em;
/* padding-left: 160px; */
}
.light h1.title ,.dark h1.title{
text-align: left;
margin: 0.5em 0 0 0px;
}
.previousButton {
width: 30px;
height: 100vh;
position: fixed;
left: 240px;
top: 0px;
justify-content: center;
text-align: center;
vertical-align: middle;
display: flex;
flex-direction: column;
font-size: 2em;
}
.nextButton {
width: 30px;
height: 100vh;
position: fixed;
right: 0px;
top: 0px;
justify-content: center;
text-align: center;
vertical-align: middle;
display: flex;
flex-direction: column;
font-size: 2em;
}
}
.unselectable {
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer */
user-select: none; /* Standard syntax */
}
.figure p {
text-align: left;
}
#preamble {
display: none !important;
}