diff options
Diffstat (limited to 'assets/scss/common/_global.scss')
-rw-r--r-- | assets/scss/common/_global.scss | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/assets/scss/common/_global.scss b/assets/scss/common/_global.scss new file mode 100644 index 0000000..c670c6d --- /dev/null +++ b/assets/scss/common/_global.scss @@ -0,0 +1,157 @@ +.authors .content, +.blog .content, +.page .content, +.error404 .content { + padding-top: 1rem; + padding-bottom: 3rem; +} + +h1, +h2, +h3, +h4, +h5, +h6, +.h1, +.h2, +.h3, +.h4, +.h5, +.h6 { + margin: 2rem 0 1rem; +} + +@include media-breakpoint-up(md) { + body { + font-size: $font-size-md; + padding-top: 4rem !important; + } + + h1, + h2, + h3, + h4, + h5, + h6, + .h1, + .h2, + .h3, + .h4, + .h5, + .h6 { + margin-bottom: 1.125rem; + } +} + +.section { + padding-top: 5rem; + padding-bottom: 5rem; +} + +.section svg { + display: inline-block; + width: 2rem; + height: 2rem; + vertical-align: text-top; +} + +body { + padding-top: 3.5625rem; +} + +.docs-sidebar { + order: 2; +} + +@include media-breakpoint-up(lg) { + .docs-sidebar { + order: 0; + border-right: 1px solid $gray-200; + } + + @supports ((position:-webkit-sticky) or (position:sticky)) { + .docs-sidebar { + position: -webkit-sticky; + position: sticky; + top: 4rem; + z-index: 1000; + height: calc(100vh - 4rem); + } + } +} + +@include media-breakpoint-up(xl) { + .docs-sidebar { + flex: 0 1 320px; + } +} + +.docs-links { + padding-bottom: 5rem; +} + +@include media-breakpoint-up(lg) { + @supports ((position: -webkit-sticky) or (position: sticky)) { + .docs-links { + max-height: calc(100vh - 4rem); + overflow-y: auto; + } + } +} + +@include media-breakpoint-up(lg) { + .docs-links { + display: block !important; + margin-right: -1.5rem; + padding-bottom: 4rem; + } +} + +.docs-toc { + order: 2; +} + +@supports ((position:-webkit-sticky) or (position:sticky)) { + .docs-toc { + position: -webkit-sticky; + position: sticky; + top: 4rem; + height: calc(100vh - 4rem); + overflow-y: auto; + } +} + +.docs-content { + padding-bottom: 3rem; + order: 1; +} + +.docs-navigation { + border-top: 1px solid $gray-200; + margin-top: 3rem; + margin-bottom: 0; + padding-top: 2rem; +} + +.docs-navigation a { + font-size: $font-size-base * 0.9; +} + +@include media-breakpoint-up(lg) { + .docs-navigation { + margin-bottom: 5rem; + } + + .docs-navigation a { + font-size: $font-size-base; + } +} + +#TableOfContents ul { + padding-left: 0; + list-style: none; +} + +::selection { + background: lighten($primary, 45%); +} |