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

238 lines
3.6 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;
--bg-03: #bebebe;
--colw: 18rem;
--colgap: 2rem;
--gap: 1rem;
--maxw: 60rem;
--lh: 1.3rem;
--bl-lh: 2rem;
--bl-gap: 1rem;
}
@media (prefers-color-scheme: dark) {
:root {
--text: #ffffffde;
--text-00: #000000de;
--bg-00: #ffffff;
--bg-01: #131313;
--bg-02: #353535;
--bg-03: #575757;
}
body {
background: #000000;
}
.logo {
outline: 2px solid white;
outline-offset: -2px;
border-radius: 50%;
}
}
body {
font-family: "Inter var experimental", "Inter var", "Inter", sans-serif;
color: var(--text);
margin: auto;
padding: var(--gap);
font-weight: 350;
font-feature-settings: "ss01", "ss02", "ss03";
max-width: var(--maxw);
display: grid;
grid-template-columns: 1fr;
grid-gap: var(--colgap);
}
@media print {
body {
display: block;
}
}
/* body > div {
column-width: var(--colw);
column-gap: var(--gap);
} */
body > div.info {grid-column: 1}
body > div.cv {grid-column: 1}
div.title > img {
margin-top: 2rem;
}
h1 {
margin-top: 1rem;
}
@media screen and (width >= 40rem) {
body {grid-template-columns: var(--colw) 1fr}
body > div.cv {grid-column: 2 / -1}
}
@media screen and (width >= 70rem) {
h1 {
margin-top: 2rem;
}
div.title {
position: relative;
}
div.title > img {
position: absolute;
left: -5rem;
width: 4rem;
margin: 0;
}
}
@media print {
div.title > img {
margin-top: 0;
}
}
h1, h2, h3 {
font-weight: 250;
}
h2 {
margin-top: 2rem;
margin-bottom: 1rem;
}
h3 {
margin-top: 1rem;
margin-bottom: .5rem;
}
h1 {
font-size: 3rem;
letter-spacing: -.1rem;
}
h2 {font-size: 2.3rem}
h3 {font-size: 1.7rem}
h4, h5, h6 {
font-weight: 700;
margin: 0;
}
h4 {font-size: 1.2rem}
h5 {font-size: 1rem}
h6 {font-size: .8rem}
@media print {
h2 {
display: none;
}
}
p, ul, ol, dl {line-height: var(--lh)}
em {font-variation-settings: 'slnt' -5}
strong {font-weight: 550}
ul {list-style-type: ""}
ol {list-style-type: decimal-leading-zero}
li {padding-left: calc(var(--gap) / 2)}
dl {
display: grid;
grid-template-columns: max-content 1fr;
grid-column-gap: 0;
grid-row-gap: .5rem;
}
dt {
grid-column: 1;
font-feature-settings: "ss01", "ss02", "ss03", "tnum";
font-weight: 400;
}
dt span {
display: block;
}
dt span.start {
font-size: .75em;
}
dd {
grid-column: 2;
}
.block {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-columns: 1fr;
grid-gap: .2rem;
grid-auto-rows: auto;
margin: 1rem 0;
}
.img-block > img {
max-width: 100%;
object-fit: cover;
}
.link-block > a {
color: inherit;
text-decoration: none;
}
@media not print {
.link-block > a {
background: var(--bg-01);
padding: var(--gap);
height: 6rem;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr auto;
}
}
@media print {
.img-block {
display: none;
}
.link-block > a {
height: auto;
}
.link-block > a > .i {
display: none;
}
}
.link-block > a:hover {
background: var(--bg-02);
}
.link-block > a:active{
background: var(--bg-03);
}
.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 {
font-weight: 500;
grid-column: 1 / -1;
text-align: center;
padding: var(--bl-gap);
line-height: var(--bl-lh);
margin: calc(-1 * var(--gap));
margin-top: 0;
}
@media print {
footer {
display: none;
}
}
@page {
size: a4 portrait;
margin: 2cm;
}