Skip to content

Commit f2985d8

Browse files
committed
Fixed style of tab controls in modern theme
Signed-off-by: squidfunk <martin.donath@squidfunk.com>
1 parent e695eb3 commit f2985d8

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

dist/assets/stylesheets/modern/main.407b183d.min.css renamed to dist/assets/stylesheets/modern/main.c2e73cb1.min.css

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

dist/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{% endblock %}
4848
{% block styles %}
4949
{% if config.theme.variant == "modern" %}
50-
{% set href = 'assets/stylesheets/modern/main.407b183d.min.css' | url %}
50+
{% set href = 'assets/stylesheets/modern/main.c2e73cb1.min.css' | url %}
5151
{% else %}
5252
{% set href = 'assets/stylesheets/classic/main.6eec86b3.min.css' | url %}
5353
{% endif %}

src/assets/stylesheets/modern/main/extensions/pymdownx/_tabbed.scss

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -280,17 +280,19 @@
280280
align-self: center;
281281
width: px2rem(18px);
282282
height: px2rem(18px);
283-
margin-top: px2rem(2px);
283+
margin-top: px2rem(8px);
284284
color: var(--md-default-fg-color--light);
285+
background-color: var(--md-default-bg-color--light);
286+
backdrop-filter: blur(px2rem(8px));
287+
box-shadow: var(--md-shadow-z2);
285288
pointer-events: initial;
286289
cursor: pointer;
287290
border-radius: 100%;
288-
transition: background-color 250ms;
291+
transition: transform 125ms;
289292

290293
// Tabbed button on hover
291294
&:hover {
292-
color: var(--md-accent-fg-color);
293-
background-color: var(--md-accent-fg-color--transparent);
295+
transform: scale(1.125);
294296
}
295297

296298
// Tabbed button icon
@@ -318,12 +320,6 @@
318320
width: px2rem(24px);
319321
height: px2rem(38px);
320322
pointer-events: none;
321-
background:
322-
linear-gradient(
323-
to right,
324-
var(--md-default-bg-color) 60%,
325-
transparent
326-
);
327323
transition: opacity 125ms;
328324

329325
// Adjust for right-to-left languages
@@ -340,12 +336,6 @@
340336
&--next {
341337
right: 0;
342338
justify-content: end;
343-
background:
344-
linear-gradient(
345-
to left,
346-
var(--md-default-bg-color) 60%,
347-
transparent
348-
);
349339

350340
// Tabbed button icon content
351341
.tabbed-button::after {

0 commit comments

Comments
 (0)