wiki.trwnh.com/assets/styles/common/base.scss

48 lines
1 KiB
SCSS
Raw Normal View History

2022-11-26 14:56:23 +00:00
:root {
2022-12-24 09:48:04 +00:00
--site-max-width: 120ch;
2022-11-26 14:56:23 +00:00
}
html {
2022-12-24 09:48:04 +00:00
font-family: sans-serif;
2022-11-26 14:56:23 +00:00
background: var(--ui-background);
color: var(--ui-text);
}
/* Single column layout, where main content stretches to fill. */
body {
display: flex;
flex-flow: column;
min-height: calc(var(--vh, 1vh) * 100);
max-width: 100vw;
margin: auto;
}
main {flex-grow: 1;}
/*
Sections are primary block units, usually of type <section>.
Containers are an immediate child <div>, purely for constraining width.
*/
.section {
padding: 2em 0; /* we apply a vertical padding only to sections */
2022-12-24 09:48:04 +00:00
box-sizing: border-box;
2022-11-26 14:56:23 +00:00
}
.container {
2022-12-24 09:48:04 +00:00
box-sizing: border-box;
2022-11-26 14:56:23 +00:00
width: 100%;
max-width: var(--site-max-width);
margin: 0 auto;
padding: 0 1em; /* and we apply a horizontal padding only to containers */
}
2022-12-24 10:25:29 +00:00
/* Ensure consistent colors for text selection and element focus */
2022-11-26 14:56:23 +00:00
::selection {
background: var(--primary-accent);
color: var(--primary-accent-text);
2022-12-24 10:25:29 +00:00
}
*:focus {
border-radius: 2px;
text-decoration: none;
outline: 1px dashed var(--ui-text);
outline-offset: 4px;
2022-11-26 14:56:23 +00:00
}