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

133 lines
2.2 KiB
CSS
Raw Normal View History

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