actuel-inactuel/assets/css/src/texts.css

140 lines
2.3 KiB
CSS
Raw Normal View History

2024-01-26 11:03:42 +01:00
@font-face {
font-family: "Switzer-Variable";
src: url("/assets/fonts/Switzer-Variable.woff2") format("woff2"),
url("/assets/fonts/Switzer-Variable.woff") format("woff"),
url("/assets/fonts/Switzer-Variable.ttf") format("truetype");
font-weight: 100 900;
font-display: swap;
font-style: normal;
}
* {
font-family: "Switzer-Variable", sans-serif;
}
2024-03-09 11:27:10 +01:00
#logo * {
2024-01-26 11:03:42 +01:00
font-size: 25vw;
line-height: 4rem;
transform: translate(-2px, -13px);
2024-03-09 11:27:10 +01:00
font-weight: var(--font-weight-extra-bold);
}
2024-03-12 17:12:03 +01:00
h1,
h2,
h3,
h4,
h5,
p {
font-weight: var(--font-weight-light);
2024-03-12 17:38:53 +01:00
line-height: 1;
}
h2 {
font-size: var(--font-size-xl);
}
article h2 {
margin-bottom: calc(var(--unit--vertical) / 2);
}
.title-center {
--margin-left: calc(4 * var(--unit--horizontal));
width: calc(100% - var(--margin-left));
margin-left: var(--margin-left);
}
.main-title {
line-height: 1;
text-align: left;
box-sizing: border-box;
font-weight: var(--font-weight-light);
2024-01-26 11:03:42 +01:00
}
p,
li,
button,
.fs-m {
transform: translateY(calc(var(--unit--vertical) * 0.12));
font-size: var(--font-size-m);
line-height: calc(var(--unit--vertical));
}
2024-03-09 11:27:10 +01:00
.fs-s {
font-size: var(--font-size-s) !important;
}
.fs-m {
font-size: var(--font-size-m) !important;
}
.fs-l {
font-size: var(--font-size-l) !important;
}
2024-03-09 11:27:10 +01:00
.fs-xl {
font-size: var(--font-size-xl) !important;
}
.fs-xxl {
font-size: var(--font-size-xxl) !important;
2024-03-09 11:27:10 +01:00
}
2024-01-26 11:03:42 +01:00
p,
li,
button,
.fw-light {
font-weight: var(--font-weight-light);
}
2024-03-09 11:27:10 +01:00
.fw-bold {
font-weight: var(--font-weight-bold);
}
.fw-extra-bold {
font-weight: var(--font-weight-extra-bold);
}
.f-inherit {
font-size: inherit;
line-height: inherit;
font-weight: inherit;
}
2024-01-26 11:03:42 +01:00
.ta-center {
text-align: center;
}
p {
transform: translateY(3px);
}
button {
display: flex;
align-items: center;
}
2024-03-12 17:38:53 +01:00
a * {
transition: font 0.2s ease-in-out;
}
a.no-line:hover * {
font-weight: 250;
}
a:not(.no-line):hover {
text-decoration: none;
}
2024-01-26 13:42:00 +01:00
a:not(.no-line) {
text-decoration: dotted;
text-decoration-color: #fff;
text-decoration-line: underline;
text-underline-offset: 0.2rem;
text-decoration-thickness: 0.5px;
}
2024-03-12 17:38:53 +01:00
article p:not(:last-child) {
2024-01-26 11:03:42 +01:00
margin-bottom: var(--unit--vertical);
}
2024-03-10 19:24:24 +01:00
@media screen and (min-width: 640px) {
.title-center {
margin-left: calc(2 * var(--unit--horizontal));
}
}