8000 Switched :where back to :is · squidfunk/mkdocs-material@8787449 · GitHub
[go: up one dir, main page]

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

material/assets/stylesheets/main.8e8281cd.min.css

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.f7951f6f.min.css

Lines changed: 0 additions & 9 deletions
This file was deleted.

material/base.html

Lines changed: 1 addition & 1 deletion
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 }}">

src/assets/stylesheets/main/_typeset.scss

Lines changed: 13 additions & 13 deletions
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

src/assets/stylesheets/main/extensions/markdown/_admonition.scss

Lines changed: 4 additions & 4 deletions
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

src/assets/stylesheets/main/extensions/markdown/_footnotes.scss

Lines changed: 1 addition & 1 deletion
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
}

src/assets/stylesheets/main/extensions/markdown/_toc.scss

Lines changed: 3 additions & 3 deletions
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

src/assets/stylesheets/main/extensions/pymdownx/_critic.scss

Lines changed: 1 addition & 1 deletion
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

src/assets/stylesheets/main/extensions/pymdownx/_details.scss

Lines changed: 1 addition & 1 deletion
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;

0 commit comments

Comments
 (0)
0