Skip to content

Commit 426783b

Browse files
committed
refactor(defaultTheme): remove browser-compat styles
1 parent a971eab commit 426783b

File tree

1 file changed

+7
-29
lines changed

1 file changed

+7
-29
lines changed

src/tpl/defaultTheme/frontend/index.css

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@ html, body {
44
background: #fff;
55
}
66

7-
html {
8-
font-family: "roboto_condensedbold", "Helvetica Neue", Helvetica, Arial, sans-serif;
9-
}
10-
117
body {
128
color: #333;
139
font-size: 0.625em;
1410
font-variant-ligatures: none;
1511
font-variant-numeric: tabular-nums;
1612
font-kerning: none;
17-
-webkit-text-size-adjust: none;
1813
text-size-adjust: none;
1914
hyphens: none;
2015
padding-bottom: 2em;
@@ -24,10 +19,6 @@ body, input, textarea, button {
2419
font-family: "Cascadia Mono", Consolas, "Lucida Console", "San Francisco Mono", Menlo, Monaco, "Andale Mono", "DejaVu Sans Mono", "Jetbrains Mono NL", monospace;
2520
}
2621

27-
input::-ms-clear {
28-
display: none;
29-
}
30-
3122
form {
3223
margin: 0;
3324
padding: 0;
@@ -103,7 +94,6 @@ em {
10394
html::before {
10495
display: none;
10596
content: '';
106-
position: absolute;
10797
position: fixed;
10898
z-index: 2;
10999
left: 0;
@@ -124,7 +114,6 @@ html.dragging::before {
124114
line-height: 1.2;
125115
overflow: hidden;
126116
border-bottom: 1px #999 solid;
127-
zoom: 1;
128117
}
129118

130119
.path-list li {
@@ -150,7 +139,6 @@ html.dragging::before {
150139
height: 0.4em;
151140
border: 1px solid;
152141
border-color: #ccc #ccc transparent transparent;
153-
-webkit-transform: rotate(45deg) translateY(-50%);
154142
transform: rotate(45deg) translateY(-50%);
155143
}
156144

@@ -209,16 +197,14 @@ html.dragging::before {
209197

210198
.upload-status {
211199
visibility: hidden;
212-
position: absolute;
213200
position: sticky;
214201
z-index: 1;
215202
left: 0;
216203
top: 0;
217204
width: 100%;
218205
height: 4px;
219206
margin-bottom: -4px;
220-
background: #faf5fa;
221-
background-color: rgba(204, 153, 204, 0.1);
207+
background: rgba(204, 153, 204, 0.1);
222208
pointer-events: none;
223209
}
224210

@@ -242,7 +228,6 @@ html.dragging::before {
242228
position: relative;
243229
display: inline-block;
244230
vertical-align: top;
245-
text-align: left;
246231
text-align: start;
247232
padding: 0.5em 1em;
248233
box-sizing: border-box;
@@ -252,8 +237,7 @@ html.dragging::before {
252237

253238
.upload-status .info .content {
254239
padding-left: 2.5em;
255-
background: #c9c;
256-
background-color: rgba(204, 153, 204, 0.8);
240+
background: rgba(204, 153, 204, 0.8);
257241
}
258242

259243
@keyframes wheel {
@@ -284,14 +268,12 @@ html.dragging::before {
284268
}
285269

286270
.upload-status .warn .content {
287-
background: #800000;
288-
background-color: rgba(128, 0, 0, 0.8);
271+
background: rgba(128, 0, 0, 0.8);
289272
}
290273

291274
.upload-status.uploading .info,
292275
.upload-status.failed .warn {
293276
opacity: 1;
294-
-webkit-transform: translateY(25%);
295277
transform: translateY(25%);
296278
}
297279

@@ -328,7 +310,6 @@ html.dragging::before {
328310
.archive {
329311
margin: 1em;
330312
overflow: hidden;
331-
zoom: 1;
332313
}
333314

334315
.archive a {
@@ -364,7 +345,6 @@ html.dragging::before {
364345
border: 3px #aaa solid;
365346
border-top-color: transparent;
366347
border-left-color: transparent;
367-
-webkit-transform: rotate(45deg);
368348
transform: rotate(45deg);
369349
}
370350

@@ -412,7 +392,6 @@ html.dragging::before {
412392

413393
.item-list li {
414394
position: relative;
415-
zoom: 1;
416395
}
417396

418397
.item-list a {
@@ -426,7 +405,6 @@ html.dragging::before {
426405
align-items: center;
427406
border-bottom: 1px #f5f5f5 solid;
428407
overflow: hidden;
429-
zoom: 1;
430408
}
431409

432410
.has-deletable .detail {
@@ -507,13 +485,13 @@ html.dragging::before {
507485
background: #ffc;
508486
}
509487

510-
@media only screen and (prefers-color-scheme: light) {
488+
@media screen and (prefers-color-scheme: light) {
511489
html {
512490
color-scheme: light;
513491
}
514492
}
515493

516-
@media only screen and (prefers-color-scheme: dark) {
494+
@media screen and (prefers-color-scheme: dark) {
517495
html {
518496
color-scheme: dark;
519497
}
@@ -605,7 +583,7 @@ html.dragging::before {
605583
}
606584
}
607585

608-
@media only screen and (max-width: 375px) {
586+
@media screen and (max-width: 375px) {
609587
.item-list .header .time {
610588
width: 4.05em;
611589
}
@@ -615,7 +593,7 @@ html.dragging::before {
615593
}
616594
}
617595

618-
@media only screen and (max-width: 350px) {
596+
@media screen and (max-width: 350px) {
619597
.item-list .detail .time {
620598
display: none;
621599
}

0 commit comments

Comments
 (0)