💄style: improve navigation bar & metadata wrapping

- Group wrapped navigation icons
- Better wrapping of article metadata:
  - Tags never get split
  - Separator uses a class instead of non-breaking spaces
  - Elements are joined with their separator
  - Elements starting in a new line (due to wrapping), do not get space before the separator
This commit is contained in:
welpo 2024-11-09 01:55:38 +01:00
parent 0253799f23
commit 59253df0c5
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 44 additions and 31 deletions

View file

@ -24,13 +24,15 @@ header {
.nav-navs {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 1px;
ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 1px;
display: inherit;
flex-wrap: inherit;
justify-content: inherit;
align-items: inherit;
gap: inherit;
margin: 0;
padding: 0;
list-style: none;
@ -76,11 +78,18 @@ header {
ul,
li {
display: inline;
display: inline-block;
margin-inline-end: 0.2rem;
font-family: var(--sans-serif-font);
list-style-type: none;
}
.separator {
margin-inline-end: 0.2rem;
user-select: none;
}
}
.language-switcher {
display: flex;
justify-content: center;