mirror of
https://github.com/acid-info/new-codex.storage.git
synced 2026-08-30 21:01:08 +00:00
324 lines
5.5 KiB
CSS
324 lines
5.5 KiB
CSS
/* CSS reset */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* width */
|
|
::-webkit-scrollbar {
|
|
width: 10px;
|
|
background: var(--dark-30);
|
|
}
|
|
|
|
/* Track */
|
|
::-webkit-scrollbar-track {
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* Handle */
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--green-10);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* consistent whitespace */
|
|
ul,
|
|
ol,
|
|
figure,
|
|
pre {
|
|
margin: 2em 0;
|
|
}
|
|
|
|
html {
|
|
min-height: 100%;
|
|
overflow-x: hidden;
|
|
--max-width: 1400px;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
display: flex;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
body > main {
|
|
width: 100%;
|
|
}
|
|
|
|
body,
|
|
body > main {
|
|
flex: 1;
|
|
}
|
|
|
|
/* page layout */
|
|
body {
|
|
margin: 0 auto;
|
|
flex-direction: column;
|
|
font-size: 14px;
|
|
--border-radius: 8px;
|
|
--padding-section: 2em 1em;
|
|
|
|
> main {
|
|
> article {
|
|
background: white;
|
|
z-index: 2;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
> header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 3;
|
|
|
|
&.is-fixed {
|
|
background: rgba(255, 255, 255, 0.9);
|
|
transform: translate3d(0, -100%, 0);
|
|
}
|
|
|
|
&.can-animate {
|
|
transition: transform 0.3s ease, visibility 0s 0.3s linear;
|
|
}
|
|
|
|
&.scroll-up {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
|
|
svg {
|
|
color: white;
|
|
}
|
|
|
|
/* @media (max-width: 800px) { */
|
|
|
|
/* } */
|
|
}
|
|
|
|
/* global footer */
|
|
> footer {
|
|
background-image: url(/img/codex.svg);
|
|
background-repeat: no-repeat;
|
|
background-size: auto 325px;
|
|
background-color: var(--dark-10);
|
|
/* padding: var(--padding-section); */
|
|
position: fixed;
|
|
bottom: 0;
|
|
width: 100%;
|
|
|
|
@media (min-width: 1401px) {
|
|
background-position: center bottom;
|
|
}
|
|
|
|
@media (max-width: 1400px) {
|
|
background-position: left bottom;
|
|
}
|
|
|
|
> div:first-child {
|
|
max-width: var(--max-width);
|
|
margin: auto;
|
|
padding: var(--padding-section);
|
|
|
|
a {
|
|
transition: border-color 0.5s;
|
|
border-bottom: 1px solid transparent;
|
|
display: inline-flex;
|
|
|
|
&:hover {
|
|
border-color: var(--green-10);
|
|
}
|
|
}
|
|
|
|
> div:first-child {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
|
|
@media (max-width: 800px) {
|
|
flex-direction: column;
|
|
gap: 2em;
|
|
}
|
|
|
|
span {
|
|
color: var(--light-10);
|
|
font-size: 2em;
|
|
font-weight: 400;
|
|
align-self: flex-start;
|
|
z-index: 1;
|
|
}
|
|
|
|
nav {
|
|
z-index: 1;
|
|
position: relative;
|
|
}
|
|
|
|
nav:first-child {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
nav + nav {
|
|
margin-top: 3em;
|
|
|
|
a {
|
|
margin-right: 3em;
|
|
position: relative;
|
|
}
|
|
|
|
a:first-child::after {
|
|
content: "/";
|
|
margin-right: 1.5em;
|
|
margin-left: 1.8em;
|
|
color: var(--grey-10);
|
|
position: absolute;
|
|
right: -45px;
|
|
}
|
|
}
|
|
|
|
a {
|
|
font-weight: 600;
|
|
color: var(--light-20);
|
|
line-height: 1.6em;
|
|
display: inline-block;
|
|
transition: 0.5s color;
|
|
|
|
&:hover {
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
> div:nth-child(2) {
|
|
margin-top: 3em;
|
|
|
|
h5 {
|
|
font-size: 2.5em;
|
|
line-height: 1.07em;
|
|
font-weight: 300;
|
|
color: var(--light-10);
|
|
max-width: 350px;
|
|
margin: 0;
|
|
z-index: 1;
|
|
position: relative;
|
|
|
|
&::after {
|
|
content: " ";
|
|
border-bottom: 2px solid var(--green-10);
|
|
width: 27px;
|
|
margin-top: 0.5em;
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
p {
|
|
color: var(--grey-20);
|
|
z-index: 1;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
> div:nth-child(3) {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 2em;
|
|
|
|
> * {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 1em;
|
|
}
|
|
|
|
p,
|
|
a {
|
|
color: var(--light-20);
|
|
margin: 0;
|
|
display: inline-block;
|
|
transition: 0.5s color;
|
|
|
|
&:hover {
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
p:last-child {
|
|
font-size: 1.2em;
|
|
color: var(--light-10);
|
|
|
|
u {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.background {
|
|
padding: 1em;
|
|
}
|
|
}
|
|
|
|
section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
z-index: 1;
|
|
position: relative;
|
|
|
|
/* @media (min-width: 1001px) { */
|
|
min-height: 95vh;
|
|
/* } */
|
|
|
|
&:not(.fluid) {
|
|
padding: var(--padding-section);
|
|
|
|
max-width: var(--max-width);
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
&.fluid {
|
|
padding: var(--padding-section);
|
|
}
|
|
|
|
> header {
|
|
font-family: "Azeret Mono", monospace;
|
|
font-optical-sizing: auto;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-size: 0.85em;
|
|
line-height: 1.2em;
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
span {
|
|
color: var(--subheader-color, var(--grey-70));
|
|
}
|
|
}
|
|
|
|
&.fluid {
|
|
> header,
|
|
> main,
|
|
> footer {
|
|
padding: var(--padding-section);
|
|
max-width: var(--max-width);
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
> main {
|
|
display: flex;
|
|
}
|
|
}
|
|
}
|
|
}
|