mirror of
https://github.com/snachodog/just-the-docs.git
synced 2026-06-30 02:49:03 -06:00
56e0f1c800
Rectify and simplify CSS rules used in the head element. The rules now avoid the invalid use of nested `:not()` pseudo-classes.
- Update CHANGELOG.md
- Remove ignore statements re CSS parse errors
- Add rules for excluded pages and simplify
- Add `activation_no_nav_link` with the rules for excluded pages
- Insert `activation_no_nav_link` when no other rules are generated
- Replace `:nth-child(1)` by `:first-child`
- Correct `:nth-child(n + {{ activation_index | plus: 1 }})` to `:not(:first-child)`
- Eliminate `activation_collection_index`
- Generate `.nav-category-list` selectors only for sites with collections
---------
Co-authored-by: Matt Wang <matt@matthewwang.me>
25 lines
587 B
CSS
25 lines
587 B
CSS
---
|
|
---
|
|
{%- if site.color_scheme and site.color_scheme != "nil" -%}
|
|
{%- assign color_scheme = site.color_scheme -%}
|
|
{%- else -%}
|
|
{%- assign color_scheme = "light" -%}
|
|
{%- endif -%}
|
|
|
|
{%- capture newline %}
|
|
{% endcapture -%}
|
|
|
|
{%- capture scss -%}
|
|
{% include css/just-the-docs.scss.liquid color_scheme=color_scheme %}
|
|
.site-nav ul li a {
|
|
background-image: linear-gradient(
|
|
-90deg,
|
|
rgba($feedback-color, 1) 0%,
|
|
rgba($feedback-color, 0.8) 80%,
|
|
rgba($feedback-color, 0) 100%
|
|
);
|
|
}
|
|
{%- endcapture -%}
|
|
|
|
{{ scss | scssify | split: newline | slice: -3, 3 | join: newline }}
|