website/_src/assets/css/default/default.css

264 lines
4.3 KiB
CSS
Raw Normal View History

@import url("./motion.css");
@import url("./variables.css");
@import url("./nav.css");
2026-04-02 19:45:57 +03:00
2025-09-10 10:19:57 +03:00
/* i hate default styles >:( and also chrome */
2025-09-10 13:13:20 +03:00
h1,
h2,
h3,
h4,
h5,
h6 {
2025-09-10 10:19:57 +03:00
display: block;
2025-09-11 19:30:58 +03:00
font-size: 2rem;
2025-09-10 13:13:20 +03:00
font-weight: bold;
width: fit-content;
2025-09-10 10:19:57 +03:00
}
2025-06-11 09:36:54 +03:00
body {
2025-06-16 16:31:53 +03:00
font-family: "Rubik", sans-serif;
2025-06-11 09:36:54 +03:00
font-size: 100%;
margin: 0;
padding: 0;
2025-06-25 13:08:50 +03:00
& a,
button {
cursor: pointer;
&:is(:hover, :focus) {
outline: 0;
}
}
2025-06-11 09:36:54 +03:00
}
2025-09-11 19:30:58 +03:00
svg {
fill: currentColor;
2025-10-14 19:40:29 +03:00
stroke: currentColor;
stroke-width: 0;
2025-09-11 19:30:58 +03:00
}
header {
margin-top: var(--pad-xl);
margin-left: calc(var(--view) + var(--pad-xl));
& a {
display: flex;
padding: var(--pad-s);
border-radius: var(--round);
}
2025-09-11 19:30:58 +03:00
& svg {
width: 2rem;
height: 2rem;
2025-10-14 19:40:29 +03:00
margin-right: var(--pad-m);
2025-09-11 19:30:58 +03:00
}
}
2025-10-14 19:40:29 +03:00
footer {
overflow-y: hidden;
word-break: break-all;
flex-wrap: wrap;
font-family: "Nosey Rodent", sans-serif;
display: flex;
margin: auto 0 0 auto;
width: fit-content;
2025-10-14 19:40:29 +03:00
justify-content: center;
position: sticky;
inset-block: 100%;
text-align: center;
& span {
background-image: var(--transgender);
padding: 0 var(--pad-s);
2025-10-14 19:40:29 +03:00
}
}
2025-06-11 09:36:54 +03:00
main {
width: fit-content;
padding: var(--pad-xl);
padding-left: calc(var(--view) + var(--pad-xl));
2025-06-11 09:36:54 +03:00
overflow: hidden;
position: relative;
& ul[role="list"] {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
}
2025-06-11 09:36:54 +03:00
}
2025-08-10 17:05:40 +03:00
details {
cursor: pointer;
2025-09-10 10:19:57 +03:00
display: flex;
flex-direction: column;
2025-08-10 17:05:40 +03:00
& summary::marker {
content: none;
}
}
2025-06-11 09:36:54 +03:00
article {
width: auto;
max-width: var(--main);
2025-10-19 15:55:35 +03:00
color: inherit;
2025-06-16 16:31:53 +03:00
border-style: solid;
border-width: 2px;
border-radius: var(--round);
2025-06-11 09:36:54 +03:00
height: max-content;
2025-06-16 16:31:53 +03:00
padding: var(--pad-xl);
& a:has(figure) {
border-radius: var(--round);
& figure {
border-color: inherit;
}
}
2025-06-16 16:31:53 +03:00
& s {
text-decoration-style: line-through;
text-decoration-thickness: 0.1em;
}
& u {
text-decoration-style: double;
text-decoration-thickness: 2px;
}
& em {
font-weight: 200;
}
& p {
word-wrap: break-word;
2025-06-25 13:08:50 +03:00
}
& p:not(:last-child, [aria-label]) {
padding-bottom: var(--pad-s);
2025-06-16 16:31:53 +03:00
}
& pre {
display: flex;
width: auto;
padding: var(--pad-m);
white-space: pre-wrap;
word-break: break-word;
border-style: solid;
border-width: 2px;
2025-06-16 16:31:53 +03:00
}
& figure {
margin: 0;
border-style: solid;
border-width: 2px;
padding: var(--pad-m);
2025-10-14 19:40:29 +03:00
border-radius: inherit;
2025-06-16 16:31:53 +03:00
display: flex;
flex-direction: column;
2025-10-14 19:40:29 +03:00
}
2025-06-16 16:31:53 +03:00
& section {
& a:has(figure) {
height: max-content;
2025-06-16 16:31:53 +03:00
}
& figure img {
2025-10-14 19:40:29 +03:00
border-radius: inherit;
2025-06-16 16:31:53 +03:00
}
& figcaption {
font-weight: normal;
font-style: italic;
padding: var(--pad-m) 0;
2025-06-16 16:31:53 +03:00
}
}
2025-06-11 09:36:54 +03:00
}
.paws li::marker {
content: none;
}
.paws li::before {
content: "";
width: 20px;
height: 20px;
position: absolute;
mask-image: var(--paw);
mask-size: contain;
mask-repeat: no-repeat;
margin: 0 0 0 calc(var(--pad-xl) * -1);
}
2025-06-16 16:31:53 +03:00
:is(main article, main section):not(:last-child) {
2025-09-11 19:30:58 +03:00
margin-bottom: var(--pad-m);
2025-06-11 09:36:54 +03:00
}
img[src*="/assets/img/flag/"] {
height: 32px;
2025-10-14 19:40:29 +03:00
border-radius: 2px;
&:first-child {
margin-left: var(--pad-m);
}
&:not(:last-child) {
margin-right: var(--pad-m);
}
2025-06-11 09:36:54 +03:00
}
2026-04-02 19:45:57 +03:00
dialog button[commandfor="signal"] {
2026-03-06 11:03:17 +02:00
width: max-content;
padding: 0 var(--pad-s);
2026-03-06 11:03:17 +02:00
margin: 0 auto;
}
#signal {
2026-03-06 11:03:17 +02:00
cursor: default;
background: black;
border: none;
margin: 0 auto;
text-align: center;
max-width: 100%;
max-height: 100%;
width: 100%;
height: 100%;
position: fixed;
padding: var(--pad-xl);
& article {
display: flex;
flex-direction: column;
justify-content: center;
border: 0;
padding: 0;
margin: 0 auto;
max-width: fit-content;
background: none;
word-wrap: break-word;
color: white;
& h1 {
font-size: 4rem;
}
& p {
font-size: 2rem;
}
& a {
margin: auto 0 0 auto;
}
& h1,
p,
a {
font-family: "Times New Roman", Times, serif;
}
& img {
border: 4px solid white;
padding: var(--pad-s);
2026-03-06 11:03:17 +02:00
max-width: 100%;
max-height: 250px;
}
2025-10-19 15:55:35 +03:00
}
}
@media screen and (min-width: 916px) {
#sidebar {
display: flex;
}
#floating {
display: none;
}
#default button[popovertarget] {
display: none;
}
}
@media screen and (max-width: 916px) {
/* Reset */
header,
footer,
main {
margin: 0;
padding: 0;
width: auto;
}
article {
margin: var(--pad-m);
padding: var(--pad-l);
}
header {
margin: calc(var(--pad-xxl) + var(--pad-l)) 0 0 0;
}
header h1 {
margin: auto 0 0 auto;
padding-right: var(--pad-m);
}
#default::before {
content: none;
}
body::after {
content: "";
}
}