web2.0/src/static/css/main.css

159 lines
2.8 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

*, *::before, *::after {
box-sizing: border-box;
font-style: inherit;
}
:root {
--brand: #66cc00;
--text: #000000de;
--text-00: #ffffffde;
--bg-00: #000000;
--bg-01: #efefef;
--bg-02: #dedede;
--link: #0066ffde;
--colw: 18rem;
--colgap: 2rem;
--gap: 1rem;
--maxw: 60rem;
--lh: 1.3rem;
--bl-lh: 2rem;
--bl-gap: 1rem;
--navh: calc(var(--bl-lh) + 2 * var(--bl-gap));
}
body {
font-family: "Inter var", "Inter", sans-serif;
color: var(--text);
margin: auto;
margin-top: var(--navh);
padding: var(--gap);
font-weight: 350;
font-feature-settings: "ss01", "ss02", "ss03", "cv05", "cv08";
max-width: var(--maxw);
display: grid;
grid-template-columns: var(--colw) 1fr;
grid-gap: var(--colgap);
}
/* body > div {
column-width: var(--colw);
column-gap: var(--gap);
} */
body > div.info {grid-column: 1}
body > div.cv {grid-column: 2 / -1}
@media (max-width: 40rem) {
body {grid-template-columns: 1fr}
body > div.cv {grid-column: 1}
}
h1, h2, h3 {font-weight: 250}
h1 {
font-size: 3rem;
letter-spacing: -.1rem;
}
h2 {font-size: 2.3rem}
h3 {font-size: 1.7rem}
h4, h5, h6 {font-weight: 700}
h4 {font-size: 1.2rem}
h5 {font-size: 1rem}
h6 {font-size: .8rem}
p, ul, ol, dl {line-height: var(--lh)}
em {font-variation-settings: 'slnt' -5}
strong {font-weight: 550}
a {
color: var(--link);
text-decoration: none;
}
a:hover {text-decoration: underline;}
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--navh);
line-height: var(--bl-lh);
background: var(--bg-00);
color: var(--text-00);
font-variant: small-caps;
white-space: nowrap;
overflow-x: auto;
}
nav > * {
height: var(--navh);
padding: var(--bl-gap);
padding-right: 0;
display: inline-block;
vertical-align: middle;
}
nav a {
color: inherit;
}
nav a.active {
font-weight: 550;
}
nav img {
height: var(--bl-lh);
width: var(--bl-lh);
}
ul {list-style-type: ""}
ol {list-style-type: decimal-leading-zero}
li {padding-left: calc(var(--gap) / 2)}
.block {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-columns: 1fr;
grid-gap: .2rem;
grid-auto-rows: auto;
}
.img-block > img {
width: 100%;
height: 6rem;
object-fit: cover;
}
.link-block > a {
background: var(--bg-01);
color: inherit;
padding: var(--gap);
height: 6rem;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr auto;
}
.link-block > a:hover {
background: var(--bg-02);
text-decoration: none;
}
.link-block > a:hover > span.desc {
text-decoration: underline;
}
.link-block > a > span.i {
font-size: 2rem;
text-align: right;
}
.link-block > a > span.desc {
grid-row: 2;
overflow: hidden;
text-overflow: ellipsis;
}
.link-block > a > span > em {
font-weight: 550;
}
footer {
background: var(--bg-01);
grid-column: 1 / -1;
text-align: center;
padding: var(--bl-gap);
line-height: var(--bl-lh);
margin: calc(-1 * var(--gap));
margin-top: 0;
}