Skip to content

Commit

Permalink
Switched content tabs to neutral color
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Sep 22, 2023
1 parent c9e4a5e commit 5deec28
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1212ebcf.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.72749a73.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a5377069.min.css' | url }}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
}
}
}

// Tab indicator on keyboard focus
&.focus-visible ~ .tabbed-labels::before {
background-color: var(--md-accent-fg-color);
}
}
}

Expand Down Expand Up @@ -115,10 +120,11 @@
width: var(--md-indicator-width);
height: 2px;
content: "";
background: var(--md-accent-fg-color);
background: var(--md-default-fg-color);
transition:
width 225ms,
transform 250ms;
width 225ms,
background-color 250ms,
transform 250ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transform: translateX(var(--md-indicator-x));
}
Expand Down Expand Up @@ -160,7 +166,7 @@

// Tab label on hover
&:hover {
color: var(--md-accent-fg-color);
color: var(--md-default-fg-color);
}
}
}
Expand Down Expand Up @@ -374,18 +380,18 @@

// [screen]: Show active state
@media screen {
color: var(--md-accent-fg-color);
color: var(--md-default-fg-color);

// [no-js]: Show border (indicator is animated with JavaScript)
.no-js & {
border-color: var(--md-accent-fg-color);
border-color: var(--md-default-fg-color);
}
}
}

// Tab label on keyboard focus placeholder
%tabbed-label-focus-visible {
background-color: var(--md-accent-fg-color--transparent);
color: var(--md-accent-fg-color);
}

// Tab content placeholder
Expand Down

0 comments on commit 5deec28

Please sign in to comment.