Use separator `div instead of ::after on the home button

This commit is contained in:
daudix
2024-09-11 21:21:13 +03:00
parent c035e69830
commit 4d278ca078
3 changed files with 34 additions and 49 deletions

View File

@ -53,6 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Use more fitting cursors in some contexts. - Use more fitting cursors in some contexts.
- Use PNG instead of GIF for comments QR code to reduce download size. - Use PNG instead of GIF for comments QR code to reduce download size.
- Use relative colors for `-bg` color variants. - Use relative colors for `-bg` color variants.
- Use separator `div` instead of `::after` on the home button.
### Removed ### Removed

View File

@ -99,30 +99,7 @@
} }
} }
#home { #home a {
position: relative;
margin-inline-end: 0.625rem;
&::after {
position: absolute;
top: -0.125rem;
right: -0.5rem;
background-color: var(--fg-muted-2);
width: max(1px, 0.0625em);
height: calc(100% + 0.25rem);
content: "";
:root[dir*="rtl"] & {
right: unset;
left: -0.5rem;
}
@media only screen and (max-width: 480px) {
display: none;
}
}
a {
color: var(--fg-muted-5); color: var(--fg-muted-5);
font-weight: 800; font-weight: 800;
@ -163,8 +140,14 @@
} }
} }
.divider {
align-self: stretch;
margin: 0 0.25rem;
background-color: var(--fg-muted-2);
width: max(1px, 0.0625em);
@media only screen and (max-width: 480px) { @media only screen and (max-width: 480px) {
margin-inline-end: 0; display: none;
} }
} }

View File

@ -15,6 +15,7 @@
{{- config.title -}} {{- config.title -}}
</a> </a>
</li> </li>
<div class="divider"></div>
{%- for link in config.extra.nav.links %} {%- for link in config.extra.nav.links %}
{%- if link.sublinks and link.sublinks | length > 0 -%} {%- if link.sublinks and link.sublinks | length > 0 -%}
<li> <li>