philomena/assets/css/elements/base.css

86 lines
1.3 KiB
CSS
Raw Permalink Normal View History

2023-11-23 17:07:49 +01:00
html {
font-family: var(--font-family);
font-size: var(--font-size);
}
body {
padding: 0;
margin: 0;
background: var(--background-color);
color: var(--text-color);
2024-04-17 16:52:50 +02:00
line-height: var(--default-line-height);
2023-11-23 17:07:49 +01:00
}
main {
2024-04-17 16:52:50 +02:00
padding: var(--padding-large);
2023-11-23 22:20:02 +01:00
flex-grow: 1;
2023-11-23 17:07:49 +01:00
}
@mixin if-mobile {
2023-11-23 17:07:49 +01:00
main {
padding: var(--padding-small);
}
}
2024-05-20 22:30:41 +02:00
a,
a:active,
a:visited {
2023-11-23 17:07:49 +01:00
color: var(--link-color);
text-decoration: none;
}
a:hover {
color: var(--link-hover-color);
}
2024-05-01 00:10:05 +02:00
hr {
border-color: var(--primary-border-color);
}
2023-11-23 17:07:49 +01:00
.hidden {
display: none !important;
}
2024-04-17 16:52:50 +02:00
2024-05-20 22:30:41 +02:00
p,
.paragraph {
2024-04-17 16:52:50 +02:00
hyphens: none;
line-height: var(--readable-line-height);
margin: var(--padding-small);
margin-right: 0;
}
2024-05-20 21:25:43 +02:00
2024-05-20 22:30:41 +02:00
.icon--padded {
2024-05-20 21:25:43 +02:00
padding: 0 var(--padding-normal);
}
2024-05-20 22:30:41 +02:00
.icon--padded--right {
padding-right: var(--padding-normal);
}
.icon--padded.small {
padding: 0 var(--padding-small);
}
.icon--padded--right.small {
padding-right: var(--padding-small);
}
2024-05-20 21:25:43 +02:00
@mixin if-mobile {
2024-05-20 22:30:41 +02:00
.icon--padded {
2024-05-20 21:25:43 +02:00
padding: 0 var(--padding-small);
}
2024-05-20 22:30:41 +02:00
.icon--padded--right {
padding-right: var(--padding-normal);
}
2024-05-20 21:25:43 +02:00
}
2024-05-20 23:57:10 +02:00
/* Apparently this is necessary for dropdowns because
we can't have subgrids yet, and subgrids aren't really
polyfillable for any pre-late-2023 browsers. Ugh! */
.icon--fixed {
width: 1em;
padding: var(--padding-small);
}