soapbox/app/styles/navigation.scss

189 wiersze
3.3 KiB
SCSS
Czysty Zwykły widok Historia

2021-09-12 23:16:53 +00:00
.primary-navigation__wrapper {
.primary-navigation {
flex-direction: column;
> button,
> .btn {
justify-content: flex-start;
font-size: 19px;
font-weight: bold;
.svg-icon {
width: 26px;
height: 26px;
margin-right: 10px;
2021-09-12 23:16:53 +00:00
svg.icon-tabler {
stroke-width: 1.5px;
}
2021-10-05 18:29:52 +00:00
&--active {
svg.icon-tabler-search,
svg.icon-tabler-code {
2021-10-05 18:29:52 +00:00
stroke-width: 2.5px;
}
}
2021-09-12 23:16:53 +00:00
}
&::before {
left: 0;
border-radius: 999px;
}
}
&__icon {
margin-right: 5px;
}
2021-09-21 01:49:24 +00:00
.icon-with-counter__counter {
right: 0;
}
hr {
border: 0;
height: 1px;
width: 100%;
background: hsla(var(--primary-text-color_hsl), 0.12);
max-width: 230px;
text-align: left;
margin: 10px 0;
}
2021-09-12 23:16:53 +00:00
}
}
.thumb-navigation {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: var(--thumb-navigation-base-height);
2021-09-12 23:16:53 +00:00
display: flex;
background: var(--foreground-color);
2021-10-15 15:19:16 +00:00
justify-content: space-between;
box-shadow: 0 -1px hsla(var(--primary-text-color_hsl), 0.2);
2021-09-12 23:16:53 +00:00
border-radius: 0;
z-index: 999;
padding-bottom: env(safe-area-inset-bottom); /* iOS PWA */
2021-10-15 16:35:59 +00:00
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: var(--background-color);
2021-10-15 15:19:16 +00:00
&::before,
&::after {
content: '';
}
2021-09-12 23:16:53 +00:00
2021-10-15 16:35:59 +00:00
&::-webkit-scrollbar {
display: none;
}
2021-09-12 23:16:53 +00:00
&__link {
2021-10-15 16:35:59 +00:00
padding: 8px 10px;
2021-09-12 23:16:53 +00:00
display: flex;
2021-10-15 15:19:16 +00:00
flex-direction: column;
2021-09-12 23:16:53 +00:00
align-items: center;
2021-10-15 16:35:59 +00:00
justify-content: end;
2021-09-12 23:16:53 +00:00
color: var(--primary-text-color);
text-decoration: none;
font-size: 20px;
span {
2021-10-15 15:19:16 +00:00
margin-top: 1px;
text-align: center;
2021-10-15 15:19:16 +00:00
font-size: 1.2rem;
2021-09-12 23:16:53 +00:00
}
2021-09-20 22:05:59 +00:00
.svg-icon {
width: 24px;
height: 24px;
svg {
stroke-width: 1px;
}
}
.icon-with-counter__counter {
right: -7px;
top: -5px;
2021-09-20 22:05:59 +00:00
}
2021-09-12 23:16:53 +00:00
}
@media (min-width: 895px) {
display: none;
}
}
.sub-navigation {
position: sticky;
top: 50px;
left: 0;
right: 0;
width: 100%;
height: 40px;
2021-09-12 23:16:53 +00:00
display: flex;
color: var(--primary-text-color--faint);
background: var(--foreground-color);
border-bottom: 1px solid hsla(var(--primary-text-color_hsl), 0.2);
border-radius: 0;
align-items: center;
justify-content: center;
2021-09-12 23:16:53 +00:00
z-index: 999;
&--scrolled {
border-radius: 0 !important;
}
&__content {
width: 100%;
height: 100%;
max-width: 1200px;
padding: 5px 15px;
margin: 0 auto;
display: flex;
justify-content: space-around;
box-sizing: border-box;
}
2021-09-12 23:16:53 +00:00
&__back {
margin-right: auto;
padding: 0;
2021-09-12 23:16:53 +00:00
background: transparent;
border: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-text-color);
opacity: 0.6;
2021-09-12 23:16:53 +00:00
.svg-icon {
margin-right: 7px;
width: 22px;
height: 22px;
2021-09-12 23:16:53 +00:00
}
}
&__message {
position: absolute;
align-self: center;
justify-self: center;
font-weight: bold;
}
&__cog {
display: flex;
align-items: center;
justify-content: center;
.svg-icon {
width: 20px;
height: 20px;
}
}
@media (min-width: 580px) {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
2021-09-12 23:16:53 +00:00
}