Skip to content

Commit 6d482bf

Browse files
committed
refactor(defaultTheme): remove browser-compat styles
1 parent faa2615 commit 6d482bf

File tree

1 file changed

+11
-29
lines changed

1 file changed

+11
-29
lines changed

src/tpl/defaultTheme/frontend/index.css

Lines changed: 11 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;
@@ -65,6 +56,10 @@ input, button {
6556
padding: 0.25em 0;
6657
}
6758

59+
input::-ms-clear {
60+
display: none;
61+
}
62+
6863
input[type=button],
6964
input[type=submit],
7065
input[type=reset],
@@ -103,7 +98,6 @@ em {
10398
html::before {
10499
display: none;
105100
content: '';
106-
position: absolute;
107101
position: fixed;
108102
z-index: 2;
109103
left: 0;
@@ -124,7 +118,6 @@ html.dragging::before {
124118
line-height: 1.2;
125119
overflow: hidden;
126120
border-bottom: 1px #999 solid;
127-
zoom: 1;
128121
}
129122

130123
.path-list li {
@@ -150,7 +143,6 @@ html.dragging::before {
150143
height: 0.4em;
151144
border: 1px solid;
152145
border-color: #ccc #ccc transparent transparent;
153-
-webkit-transform: rotate(45deg) translateY(-50%);
154146
transform: rotate(45deg) translateY(-50%);
155147
}
156148

@@ -209,16 +201,14 @@ html.dragging::before {
209201

210202
.upload-status {
211203
visibility: hidden;
212-
position: absolute;
213204
position: sticky;
214205
z-index: 1;
215206
left: 0;
216207
top: 0;
217208
width: 100%;
218209
height: 4px;
219210
margin-bottom: -4px;
220-
background: #faf5fa;
221-
background-color: rgba(204, 153, 204, 0.1);
211+
background: rgba(204, 153, 204, 0.1);
222212
pointer-events: none;
223213
}
224214

@@ -242,7 +232,6 @@ html.dragging::before {
242232
position: relative;
243233
display: inline-block;
244234
vertical-align: top;
245-
text-align: left;
246235
text-align: start;
247236
padding: 0.5em 1em;
248237
box-sizing: border-box;
@@ -252,8 +241,7 @@ html.dragging::before {
252241

253242
.upload-status .info .content {
254243
padding-left: 2.5em;
255-
background: #c9c;
256-
background-color: rgba(204, 153, 204, 0.8);
244+
background: rgba(204, 153, 204, 0.8);
257245
}
258246

259247
@keyframes wheel {
@@ -284,14 +272,12 @@ html.dragging::before {
284272
}
285273

286274
.upload-status .warn .content {
287-
background: #800000;
288-
background-color: rgba(128, 0, 0, 0.8);
275+
background: rgba(128, 0, 0, 0.8);
289276
}
290277

291278
.upload-status.uploading .info,
292279
.upload-status.failed .warn {
293280
opacity: 1;
294-
-webkit-transform: translateY(25%);
295281
transform: translateY(25%);
296282
}
297283

@@ -328,7 +314,6 @@ html.dragging::before {
328314
.archive {
329315
margin: 1em;
330316
overflow: hidden;
331-
zoom: 1;
332317
}
333318

334319
.archive a {
@@ -364,7 +349,6 @@ html.dragging::before {
364349
border: 3px #aaa solid;
365350
border-top-color: transparent;
366351
border-left-color: transparent;
367-
-webkit-transform: rotate(45deg);
368352
transform: rotate(45deg);
369353
}
370354

@@ -420,7 +404,6 @@ html.dragging::before {
420404

421405
.item-list li {
422406
position: relative;
423-
zoom: 1;
424407
}
425408

426409
.item-list a {
@@ -434,7 +417,6 @@ html.dragging::before {
434417
align-items: center;
435418
border-bottom: 1px #f5f5f5 solid;
436419
overflow: hidden;
437-
zoom: 1;
438420
}
439421

440422
.has-deletable .detail {
@@ -515,13 +497,13 @@ html.dragging::before {
515497
background: #ffc;
516498
}
517499

518-
@media only screen and (prefers-color-scheme: light) {
500+
@media screen and (prefers-color-scheme: light) {
519501
html {
520502
color-scheme: light;
521503
}
522504
}
523505

524-
@media only screen and (prefers-color-scheme: dark) {
506+
@media screen and (prefers-color-scheme: dark) {
525507
html {
526508
color-scheme: dark;
527509
}
@@ -613,7 +595,7 @@ html.dragging::before {
613595
}
614596
}
615597

616-
@media only screen and (max-width: 375px) {
598+
@media screen and (max-width: 375px) {
617599
.item-list .header .time {
618600
width: 4.05em;
619601
}
@@ -623,7 +605,7 @@ html.dragging::before {
623605
}
624606
}
625607

626-
@media only screen and (max-width: 350px) {
608+
@media screen and (max-width: 350px) {
627609
.item-list .detail .time {
628610
display: none;
629611
}

0 commit comments

Comments
 (0)