mirror of
https://github.com/getzola/zola
synced 2024-11-15 00:27:38 +00:00
bdcad38310
* Finishing up site * Make site a bit responsive * Fix menu responsiveness * Remove Fira Sans and revamp a bit text * Update list of syntax and change output of syntax * Add Rust mention * Some doc tweaks * Correct capitalization for GitHub Correct capitalization for GitHub * Some CSS tweaks * More css tweaks + favicon * Add link to my site
89 lines
1.5 KiB
SCSS
89 lines
1.5 KiB
SCSS
.documentation {
|
|
padding: 3rem;
|
|
display: flex;
|
|
|
|
&__sidebar {
|
|
margin-right: 2rem;
|
|
|
|
ul {
|
|
padding-left: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
> ul {
|
|
> li {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.documentation__sidebar__title {
|
|
font-size: 1.25rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
ul {
|
|
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 {
|
|
font-weight: bold;
|
|
border-bottom: 1px solid $link-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
&__content {
|
|
width: 60%;
|
|
// Same as the anchor absolute left to not overlap
|
|
margin-left: 2rem;
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
.gutenberg-anchor {
|
|
font-size: 1.25rem;
|
|
visibility: hidden;
|
|
margin-left: -2rem;
|
|
text-decoration: none;
|
|
border-bottom-color: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
&:hover {
|
|
.gutenberg-anchor {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
iframe {
|
|
width: 100%;
|
|
min-height: 400px;
|
|
}
|
|
}
|
|
|
|
|
|
@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;
|
|
}
|
|
}
|
|
}
|