mylloon.fr/static/css/index.css

65 lines
1.1 KiB
CSS
Raw Normal View History

2023-10-09 20:43:56 +02:00
/* Parameters light */
@media (prefers-color-scheme: light) {
:root {
2023-10-13 12:52:20 +02:00
--name-color: #d30f39;
--pronouns-color: #6c6f85;
--font-color: #4c4f69;
2023-10-09 20:43:56 +02:00
}
}
/* Parameters dark */
@media (prefers-color-scheme: dark) {
:root {
2023-10-13 12:52:20 +02:00
--name-color: #f38ba8;
--pronouns-color: #a6adc8;
--font-color: #c8d0ee;
2023-10-09 20:43:56 +02:00
}
}
2023-10-13 12:52:20 +02:00
:root {
--title-weight: 600;
}
2023-10-09 20:43:56 +02:00
/* Name header */
.name {
2023-10-13 12:52:20 +02:00
font-size: calc(var(--font-size) * 2.5);
font-weight: var(--title-weight);
2023-10-09 20:43:56 +02:00
color: var(--name-color);
}
.subname {
margin-top: 0;
2023-10-13 12:52:20 +02:00
font-size: calc(var(--font-size) * 1.07);
2023-10-09 22:38:59 +02:00
margin-bottom: 1.5em;
2023-10-09 20:43:56 +02:00
}
.pronouns {
2023-10-13 12:52:20 +02:00
font-size: calc(var(--font-size) * 0.8);
2023-10-09 20:43:56 +02:00
color: var(--pronouns-color);
}
.avatar {
2023-10-13 13:46:55 +02:00
width: calc(var(--font-size) * 5);
2023-10-09 20:43:56 +02:00
border-radius: 50%;
float: right;
}
/* breakpoint */
2023-10-13 12:52:20 +02:00
@media only screen and (max-width: 640px) {
.avatar {
2023-10-13 13:46:55 +02:00
position: absolute;
width: calc(var(--font-size) * 4);
2023-10-13 13:29:52 +02:00
transform: translate(
calc(var(--font-size) * -19),
2023-10-13 13:46:55 +02:00
calc(var(--font-size) * -3.7)
2023-10-13 13:29:52 +02:00
);
2023-10-13 12:52:20 +02:00
}
}
2023-10-09 20:43:56 +02:00
/* Description */
2023-10-13 15:04:09 +02:00
h1 {
2023-10-13 12:52:20 +02:00
font-weight: var(--title-weight);
font-size: calc(var(--font-size) * 1.6);
2023-10-09 22:38:59 +02:00
margin-bottom: 0;
2023-10-09 20:43:56 +02:00
}