Skip to content

Commit 8787449

Browse files
committed
Switched :where back to :is
1 parent 5a96912 commit 8787449

24 files changed

+70
-70
lines changed

Diff for: material/assets/stylesheets/main.8e8281cd.min.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/assets/stylesheets/main.f7951f6f.min.css.map renamed to material/assets/stylesheets/main.8e8281cd.min.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: material/assets/stylesheets/main.f7951f6f.min.css

-9
This file was deleted.

Diff for: material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{% endif %}
3535
{% endblock %}
3636
{% block styles %}
37-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f7951f6f.min.css' | url }}">
37+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.8e8281cd.min.css' | url }}">
3838
{% if config.theme.palette %}
3939
{% set palette = config.theme.palette %}
4040
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">

Diff for: src/assets/stylesheets/main/_typeset.scss

+13-13
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ kbd {
8484
}
8585

8686
// Default spacing
87-
:where(ul, ol, dl, figure, blockquote, pre) {
87+
:is(ul, ol, dl, figure, blockquote, pre) {
8888
margin: 1em 0;
8989
}
9090

@@ -129,7 +129,7 @@ kbd {
129129
}
130130

131131
// Headline on level 5-6
132-
:where(h5, h6) {
132+
:is(h5, h6) {
133133
margin: px2em(16px, 12.8px) 0;
134134
color: var(--md-default-fg-color--light);
135135
font-weight: 700;
@@ -161,7 +161,7 @@ kbd {
161161
}
162162

163163
// Text link on focus/hover
164-
&:where(:focus, :hover) {
164+
&:is(:focus, :hover) {
165165
color: var(--md-accent-fg-color);
166166
}
167167

@@ -173,7 +173,7 @@ kbd {
173173
}
174174

175175
// Code block
176-
:where(code, pre, kbd) {
176+
:is(code, pre, kbd) {
177177
color: var(--md-code-fg-color);
178178
direction: ltr;
179179

@@ -200,7 +200,7 @@ kbd {
200200
}
201201

202202
// Code block in headline
203-
:where(h1, h2, h3, h4, h5, h6) code {
203+
:is(h1, h2, h3, h4, h5, h6) code {
204204
margin: initial;
205205
padding: initial;
206206
background-color: transparent;
@@ -290,7 +290,7 @@ kbd {
290290
position: relative;
291291

292292
// Tooltip
293-
&[title]:where(:focus, :hover)::after {
293+
&[title]:is(:focus, :hover)::after {
294294
position: absolute;
295295
inset-inline-start: 0;
296296
display: inline-block;
@@ -315,7 +315,7 @@ kbd {
315315
}
316316

317317
// Superscript and subscript
318-
:where(sup, sub) {
318+
:is(sup, sub) {
319319
margin-inline-start: px2em(1px, 12.8px);
320320
}
321321

@@ -332,7 +332,7 @@ kbd {
332332
}
333333

334334
// Unordered and ordered list
335-
:where(ul, ol) {
335+
:is(ul, ol) {
336336
margin-inline-start: px2em(10px);
337337
padding: 0;
338338

@@ -357,7 +357,7 @@ kbd {
357357
margin-inline-start: px2em(20px);
358358

359359
// Adjust spacing
360-
:where(p, blockquote) {
360+
:is(p, blockquote) {
361361
margin: 0.5em 0;
362362
}
363363

@@ -367,7 +367,7 @@ kbd {
367367
}
368368

369369
// Nested list
370-
:where(ul, ol) {
370+
:is(ul, ol) {
371371
margin-block: 0.5em;
372372
margin-inline-start: px2em(10px);
373373
}
@@ -381,7 +381,7 @@ kbd {
381381
}
382382

383383
// Image or icon
384-
:where(img, svg) {
384+
:is(img, svg) {
385385
max-width: 100%;
386386
height: auto;
387387

@@ -458,7 +458,7 @@ kbd {
458458
}
459459

460460
// Elements in table heading and cell
461-
:where(th, td) > * {
461+
:is(th, td) > * {
462462

463463
// Adjust spacing on first child
464464
&:first-child {
@@ -472,7 +472,7 @@ kbd {
472472
}
473473

474474
// Table heading and cell
475-
:where(th, td):not([align]) {
475+
:is(th, td):not([align]) {
476476
text-align: left;
477477

478478
// Adjust for right-to-left languages

Diff for: src/assets/stylesheets/main/extensions/markdown/_admonition.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ $admonitions: (
6262

6363
// Admonition - note that all styles also apply to details tags, which are
6464
// rendered as collapsible admonitions with summary elements as titles.
65-
:where(.admonition, details) {
65+
:is(.admonition, details) {
6666
display: flow-root;
6767
margin: px2em(20px, 12.8px) 0;
6868
padding: 0 px2rem(12px);
@@ -87,7 +87,7 @@ $admonitions: (
8787
}
8888

8989
// Adjust vertical spacing for nested admonitions
90-
:where(.admonition, details) {
90+
:is(.admonition, details) {
9191
margin-top: 1em;
9292
margin-bottom: 1em;
9393
}
@@ -162,12 +162,12 @@ $admonitions: (
162162
}
163163

164164
// Admonition flavour
165-
.md-typeset :where(.admonition, details):where(#{$flavours}) {
165+
.md-typeset :is(.admonition, details):is(#{$flavours}) {
166166
border-color: $tint;
167167
}
168168

169169
// Admonition flavour title
170-
.md-typeset :where(#{$flavours}) > :is(.admonition-title, summary) {
170+
.md-typeset :is(#{$flavours}) > :is(.admonition-title, summary) {
171171
background-color: color.adjust($tint, $alpha: -0.9);
172172
border-color: $tint;
173173

Diff for: src/assets/stylesheets/main/extensions/markdown/_footnotes.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
}
6262

6363
// Show backreferences on footnote hover/target
64-
&:where(:hover, :target) .footnote-backref {
64+
&:is(:hover, :target) .footnote-backref {
6565
transform: translateX(0);
6666
opacity: 1;
6767
}

Diff for: src/assets/stylesheets/main/extensions/markdown/_toc.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646
// Show headerlinks on parent hover
47-
:where(:hover, :target) > .headerlink,
47+
:is(:hover, :target) > .headerlink,
4848
.headerlink:focus {
4949
opacity: 1;
5050
transition:
@@ -54,7 +54,7 @@
5454

5555
// Adjust color on parent target or focus/hover
5656
:target > .headerlink,
57-
.headerlink:where(:focus, :hover) {
57+
.headerlink:is(:focus, :hover) {
5858
color: var(--md-accent-fg-color);
5959
}
6060

@@ -81,7 +81,7 @@
8181
}
8282

8383
// Adjust scroll offset for headlines of level 1-3
84-
:where(h1, h2, h3):target {
84+
:is(h1, h2, h3):target {
8585
--md-scroll-offset: #{px2rem(4px)};
8686
}
8787

Diff for: src/assets/stylesheets/main/extensions/pymdownx/_critic.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
.md-typeset {
2929

3030
// Deletion, addition or comment
31-
:where(del, ins, .comment).critic {
31+
:is(del, ins, .comment).critic {
3232
box-decoration-break: clone;
3333
}
3434

Diff for: src/assets/stylesheets/main/extensions/pymdownx/_details.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
}
104104

105105
// Hide native details marker - Safari (iOS and macOS) does not seem to
106-
// like :where() on details elements, so just go with a selector list.
106+
// like :is() on details elements, so just go with a selector list.
107107
&::marker,
108108
&::-webkit-details-marker {
109109
display: none;

Diff for: src/assets/stylesheets/main/extensions/pymdownx/_emoji.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
.md-typeset {
2929

3030
// Emoji and icon container
31-
:where(.emojione, .twemoji, .gemoji) {
31+
:is(.emojione, .twemoji, .gemoji) {
3232
display: inline-flex;
3333
height: px2em(18px);
3434
vertical-align: text-top;

Diff for: src/assets/stylesheets/main/extensions/pymdownx/_highlight.scss

+14-14
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
// .o = Operator
3131
// .ow = Operator, word
32-
:where(.o, .ow) {
32+
:is(.o, .ow) {
3333
color: var(--md-code-hl-operator-color);
3434
}
3535

@@ -46,7 +46,7 @@
4646
// .si = Literal, string interpol
4747
// .s1 = Literal, string single
4848
// .ss = Literal, string symbol
49-
:where(.cpf, .l, .s, .sb, .sc, .s2, .si, .s1, .ss) {
49+
:is(.cpf, .l, .s, .sb, .sc, .s2, .si, .s1, .ss) {
5050
color: var(--md-code-hl-string-color);
5151
}
5252

@@ -55,7 +55,7 @@
5555
// .sh = Literal, string heredoc
5656
// .sr = Literal, string regex
5757
// .sx = Literal, string other
58-
:where(.cp, .se, .sh, .sr, .sx) {
58+
:is(.cp, .se, .sh, .sr, .sx) {
5959
color: var(--md-code-hl-special-color);
6060
}
6161

@@ -66,7 +66,7 @@
6666
// .mi = Number, integer
6767
// .il = Number, integer long
6868
// .mo = Number, octal
69-
:where(.m, .mb, .mf, .mh, .mi, .il, .mo) {
69+
:is(.m, .mb, .mf, .mh, .mi, .il, .mo) {
7070
color: var(--md-code-hl-number-color);
7171
}
7272

@@ -76,36 +76,36 @@
7676
// .kp = Keyword, pseudo
7777
// .kr = Keyword, reserved
7878
// .kt = Keyword, type
79-
:where(.k, .kd, .kn, .kp, .kr, .kt) {
79+
:is(.k, .kd, .kn, .kp, .kr, .kt) {
8080
color: var(--md-code-hl-keyword-color);
8181
}
8282

8383
// .kc = Keyword, constant
8484
// .n = Name
85-
:where(.kc, .n) {
85+
:is(.kc, .n) {
8686
color: var(--md-code-hl-name-color);
8787
}
8888

8989
// .no = Name, constant
9090
// .nb = Name, builtin
9191
// .bp = Name, builtin pseudo
92-
:where(.no, .nb, .bp) {
92+
:is(.no, .nb, .bp) {
9393
color: var(--md-code-hl-constant-color);
9494
}
9595

9696
// .nc = Name, class
9797
// .ne = Name, exception
9898
// .nf = Name, function
9999
// .nn = Name, namespace
100-
:where(.nc, .ne, .nf, .nn) {
100+
:is(.nc, .ne, .nf, .nn) {
101101
color: var(--md-code-hl-function-color);
102102
}
103103

104104
// .nd = Name, decorator
105105
// .ni = Name, entity
106106
// .nl = Name, label
107107
// .nt = Name, tag
108-
:where(.nd, .ni, .nl, .nt) {
108+
:is(.nd, .ni, .nl, .nt) {
109109
color: var(--md-code-hl-keyword-color);
110110
}
111111

@@ -115,7 +115,7 @@
115115
// .ch = Comment, shebang
116116
// .cs = Comment, special
117117
// .sd = Literal, string doc
118-
:where(.c, .cm, .c1, .ch, .cs, .sd) {
118+
:is(.c, .cm, .c1, .ch, .cs, .sd) {
119119
color: var(--md-code-hl-comment-color);
120120
}
121121

@@ -124,7 +124,7 @@
124124
// .vc = Variable, class
125125
// .vg = Variable, global
126126
// .vi = Variable, instance
127-
:where(.na, .nv, .vc, .vg, .vi) {
127+
:is(.na, .nv, .vc, .vg, .vi) {
128128
color: var(--md-code-hl-variable-color);
129129
}
130130

@@ -136,13 +136,13 @@
136136
// .gs = Generic, strong
137137
// .gu = Generic, subheading
138138
// .gt = Generic, traceback
139-
:where(.ge, .gr, .gh, .go, .gp, .gs, .gu, .gt) {
139+
:is(.ge, .gr, .gh, .go, .gp, .gs, .gu, .gt) {
140140
color: var(--md-code-hl-generic-color);
141141
}
142142

143143
// .gd = Diff, delete
144144
// .gi = Diff, insert
145-
:where(.gd, .gi) {
145+
:is(.gd, .gi) {
146146
margin: 0 px2em(-2px);
147147
padding: 0 px2em(2px);
148148
border-radius: px2rem(2px);
@@ -222,7 +222,7 @@
222222

223223
// Set table elements to block layout, because otherwise the whole flexbox
224224
// hacking won't work correctly
225-
:where(tbody, td) {
225+
:is(tbody, td) {
226226
display: block;
227227
padding: 0;
228228
}

Diff for: src/assets/stylesheets/main/extensions/pymdownx/_keys.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
.keys {
3232

3333
// Keyboard key icon
34-
kbd:where(::before, ::after) {
34+
kbd:is(::before, ::after) {
3535
position: relative;
3636
margin: 0;
3737
color: inherit;

Diff for: src/assets/stylesheets/main/layout/_clipboard.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
}
9494

9595
// Code block on focus/hover
96-
&:where(:focus, :hover) code {
96+
&:is(:focus, :hover) code {
9797
color: var(--md-accent-fg-color);
9898
background-color: var(--md-accent-fg-color--transparent);
9999
}

Diff for: src/assets/stylesheets/main/layout/_footer.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
transition: opacity 250ms;
5858

5959
// Footer link on focus/hover
60-
&:where(:focus, :hover) {
60+
&:is(:focus, :hover) {
6161
opacity: 0.7;
6262
}
6363

@@ -135,7 +135,7 @@
135135
color: var(--md-footer-fg-color--light);
136136

137137
// Text link on focus/hover
138-
&:where(:focus, :hover) {
138+
&:is(:focus, :hover) {
139139
color: var(--md-footer-fg-color);
140140
}
141141
}

Diff for: src/assets/stylesheets/main/layout/_form.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050

5151
// Button on focus/hover
52-
&:where(:focus, :hover) {
52+
&:is(:focus, :hover) {
5353
color: var(--md-accent-bg-color);
5454
background-color: var(--md-accent-fg-color);
5555
border-color: var(--md-accent-fg-color);
@@ -70,7 +70,7 @@
7070
box-shadow 250ms;
7171

7272
// Input on focus/hover
73-
&:where(:focus, :hover) {
73+
&:is(:focus, :hover) {
7474
border-bottom-color: var(--md-accent-fg-color);
7575
box-shadow: var(--md-shadow-z2);
7676
}

0 commit comments

Comments
 (0)