Restyled navigation

main
Štěpán Škorpil 2022-01-15 14:02:06 +01:00
rodzic 99783b4728
commit 633ab39739
1 zmienionych plików z 25 dodań i 34 usunięć

Wyświetl plik

@ -14,10 +14,11 @@
//} //}
} }
table{ table {
width: 100%; width: 100%;
text-align: left; text-align: left;
img{
img {
max-width: 1em; max-width: 1em;
max-height: 1em; max-height: 1em;
display: inline; display: inline;
@ -29,7 +30,8 @@ table{
border-radius: 0.3em; border-radius: 0.3em;
padding: 0.3em; padding: 0.3em;
word-break: break-word; word-break: break-word;
&.number-cell{
&.number-cell {
text-align: right; text-align: right;
} }
} }
@ -211,51 +213,40 @@ nav {
ul { ul {
padding: 0; padding: 0;
margin: 0; margin: 0;
li { li {
display: inline; display: inline;
margin: 2px; margin: 0.5em;
padding: 0; padding: 0;
list-style: none; list-style: none;
a { a {
padding: .5em;
background-color: var(--front-fg-color);
color: var(--main-bg-color);
white-space: nowrap; white-space: nowrap;
box-shadow: var(--shadow);
&:hover{ svg {
outline: 1px solid var(--front-fg-color); max-width: 1em;
text-decoration: none; max-height: 1em;
outline-offset: 2px; margin-right: 0.5em;
} }
&:active,
&.active{ &:hover svg {
outline: 1px solid var(--accent-color);
outline-offset: 3px;
}
&.active {
font-weight: bold; font-weight: bold;
background-color: var(--front-fg-color); color: var(--main-fg-color);
color: var(--front-bg-color); svg {
svg{
max-width: 1.5em; max-width: 1.5em;
max-height: 1.5em; max-height: 1.5em;
position: relative; position: relative;
top: 0.25em; top: 0.25em;
outline-color: var(--main-fg-color);
} }
} }
svg{
max-width: 1em;
max-height: 1em;
margin-right: 0.5em;
}
}
&:first-child{
a{
border-bottom-left-radius: 2em;
border-top-left-radius: 2em;
}
}
&:last-child{
a{
border-bottom-right-radius: 2em;
border-top-right-radius: 2em;
}
} }
} }
} }