1
0
Fork 0
forked from CRSS/Website
Website-fixver/styles/NavBar.module.scss

333 lines
5.7 KiB
SCSS
Raw Normal View History

2024-08-29 13:20:28 +00:00
@import 'variables.module';
@import 'global.module';
2024-06-09 13:47:59 +00:00
.pageHero {
height: 220px;
2024-06-09 13:47:59 +00:00
background-image: url("https://crss.fra1.cdn.digitaloceanspaces.com/img/2024-06-08_14.19.52.png");
2024-06-09 13:47:59 +00:00
background-size: cover;
background-repeat: no-repeat;
background-position: center;
2024-06-09 13:47:59 +00:00
font-family: 'Comic Neue', 'Comic Sans MS', 'Noto Color Emoji', 'Noto Emoji', sans-serif;
font-weight: 600;
2024-06-09 13:47:59 +00:00
> .heroOverlay {
background: rgba($colorSurfaceLight2, 0.9);
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
backdrop-filter: blur(8px);
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
height: 100%;
width: 100%;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
> .container {
height: 100%;
2024-06-09 13:47:59 +00:00
display: flex;
2024-06-09 13:47:59 +00:00
align-items: center;
justify-content: space-between;
2024-06-09 13:47:59 +00:00
> div:first-child {
display: flex;
2024-06-09 13:47:59 +00:00
flex-direction: column;
2024-06-09 13:47:59 +00:00
gap: 0.5rem;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
> h1 {
font-family: 'Comic Neue', 'Comic Sans MS', 'Noto Color Emoji', 'Noto Emoji', sans-serif;
font-weight: 600;
font-size: 1.5rem;
2024-06-03 01:56:27 +00:00
2024-06-09 13:47:59 +00:00
margin: 0;
}
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
align-items: center;
justify-content: center;
2024-06-09 13:47:59 +00:00
width: 100%;
height: 100%;
}
}
2024-06-09 13:47:59 +00:00
> div:last-child {
display: flex;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
flex-direction: column;
align-items: center;
gap: 0.5rem;
> input {
background: rgba(0,0,0,0);
width: fit-content;
padding: 4px 16px;
font-size: 1.5rem;
text-align: center;
color: inherit;
border: 1px solid rgba(0, 0, 0, 0);
border-radius: 1rem;
transition: 150ms;
&:focus, &:hover {
outline: none;
background: rgba($colorSurfaceLight4, .65);
border: 1px solid $colorBorderLight3;
}
@media (prefers-color-scheme: dark) {
color: inherit;
&:focus, &:hover {
background: rgba($colorSurfaceDark4, .65);
border: 1px solid $colorBorderDark3;
}
}
}
@media (max-width: 768px) {
display: none;
}
}
}
@media (prefers-color-scheme: dark) {
background: rgba($colorSurfaceDark2, 0.9);
}
2023-11-26 21:40:10 +00:00
}
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
border-bottom: 1px solid $colorBorderLight1;
@media (prefers-color-scheme: dark) {
border-color: $colorBorderDark1;
}
2023-11-26 21:40:10 +00:00
}
}
2024-06-09 13:47:59 +00:00
.navBar {
height: 64px;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
position: sticky;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
top: 0;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
left: 0;
right: 0;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
background: $colorSurfaceLight3;
border-bottom: 1px solid $colorBorderLight1;
2023-09-14 19:47:02 +00:00
2024-06-17 11:29:21 +00:00
z-index: 999999999;
2024-06-09 13:47:59 +00:00
> .container {
2023-11-26 21:40:10 +00:00
display: flex;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
justify-content: space-between;
2024-06-09 13:47:59 +00:00
align-items: center;
height: 100%;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
justify-content: space-between;
2023-11-26 21:40:10 +00:00
}
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
> .navMobileContainer {
display: none;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
width: 100%;
height: 100%;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
justify-content: end;
align-items: center;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
z-index: 10000;
> .navToggle {
padding: 0.5rem;
background: none;
border: none;
border-radius: 50%;
display: flex;
color: $colorTextLight1;
transition: 150ms;
&:hover, &:focus {
2024-06-09 13:47:59 +00:00
background: rgba($colorPrimary, 0.5);
2023-11-26 21:40:10 +00:00
}
@media (prefers-color-scheme: dark) {
2024-06-09 13:47:59 +00:00
color: $colorTextDark1;
2023-11-26 21:40:10 +00:00
}
2024-06-09 13:47:59 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
display: flex;
2023-11-26 21:40:10 +00:00
}
2024-06-09 13:47:59 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
> .navCollapse {
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
width: 100%;
z-index: 5000;
> ul {
list-style: none;
display: flex;
2023-11-26 21:40:10 +00:00
align-items: center;
2024-06-09 13:47:59 +00:00
gap: .5rem;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
margin: 0;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
> li {
> a, .dropDown > label {
padding: 8px 16px;
display: flex;
flex-direction: row;
align-items: center;
gap: 1rem;
text-decoration: none;
transition: 150ms;
border-radius: 2rem;
color: $colorTextLight2;
outline: 2px solid rgba(0, 0, 0, 0);
> .icon {
width: 20px;
height: 20px;
}
&:hover, &:focus, &.active {
2024-06-09 13:47:59 +00:00
outline: 2px solid rgba($colorPrimary, 0.65);
color: $colorPrimary;
}
@media (prefers-color-scheme: dark) {
color: $colorTextDark2;
&:hover, &:focus, &.active {
2024-06-09 13:47:59 +00:00
outline-color: rgba($colorPrimary, 0.65);
}
}
2023-11-26 21:40:10 +00:00
}
}
}
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
opacity: 1;
2024-06-03 01:56:27 +00:00
2024-06-09 13:47:59 +00:00
transition: 300ms;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
position: fixed;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
height: 100vh;
width: 100vw;
2024-06-09 13:47:59 +00:00
top: 0;
right: -110%;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
display: flex;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
flex: 1;
flex-direction: column;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
align-items: end;
justify-content: center;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
gap: 2rem;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
padding: 1rem;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
background: rgba($colorSurfaceLight3, 0.95);
backdrop-filter: blur(8px);
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
ul {
flex-direction: column;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
align-items: end;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
gap: 1rem;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
li {
a {
padding: 8px 24px;
}
}
}
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
@media (prefers-color-scheme: dark) {
background: rgba($colorSurfaceDark3, 0.95);
}
}
}
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
@media (prefers-color-scheme: dark) {
background: $colorSurfaceDark3;
2024-06-03 01:56:27 +00:00
2024-06-09 13:47:59 +00:00
border-color: $colorBorderDark1;
}
2024-06-09 13:47:59 +00:00
&.navOpen {
> .container {
flex-direction: column;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
> .navMobileContainer {
height: 64px;
2024-01-13 23:58:35 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
> .navCollapse {
opacity: 1;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
right: 0;
2023-11-26 21:40:10 +00:00
}
}
2024-06-09 13:47:59 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
background: none;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
position: fixed;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
top: 0;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
border: none;
}
2024-06-03 01:56:27 +00:00
}