mylloon.fr/static/css/index.css

70 lines
1.1 KiB
CSS
Raw Normal View History

2023-10-09 20:43:56 +02:00
@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
}
}
@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 {
2023-10-09 20:43:56 +02:00
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);
left: 10px;
top: -30px;
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
}
2023-10-13 19:43:19 +02:00
/* Friends */
#friends a:hover {
opacity: 1;
}
#friends a {
padding-right: 10px;
}