qwik-cms/assets/css/theme.css

149 lines
2.0 KiB
CSS
Raw Permalink Normal View History

2021-07-28 15:27:24 +02:00
* {
margin: 0;
padding: 0;
border: 0 none transparent;
box-sizing: border-box;
scroll-behavior: smooth;
font-family: 'sans-serif';
font-size: .85rem;
line-height: 1.5;
color: var(--text);
}
html {
display: grid;
place-items: center;
width: 100%;
background-color: var(--surface);
}
body {
margin: 5vh 0 10vh 0;
width: min(95vw, 75ch);
}
header {
color: var(--primary);
font-size: 3rem;
text-align: center;
}
h1, h2, h3, h4, h5, h6 {
color: var(--accent);
font-weight: normal;
2021-07-29 00:14:40 +02:00
margin: 1.25em 0 .25em 0;
2021-07-28 15:27:24 +02:00
}
h1 {
color: var(--primary);
font-size: 2rem;
}
h2 {
2021-08-08 19:05:55 +02:00
font-size: 1.65rem;
2021-07-28 15:27:24 +02:00
}
h3 {
2021-08-08 19:05:55 +02:00
font-size: 1.35rem;
2021-07-28 15:27:24 +02:00
}
h4 {
2021-08-08 19:05:55 +02:00
font-size: 1rem;
2021-07-28 15:27:24 +02:00
}
h5 {
2021-08-08 19:05:55 +02:00
font-size: .85rem;
2021-07-28 15:27:24 +02:00
}
h6 {
2021-08-08 19:05:55 +02:00
font-size: .75rem;
2021-07-28 15:27:24 +02:00
}
p {
margin: .5em 0 .25em 0;
}
a {
color: var(--accent2);
}
blockquote {
margin: 1rem;
padding: .5rem 1rem;
border-left: .2rem solid var(--primary);
background-color: var(--grey3);
}
ul, ol {
margin: 1rem 0 1rem 2rem;
}
ul ul, ul ol, ol ol, ol ul {
margin: .25rem 0 .25rem 1rem;
}
table {
display: block;
width: 100%;
overflow-x: auto;
white-space: nowrap;
border-collapse: collapse;
}
table tbody {
display: table;
width: 100%;
}
tr {
width: 200%;
background-color: var(--grey3);
}
tr:nth-child(even) {
background-color: var(--grey4);
}
th {
border-bottom: .1rem solid var(--text);
}
th, td {
text-align: left;
padding: .25rem 1rem;
2021-07-28 17:05:30 +02:00
}
code {
background-color: var(--grey3);
2021-08-04 22:52:49 +02:00
font-family: monospace;
2021-08-07 10:16:13 +02:00
padding: .1rem .2rem;
margin: 0 .1rem;
border-radius: .2rem;
2021-07-28 17:05:30 +02:00
}
2021-08-04 22:52:49 +02:00
pre > code {
2021-07-28 17:05:30 +02:00
margin: 1rem 0;
padding: 1rem;
2021-08-07 10:16:13 +02:00
border-radius: .5rem;
box-shadow: 0 1rem 2rem var(--grey1);
2021-07-28 17:05:30 +02:00
display: block;
overflow-x: auto;
white-space: nowrap;
2021-08-04 22:52:49 +02:00
}
code * {
font-family: monospace;
2021-08-07 10:16:13 +02:00
}
img {
margin: 1rem 0;
border-radius: .5rem;
box-shadow: 0 1rem 2rem var(--grey1);
2022-01-29 11:50:40 +01:00
}