qwik-cms/assets/css/theme.css
2021-08-07 10:16:13 +02:00

149 lines
2.0 KiB
CSS

* {
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;
margin: 1.25em 0 .25em 0;
}
h1 {
color: var(--primary);
font-size: 2rem;
}
h2 {
font-size: 1.75rem;
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1.25rem;
}
h5 {
font-size: 1rem;
}
h6 {
font-size: .85rem;
}
p {
margin: .5em 0 .25em 0;
text-align: justify;
}
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;
}
code {
background-color: var(--grey3);
font-family: monospace;
padding: .1rem .2rem;
margin: 0 .1rem;
border-radius: .2rem;
}
pre > code {
margin: 1rem 0;
padding: 1rem;
border-radius: .5rem;
box-shadow: 0 1rem 2rem var(--grey1);
display: block;
overflow-x: auto;
white-space: nowrap;
}
code * {
font-family: monospace;
}
img {
margin: 1rem 0;
border-radius: .5rem;
box-shadow: 0 1rem 2rem var(--grey1);
}