chota/src/_base.css

202 lines
3.0 KiB
CSS

:root {
--bg-color: #ffffff;
--bg-secondary-color: #f3f3f6;
--color-primary: #14854F;
--color-lightGrey: #d2d6dd;
--color-grey: #747681;
--color-darkGrey: #3f4144;
--color-error: #d43939;
--color-success: #28bd14;
--grid-maxWidth: 120rem;
--grid-gutter: 2rem;
--font-size: 1.6rem;
--font-color: #333333;
--font-family-sans: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next",
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
--font-family-mono: monaco, "Consolas", "Lucida Console", monospace;
}
html {
box-sizing: border-box;
font-size: 62.5%;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
box-sizing: inherit;
}
* {
scrollbar-width: thin;
scrollbar-color: var(--color-lightGrey) var(--bg-primary);
}
*::-webkit-scrollbar {
width: 8px;
}
*::-webkit-scrollbar-track {
background: var(--bg-primary);
}
*::-webkit-scrollbar-thumb {
background: var(--color-lightGrey);
}
body {
background-color: var(--bg-color);
line-height: 1.6;
font-size: var(--font-size);
color: var(--font-color);
font-family: "Segoe UI", "Helvetica Neue", sans-serif; /*fallback*/
font-family: var(--font-family-sans);
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 500;
margin: 0.35em 0 0.7em 0;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.75em;
}
h3 {
font-size: 1.5em;
}
h4 {
font-size: 1.25em;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 0.85em;
}
a {
color: var(--color-primary);
text-decoration: none;
}
a:hover:not(.button) {
opacity: 0.75;
}
button {
font-family: inherit;
}
p {
margin-top: 0;
}
blockquote {
background-color: var(--bg-secondary-color);
padding: 1.5rem 2rem;
border-left: 3px solid var(--color-lightGrey);
}
dl dt {
font-weight: bold;
}
hr {
border: none;
background-color: var(--color-lightGrey);
height: 1px;
margin: 1rem 0;
}
table {
width: 100%;
border: none;
border-collapse: collapse;
border-spacing: 0;
text-align: left;
}
table.striped tr:nth-of-type(2n) {
background-color: var(--bg-secondary-color);
}
td,
th {
vertical-align: middle;
padding: 1.2rem 0.4rem;
}
thead {
border-bottom: 2px solid var(--color-lightGrey);
}
tfoot {
border-top: 2px solid var(--color-lightGrey);
}
code,
kbd,
pre,
samp,
tt {
font-family: var(--font-family-mono);
}
code,
kbd {
padding: 0 0.4rem;
font-size: 90%;
white-space: pre-wrap;
border-radius: 4px;
padding: 0.2em 0.4em;
background-color: var(--bg-secondary-color);
color: var(--color-error);
}
pre {
background-color: var(--bg-secondary-color);
font-size: 1em;
padding: 1rem;
overflow-x: auto;
}
pre code {
background: none;
padding: 0;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted;
}
img {
max-width: 100%;
}
fieldset {
border: 1px solid var(--color-lightGrey);
}
iframe {
border: 0;
}