zola/docs/sass/_docs.scss

91 lines
1.5 KiB
SCSS
Raw Permalink Normal View History

2017-09-12 07:13:26 +00:00
.documentation {
padding: 3rem;
display: flex;
&__sidebar {
margin-right: 2rem;
ul {
padding-left: 0;
list-style: none;
2017-10-03 15:21:18 +00:00
}
> ul {
> li {
margin-bottom: 1rem;
}
.documentation__sidebar__title {
font-size: 1.25rem;
font-weight: bold;
}
ul {
2017-10-03 15:21:18 +00:00
margin-top: 0.25rem;
li {
border-left: 1px solid $background;
padding-left: 0.75rem;
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}
li.active a {
2017-10-03 15:21:18 +00:00
font-weight: bold;
border-bottom: 1px solid $link-color;
}
}
}
2017-10-03 15:21:18 +00:00
}
&__content {
2017-10-03 15:21:18 +00:00
width: 60%;
// Same as the anchor absolute left to not overlap
margin-left: 2rem;
2017-10-03 15:21:18 +00:00
h1, h2, h3, h4, h5, h6 {
2018-10-18 21:09:32 +00:00
.zola-anchor {
2017-10-03 15:21:18 +00:00
font-size: 1.25rem;
margin-left: -2rem;
2020-01-26 00:30:35 +00:00
margin-right: 0.75rem;
2017-10-03 15:21:18 +00:00
text-decoration: none;
border-bottom-color: transparent;
cursor: pointer;
}
}
blockquote {
border-left: 10px solid black;
padding: 0.25rem 0.5rem;
margin-left: 0;
font-style: italic;
}
}
iframe {
width: 100%;
min-height: 400px;
}
2017-09-12 07:13:26 +00:00
}
@media only screen and (max-width: 1000px) {
.documentation {
flex-direction: column;
padding: 2rem;
&__content {
width: 100%;
margin-left: 0;
}
&__sidebar {
border-top: 1px solid $background;
order: 1;
margin-right: 0;
margin-top: 1rem;
}
}
}