Шаблон:NavBar/styles.css: различия между версиями
Aylong (обсуждение | вклад) Нет описания правки |
Aylong (обсуждение | вклад) мНет описания правки |
||
Строка 22: | Строка 22: | ||
line-height: 1.1em; | line-height: 1.1em; | ||
height: 2.5rem; | height: 2.5rem; | ||
background-color: var(--navbar-primary); | background-color: var(--navbar-primary); | ||
border-bottom: 2px solid hsl(from var(--navbar-opaque) h s calc(l + 5)); | border-bottom: 2px solid hsl(from var(--navbar-opaque) h s calc(l + 5)); | ||
Строка 39: | Строка 38: | ||
.navbar-button { | .navbar-button { | ||
position: relative; | position: relative; | ||
display: | display: flex; | ||
height: 100%; | height: 100%; | ||
width: 5rem; | width: 5rem; | ||
Строка 60: | Строка 57: | ||
.navbar-button a { | .navbar-button a { | ||
position: absolute; | position: absolute; | ||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
font-size: 1.5rem; | |||
inset: 0; | inset: 0; | ||
color: var(--color-white) !important; | color: var(--color-white) !important; | ||
} | } |
Версия от 03:17, 30 мая 2025
.navbar {
overflow: hidden;
display: flex;
flex-direction: column;
background-color: var(--navbar-transparent);
border: 1px solid var(--navbar-light);
border-radius: var(--border-radius-medium);
box-shadow: var(--template-shadow--small) -1px var(--navbar-secondary);
}
.navbar hr {
margin: 0.5rem 0 0.2rem;
background-color: var(--navbar-light);
}
.navbar-header {
overflow: hidden;
display: flex;
text-align: center;
font-weight: bold;
font-size: 1.75rem;
line-height: 1.1em;
height: 2.5rem;
background-color: var(--navbar-primary);
border-bottom: 2px solid hsl(from var(--navbar-opaque) h s calc(l + 5));
}
.navbar-title {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
margin: 2px 0.75rem 0;
color: var(--color-white);
}
.navbar-button {
position: relative;
display: flex;
height: 100%;
width: 5rem;
background-color: var(--navbar-opaque);
box-shadow: var(--template-shadow--medium) hsla(0, 0%, 0%, 0.33);
transition-property: background-color;
transition-duration: var(--transition-time);
}
.navbar-button:hover {
background-color: hsl(from var(--navbar-opaque) h s calc(l + var(--adjust-hover)));
}
.navbar-button:active {
background-color: hsl(from var(--navbar-opaque) h s calc(l - var(--adjust-active)));
}
.navbar-button a {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
inset: 0;
color: var(--color-white) !important;
}
.navbar-content {
padding: 0.5rem 0.66rem 0;
}
.navbar-tabs {
padding: 0.25rem;
}