hugo-theme-paradox/assets/styles/common/base.scss

54 lines
1.2 KiB
SCSS
Raw Normal View History

2022-12-19 15:10:26 +00:00
$site-max-width: 120rem;
$sidebar-width: 20rem;
:root {
--site-max-width: #{$site-max-width};
2022-12-19 15:10:26 +00:00
--sidebar-width: #{$sidebar-width};
2022-12-18 14:10:54 +00:00
--color-crossfade-duration: 0.25s;
--color-crossfade-ease: ease;
}
html {
2022-12-23 11:21:41 +00:00
font-family: sans-serif;
scroll-behavior: smooth;
2022-12-19 15:10:26 +00:00
text-rendering: optimizeLegibility;
2022-12-18 14:10:54 +00:00
}
body {
background: var(--ui-background);
color: var(--ui-text);
2022-12-18 14:10:54 +00:00
transition:
background var(--color-crossfade-duration) var(--color-crossfade-ease),
color var(--color-crossfade-duration) var(--color-crossfade-ease);
}
/* 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 */
}
.container {
width: 100%;
max-width: var(--site-max-width);
margin: 0 auto;
padding: 0 1em; /* and we apply a horizontal padding only to containers */
}
/* Ensure consistent colors for text selection */
::selection {
background: var(--primary-accent);
color: var(--primary-accent-text);
}