id/styles/base.css

155 lines
1.8 KiB
CSS
Raw Normal View History

2024-06-27 22:30:56 +01:00
@import "colours.css";
2024-07-27 13:07:27 +01:00
@import 'ui.css';
@import 'extra_icons.css';
2024-06-27 22:30:56 +01:00
:root {
color-scheme: light dark;
font-family: "Montserrat", system-ui, sans-serif;
}
body {
margin: 0;
2024-06-28 22:41:35 +01:00
display: flex;
flex-direction: column;
2024-07-27 13:07:27 +01:00
background: var(--page-bg);
2024-06-28 22:41:35 +01:00
min-height: 100vh;
2024-06-27 22:30:56 +01:00
}
header {
display: flex;
align-items: center;
padding: 1rem;
gap: 1rem;
2024-06-28 22:41:35 +01:00
flex: 0;
2024-06-27 22:30:56 +01:00
justify-content: space-between;
background: var(--flax);
color: var(--dark-slate-gray);
}
2024-07-01 22:15:51 +01:00
header > .section {
display: flex;
gap: 1em;
}
.largeicon {
font-size: 48px;
}
2024-06-27 22:30:56 +01:00
main {
flex: 1;
2024-06-28 22:41:35 +01:00
margin: 16px;
}
2024-07-27 13:07:27 +01:00
.hero {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
justify-content: center;
padding: 1rem 1rem;
gap: 1rem;
}
.hero .logo {
height: 128px;
}
2024-06-28 22:41:35 +01:00
footer {
flex: 0;
2024-06-29 22:52:46 +01:00
text-align: center;
margin: 16px;
2024-06-27 22:30:56 +01:00
}
#content {
margin: 1rem;
}
@media screen and (prefers-color-scheme: dark) {
header {
background: var(--dark-slate-gray);
color: var(--flax);
}
}
2024-06-28 22:41:35 +01:00
/* Error box */
.errorbox {
display: block;
text-align: center;
}
body > .errorbox {
flex: 1;
margin: auto;
align-content: center;
}
.errorbox > * {
margin: 5px;
}
.errorbox > .icon {
color: var(--error-fg, red);
font-size: 4em;
}
2024-06-27 22:30:56 +01:00
/* Font things */
.bc-1 {
font-weight: 700;
}
.bc-2 {
font-weight: 600;
}
.bc-3 {
font-weight: 400;
}
2024-07-01 22:15:51 +01:00
2024-07-05 12:04:46 +01:00
.id-card {
display: inline-flex;
gap: 1rem;
}
.id-card > img {
height: 128px;
}
.id-card > .info {
margin: auto 0;
}
.id-card .display_name {
font-weight: bold;
font-size: 2rem;
}
.id-card .id {
font-size: 1.2rem;
font-family: 'Grotesk Mono', monospace;
}
2024-07-01 22:15:51 +01:00
.center {
text-align: center;
}
2024-07-27 13:07:27 +01:00
.align-vertically {
vertical-align: middle;
}
.spacer {
padding: 16px;
}