1
0
Fork 0
photos/web/shared/css/base.css

102 lines
1.2 KiB
CSS
Raw Normal View History

2020-05-25 23:17:29 +08:00
@import url('https://fonts.googleapis.com/css2?family=Faustina:wght@400;550&display=swap');
2020-05-24 20:37:14 +08:00
/*
2020-05-25 23:17:29 +08:00
* Units
2020-05-24 20:37:14 +08:00
*/
2020-05-25 23:17:29 +08:00
:root {
--spacing: 0.375rem;
}
/*
* Typography
*/
2020-05-24 20:37:14 +08:00
html {
font-family: 'Faustina', serif;
font-weight: 400;
2020-05-25 23:17:29 +08:00
text-rendering: optimizeLegibility;
2020-05-24 20:37:14 +08:00
}
body {
margin: 0rem;
font-size: 1em; /* 16pt */
line-height: 1.272;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 550;
2020-05-25 23:17:29 +08:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: greyscale;
2020-05-24 20:37:14 +08:00
}
h1 {
font-size: 2.0581em;
}
h2 {
font-size: 1.618em;
}
h3 {
font-size: 1.272em;
}
h4, h5, h6 {
font-size: 1.272em;
}
.dim {
opacity: 0.333;
}
2020-05-24 20:37:14 +08:00
/*
* Molecules
*/
.preloaded-thumbnail {
display: block;
position: relative;
}
.preloaded-thumbnail picture:not(.preloaded-thumbnail-image) {
position: absolute;
top: 0;
left: 0;
z-index: 1;
2020-06-01 18:07:48 +08:00
display: block !important;
2020-05-24 20:37:14 +08:00
}
.preloaded-thumbnail-image img {
object-fit: cover;
}
/*
* Organisms
*/
nav ul {
2020-05-25 23:17:29 +08:00
padding: var(--spacing);
2020-05-24 20:37:14 +08:00
margin: 0;
list-style: none;
display: flex;
justify-content: flex-end;
}
nav ul li {
2020-05-25 23:17:29 +08:00
margin: var(--spacing);
2020-05-24 20:37:14 +08:00
display: block;
2020-05-25 23:17:29 +08:00
font-size: 0.9em;
letter-spacing: 0.07em;
text-transform: uppercase;
2020-05-24 20:37:14 +08:00
}
header {
2020-05-25 23:17:29 +08:00
padding: 1rem calc(var(--spacing) * 2);
2020-05-24 20:37:14 +08:00
}