mylloon.fr/static/css/index.css

82 lines
1.3 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
/* Page theme */
main {
color: var(--font-color);
font-size: var(--font-size);
padding: 2em 1em;
2023-10-13 12:52:20 +02:00
font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol";
color: var(--font-color);
margin: 0 auto;
max-width: 640px; /* breakpoint */
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 {
width: 90px;
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) {
main {
margin-inline: 0;
}
2023-10-13 12:52:20 +02:00
.avatar {
float: none;
width: 80px;
transform: translate(-350px, -50px);
2023-10-13 12:52:20 +02:00
}
}
2023-10-09 20:43:56 +02:00
/* Description */
2023-10-13 12:52:20 +02:00
h1,
h2,
h3,
h4,
h5,
h6 {
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
}