Skip to content

Commit 8f2e324

Browse files
Remove some non-standard CSS properties (#686)
These are all CSS rules that were needed at a point in time when cross-browser website support was required, during the past decade. All these features are baseline now, so there's no need for these browser-engine-specific rules.
1 parent 43ca85d commit 8f2e324

File tree

4 files changed

+0
-11
lines changed

4 files changed

+0
-11
lines changed

assets/theme-css/code-highlight.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ html[data-theme="light"] {
306306
/* LineNumbersTable */
307307
.chroma .lnt {
308308
white-space: pre;
309-
-webkit-user-select: none;
310309
user-select: none;
311310
margin-right: 0.4em;
312311
padding: 0 0.4em 0 0.4em;
@@ -315,7 +314,6 @@ html[data-theme="light"] {
315314
/* LineNumbers */
316315
.chroma .ln {
317316
white-space: pre;
318-
-webkit-user-select: none;
319317
user-select: none;
320318
margin-right: 0.4em;
321319
padding: 0 0.4em 0 0.4em;

assets/theme-css/navbar.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ a.navbar-item.nav-external::after,
5454
font-family: inherit;
5555
font-size: 1em;
5656
padding: 0;
57-
-moz-appearance: none;
58-
-webkit-appearance: none;
5957
appearance: none;
6058
background: 0 0;
6159
border: none;

assets/theme-css/sphinx-design/_button.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
box-shadow 0.15s ease-in-out;
2424
vertical-align: middle;
2525
user-select: none;
26-
-moz-user-select: none;
27-
-ms-user-select: none;
28-
-webkit-user-select: none;
2926

3027
&:hover {
3128
text-decoration: none;

assets/theme-css/sphinx-design/_cards.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
border: 1px solid var(--sd-color-card-border);
1111
border-radius: 0.25rem;
1212
color: var(--sd-color-card-text);
13-
display: -ms-flexbox;
1413
display: flex;
15-
-ms-flex-direction: column;
1614
flex-direction: column;
1715
min-width: 0;
1816
position: relative;
@@ -30,7 +28,6 @@
3028
}
3129

3230
.sd-card-body {
33-
-ms-flex: 1 1 auto;
3431
flex: 1 1 auto;
3532
padding: 1rem 1rem;
3633
}
@@ -125,7 +122,6 @@
125122
width: 100%;
126123
display: flex;
127124
flex-wrap: nowrap;
128-
-ms-flex-direction: row;
129125
flex-direction: row;
130126
overflow-x: hidden;
131127
scroll-snap-type: x mandatory;

0 commit comments

Comments
 (0)