chota/src/_base.css

202 lines
3.0 KiB
CSS
Raw Normal View History

2017-03-30 08:00:14 +03:00
:root {
2020-05-16 17:25:33 +03:00
--bg-color: #ffffff;
2020-05-16 21:12:51 +03:00
--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;
2020-05-16 10:25:27 +03:00
--font-color: #333333;
2020-02-26 00:01:41 +03:00
--font-family-sans: -apple-system, BlinkMacSystemFont, Avenir, "Avenir Next",
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
2020-02-26 00:01:41 +03:00
--font-family-mono: monaco, "Consolas", "Lucida Console", monospace;
2017-03-30 08:00:14 +03:00
}
html {
box-sizing: border-box;
font-size: 62.5%;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
2017-03-30 08:00:14 +03:00
}
*, *: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);
}
2017-03-30 08:00:14 +03:00
body {
2020-05-16 17:25:33 +03:00
background-color: var(--bg-color);
line-height: 1.6;
font-size: var(--font-size);
2020-05-16 10:25:27 +03:00
color: var(--font-color);
font-family: "Segoe UI", "Helvetica Neue", sans-serif; /*fallback*/
2020-02-26 00:01:41 +03:00
font-family: var(--font-family-sans);
margin: 0;
padding: 0;
2017-03-30 08:00:14 +03:00
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 500;
margin: 0.35em 0 0.7em 0;
2017-03-30 08:00:14 +03:00
}
h1 {
font-size: 2em;
2017-04-02 05:02:55 +03:00
}
h2 {
font-size: 1.75em;
2017-04-02 05:02:55 +03:00
}
h3 {
font-size: 1.5em;
2017-04-02 05:02:55 +03:00
}
h4 {
font-size: 1.25em;
2017-04-02 05:02:55 +03:00
}
h5 {
font-size: 1em;
2017-04-02 05:02:55 +03:00
}
h6 {
font-size: 0.85em;
2017-03-30 08:00:14 +03:00
}
a {
color: var(--color-primary);
text-decoration: none;
2017-03-30 08:00:14 +03:00
}
a:hover:not(.button) {
opacity: 0.75;
2017-03-30 08:00:14 +03:00
}
2019-09-14 22:17:14 +03:00
button {
font-family: inherit;
}
2017-03-30 08:00:14 +03:00
p {
margin-top: 0;
2017-03-30 08:00:14 +03:00
}
blockquote {
2020-05-16 21:12:51 +03:00
background-color: var(--bg-secondary-color);
padding: 1.5rem 2rem;
border-left: 3px solid var(--color-lightGrey);
2017-03-30 08:00:14 +03:00
}
dl dt {
font-weight: bold;
2017-03-30 08:00:14 +03:00
}
hr {
border: none;
background-color: var(--color-lightGrey);
height: 1px;
margin: 1rem 0;
2017-03-30 08:00:14 +03:00
}
table {
width: 100%;
border: none;
border-collapse: collapse;
border-spacing: 0;
text-align: left;
}
table.striped tr:nth-of-type(2n) {
2020-05-16 21:12:51 +03:00
background-color: var(--bg-secondary-color);
2017-03-30 08:00:14 +03:00
}
td,
th {
vertical-align: middle;
padding: 1.2rem 0.4rem;
2017-03-30 08:00:14 +03:00
}
thead {
border-bottom: 2px solid var(--color-lightGrey);
2017-03-30 08:00:14 +03:00
}
tfoot {
border-top: 2px solid var(--color-lightGrey);
2017-03-30 08:00:14 +03:00
}
code,
kbd,
pre,
samp,
tt {
2020-02-26 00:01:41 +03:00
font-family: var(--font-family-mono);
2017-03-30 08:00:14 +03:00
}
code,
kbd {
padding: 0 0.4rem;
font-size: 90%;
white-space: pre-wrap;
border-radius: 4px;
padding: 0.2em 0.4em;
2020-05-16 21:12:51 +03:00
background-color: var(--bg-secondary-color);
2020-05-16 23:38:29 +03:00
color: var(--color-error);
2017-03-30 08:00:14 +03:00
}
pre {
2020-05-16 21:12:51 +03:00
background-color: var(--bg-secondary-color);
font-size: 1em;
padding: 1rem;
overflow-x: auto;
2017-03-30 08:00:14 +03:00
}
2017-04-01 05:08:01 +03:00
pre code {
background: none;
padding: 0;
2017-04-01 05:08:01 +03:00
}
2017-03-30 08:00:14 +03:00
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted;
2017-03-30 08:00:14 +03:00
}
img {
max-width: 100%;
2017-03-30 08:00:14 +03:00
}
fieldset {
border: 1px solid var(--color-lightGrey);
2017-03-30 08:00:14 +03:00
}
iframe {
border: 0;
2017-12-03 00:18:02 +03:00
}