mirror of
https://github.com/acid-info/new-codex.storage.git
synced 2026-08-30 21:01:08 +00:00
254 lines
4.6 KiB
CSS
254 lines
4.6 KiB
CSS
.menu {
|
|
display: flex;
|
|
align-items: center;
|
|
z-index: 1;
|
|
position: relative;
|
|
background-color: var(--dark-0);
|
|
top: 0;
|
|
position: sticky;
|
|
|
|
> div:first-child {
|
|
background-color: var(--dark-40);
|
|
padding: 1.5em 3em;
|
|
z-index: 1;
|
|
|
|
@media (min-width: 801px) {
|
|
padding: 1.5em 3em;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
padding: 0.15em 1.5em;
|
|
cursor: pointer;
|
|
|
|
svg {
|
|
width: 28px;
|
|
}
|
|
}
|
|
}
|
|
|
|
> div + div {
|
|
@media (min-width: 801px) {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
flex: 1;
|
|
align-items: center;
|
|
padding: 0 3em;
|
|
gap: 3em;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
position: fixed;
|
|
top: 60px;
|
|
width: 100%;
|
|
background-color: var(--dark-60);
|
|
opacity: 0;
|
|
transform: translateY(-500px);
|
|
transition: opacity 0.5s, transform 0.5s;
|
|
z-index: -1;
|
|
|
|
main {
|
|
padding: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
&[aria-expanded] {
|
|
> div + div {
|
|
@media (max-width: 800px) {
|
|
z-index: 0;
|
|
opacity: 1;
|
|
transform: translateY(0px);
|
|
}
|
|
}
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
gap: 3em;
|
|
|
|
@media (min-width: 801px) {
|
|
align-items: center;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
flex-direction: column;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
|
|
.intro {
|
|
@media (min-width: 801px) {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
font-family: Azeret Mono;
|
|
font-weight: 400;
|
|
font-size: 0.75em;
|
|
text-transform: uppercase;
|
|
color: var(--green-20);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 801px) {
|
|
align-items: center;
|
|
gap: 3em;
|
|
height: 100%;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
align-items: flex-start;
|
|
gap: 1em;
|
|
text-transform: uppercase;
|
|
color: var(--light-20);
|
|
}
|
|
|
|
a {
|
|
color: var(--light-40);
|
|
font-size: 1.05em;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
|
|
@media (max-width: 800px) {
|
|
border-top: 1px solid var(--grey-140);
|
|
padding-top: 1em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
span {
|
|
@media (min-width: 801px) {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
color: var(--grey-23);
|
|
font-size: 0.85em;
|
|
font-family: Azeret Mono;
|
|
font-weight: 400;
|
|
margin-top: 0.25em;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
> p {
|
|
margin: 0;
|
|
|
|
@media (min-width: 801px) {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
font-weight: 300;
|
|
font-size: 2em;
|
|
color: var(--grey-22);
|
|
max-width: 300px;
|
|
position: relative;
|
|
|
|
&::after {
|
|
content: " ";
|
|
position: absolute;
|
|
width: 27px;
|
|
height: 2px;
|
|
background-color: var(--green-10);
|
|
left: 0;
|
|
top: 80px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.social {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1em;
|
|
|
|
a {
|
|
@media (min-width: 801px) {
|
|
height: 40px;
|
|
width: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: var(--dark-40);
|
|
border-radius: 50%;
|
|
border: 1px solid var(--grey-45);
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5em;
|
|
position: relative;
|
|
top: 1px;
|
|
font-weight: 500;
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
|
|
label {
|
|
@media (min-width: 801px) {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
}
|
|
}
|
|
}
|
|
|
|
.icon + .icon {
|
|
@media (min-width: 801px) {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 1em;
|
|
margin: auto;
|
|
cursor: pointer;
|
|
color: var(--grey-40);
|
|
transition: color 0.5s, opacity 0.5s;
|
|
opacity: 0;
|
|
|
|
&:hover {
|
|
color: white;
|
|
}
|
|
}
|
|
}
|
|
|
|
&[aria-expanded] {
|
|
.icon + .icon {
|
|
@media (max-width: 800px) {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
footer {
|
|
@media (min-width: 801px) {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
margin-top: 0.5em;
|
|
border-top: 1px solid var(--light-50);
|
|
color: var(--light-40);
|
|
padding: 1em;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
span + span {
|
|
font-size: 1.25em;
|
|
}
|
|
}
|
|
}
|
|
}
|