cs-2022-class-profile/components/Header.module.css

144 lines
2.3 KiB
CSS
Raw Normal View History

2022-09-03 17:00:00 -04:00
.headerWrapper {
2022-08-31 07:06:33 -04:00
display: flex;
justify-content: space-between;
align-items: center;
2022-09-03 21:10:43 -04:00
position: fixed;
top: 0;
left: 0;
width: 100vw;
background: var(--dark--primary-background);
z-index: 98;
box-sizing: border-box;
2022-08-31 07:06:33 -04:00
padding: calc(10rem / 16) calc(100rem / 16) 0 calc(100rem / 16);
}
2022-09-14 00:32:35 -04:00
.titleHeader {
margin: calc(16rem / 16) 0;
}
2022-09-03 17:00:00 -04:00
.sideBarCommon {
2022-08-31 07:06:33 -04:00
position: fixed;
2022-09-03 16:15:49 -04:00
right: 0;
top: 0;
2022-08-31 07:06:33 -04:00
width: 20vw;
2022-09-03 16:15:49 -04:00
height: 100vh;
2022-08-31 07:06:33 -04:00
background: var(--secondary-background);
2022-09-21 11:11:02 -04:00
padding: calc(100rem / 16);
2022-08-31 07:06:33 -04:00
margin: 0;
z-index: 100;
2022-09-03 16:15:49 -04:00
padding: 0;
padding-right: calc(20rem / 16);
}
2022-09-03 17:00:00 -04:00
.sideBarShown {
composes: sideBarCommon;
transition: transform 0.8s;
transform: translateX(0%);
}
.sideBarHidden {
composes: sideBarCommon;
transition: transform 0.8s;
transform: translateX(100%);
}
.backgroundTintCommon {
background-color: var(--label);
animation: fadeIn 1s;
position: fixed;
z-index: 99;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
}
.backgroundTintShow {
composes: backgroundTintCommon;
transition: opacity 0.8s;
opacity: 0.2;
visibility: visible;
}
.backgroundTintHidden {
composes: backgroundTintCommon;
transition: opacity 0.8s, visibility 0.8s;
opacity: 0;
visibility: hidden;
}
2022-09-03 16:15:49 -04:00
.menuHeader {
2022-09-21 11:11:02 -04:00
margin-bottom: 0;
2022-09-14 00:32:35 -04:00
padding-left: calc(20rem / 16);
2022-09-21 11:11:02 -04:00
padding-bottom: 0;
font-size: cacl(50rem / 16);
2022-09-03 16:15:49 -04:00
color: var(--dark--secondary-heading);
2022-08-31 07:06:33 -04:00
}
2022-09-14 00:32:35 -04:00
.sectionsWrapper {
padding-left: calc(30rem / 16);
}
2022-09-03 17:00:00 -04:00
.menuIcon {
background: none;
border: none;
}
.menuIcon:hover {
opacity: 0.8;
cursor: pointer;
}
2022-09-04 16:45:15 -04:00
.mobileSpacer {
display: none;
}
2022-09-03 17:00:00 -04:00
@media screen and (max-width: 768px) {
.sideBarCommon {
width: 90vw;
}
.menuHeader {
padding-left: calc(10rem / 16);
}
2022-09-14 00:32:35 -04:00
.sectionsWrapper {
padding-left: calc(20rem / 16);
}
2022-09-03 17:00:00 -04:00
.headerWrapper {
padding: calc(10rem / 16) calc(20rem / 16) 0 calc(20rem / 16);
}
2022-09-04 16:45:15 -04:00
.mobileSpacer {
display: block;
padding: calc(50rem / 16);
}
2022-09-03 17:00:00 -04:00
}
2022-09-03 16:15:49 -04:00
.closeMenuButton {
2022-08-31 07:06:33 -04:00
background: var(--primary-heading);
2022-09-21 11:11:02 -04:00
padding: 0 calc(20rem / 16);
2022-09-03 16:15:49 -04:00
border-radius: calc(50rem / 16);
2022-08-31 07:06:33 -04:00
display: flex;
2022-09-03 16:15:49 -04:00
flex-direction: row;
margin-left: calc(20rem / 16);
}
2022-09-03 17:02:26 -04:00
.closeMenuButton:hover {
background-color: var(--secondary-accent-light);
cursor: pointer;
}
2022-09-03 16:15:49 -04:00
.lineWrapper {
width: 100%;
display: flex;
}
.lineWrapper:before {
content: "";
flex: 1 1;
border-bottom: 3px solid white;
margin: auto;
2022-08-31 07:06:33 -04:00
}