qwik-site/assets/css/article.css

77 lines
1.1 KiB
CSS
Raw Normal View History

2021-08-09 17:44:53 +02:00
article {
display: grid;
grid-template-areas: 'header' 'toc' 'content';
grid-template-columns: 100%;
grid-template-rows: repeat(3, auto);
}
2022-08-13 17:16:25 +02:00
article > #header {
2021-08-09 17:44:53 +02:00
grid-area: header;
margin-bottom: 2rem;
}
2022-08-13 17:16:25 +02:00
article > #header > i {
2021-08-09 17:44:53 +02:00
color: var(--accent);
display: block;
2022-08-13 10:47:16 +02:00
font-size: 1rem;
2021-08-09 17:44:53 +02:00
}
.toc-container {
grid-area: toc;
display: grid;
place-items: center;
width: fit-content;
margin: 0 auto;
padding: 1rem 4rem;
background-color: var(--grey3);
border-radius: .5rem;
box-shadow: 0 1rem 2rem var(--grey1);
}
.toc-container > .toc {
width: max-content;
display: grid;
}
.toc > * {
width: 100%;
display: block;
}
.toc-title {
margin-top: 0;
font-size: 1.25rem;
color: var(--primary);
}
.toc-h2 {
margin-left: .5rem;
font-size: .8rem;
}
.toc-h3 {
margin-left: 1rem;
font-size: .75rem;
}
.toc-h4 {
margin-left: 1.5rem;
font-size: .7rem;
}
.toc-h5 {
margin-left: 2rem;
font-size: .65rem;
}
.toc-h6 {
margin-left: 2.5rem;
font-size: .6rem;
}
article > .content {
grid-area: content;
}