// // Content // ._container { position: relative; z-index: $contentZ; height: 100%; margin-left: $sidebarWidth; pointer-events: none; @extend %border-box; @media #{$mediumScreen} { margin-left: $sidebarMediumWidth; } ._sidebar-hidden & { margin-left: 0; } } ._content { position: relative; height: 100%; overflow-y: scroll; margin-left: .875rem; padding: 1.125rem 1.5rem 0; font-size: .875rem; pointer-events: auto; -webkit-overflow-scrolling: touch; @extend %border-box; -webkit-padding-start: .625rem; -webkit-padding-end: .75rem; @media (-moz-overlay-scrollbars) { padding-left: .625rem; } @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { margin-left: 0; } ._sidebar-hidden &:before { content: ''; display: block; margin-top: $headerHeight; } &::-webkit-scrollbar { -webkit-appearance: none; } &::-webkit-scrollbar:vertical { width: 14px; } &::-webkit-scrollbar:horizontal { height: 14px } &::-webkit-scrollbar-button { display: none; } &::-webkit-scrollbar-track, &::-webkit-scrollbar-corner { background: $contentBackground; } &::-webkit-scrollbar-thumb { min-height: 2rem; background: $scrollbarColor; background-clip: padding-box; border: 5px solid $contentBackground; border-radius: 10px; &:hover, &:active { background-color: $scrollbarColorHover; border-width: 4px; } } } ._content-loading:before { opacity: 1; @extend ._booting:before; } // // Splash screen // ._splash-title { color: $splashText; cursor: default; opacity: 1; @extend ._booting:before, %user-select-none; } // // Intro // ._intro { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: calc(100vh - 2.375rem); ._sidebar-hidden & { min-height: calc(100vh - 2.375rem - #{$headerHeight}); } } ._intro-message { max-width: 37rem; margin: .5rem 0; padding: 1rem 1.25rem; @extend %note, %note-green; } ._intro-hide { float: right; line-height: 1.5rem; cursor: pointer; } ._intro-title { margin: 0 0 1rem; font-size: 1rem; line-height: 1.5rem; } ._intro-list { margin: 1rem 0; padding-left: 2.25rem; } ._intro-link { cursor: pointer; } // // Error // ._error { position: absolute; top: 50%; left: 0; right: 0; padding: 0 2rem; line-height: 1.5rem; text-align: center; } ._error-title { margin: -5.5rem 0 1rem; line-height: 2rem; font-size: 1.5rem; } ._error-text { margin: 0 0 1rem; color: $textColorLight; } ._error-links { font-size: 1rem; font-weight: $boldFontWeight; } ._error-link { padding: 0 .5rem; } // // Heading // ._lined-heading, %lined-heading { display: flex; justify-content: center; align-items: center; &:after { content: ''; display: inline-block; vertical-align: middle; flex-grow: 1; height: 1px; line-height: 0; margin-top: .25rem; margin-left: 1rem; background: $boxBorderLight; } } ._block-heading { @extend %block-heading; } ._heading-links { float: right; font-weight: normal; > a + a { margin-left: .25rem; } } // // Table of contents // ._toc { float: right; max-width: 15em; margin: .25rem 0 1.5rem 1.5rem; padding: .625rem 1rem; @extend %box; + h1, + ._lined-heading { margin-top: 0; } } ._toc-title { margin: 0 0 .5rem; font-size: inherit; font-weight: $boldFontWeight; } ._toc-list { margin: 0; padding: 0 1em 0 0; list-style: none; } ._toc-link { @extend %internal-link; } // // Static page // ._static { padding-bottom: 2em; > ._lined-heading:first-child { margin-top: 0; } } // // Credits table // ._credits { width: 100%; } // // Doc table // ._docs { width: 100%; margin-top: .75rem; line-height: 1.5rem; th, td { width: 1%; &:first-child { width: auto; } &:last-child { width: 12rem; } } td > a { cursor: pointer; } } ._docs-name:before { float: left; margin: .25rem .5rem .25rem 0; @extend %doc-icon; } ._docs-size { text-align: right; > small { color: $textColorLight; } } ._docs-tools { overflow: hidden; line-height: 1.5rem; } ._docs-links { float: right; padding: .375rem .125rem; @extend %box; } ._docs-link { display: none; vertical-align: top; padding: 0 .75rem; cursor: pointer; &._show { display: inline-block; } &._show ~ &._show { border-left: 1px solid $boxBorder; } } ._docs-label { overflow: hidden; margin: 1px 0; padding: .375rem .5rem; > input { display: inline-block; vertical-align: top; margin: .25rem; } } // // News // ._content { ._news-row { position: relative; padding-left: 10em; font-size: .8125rem; color: $textColorLight; + ._news-row { margin-top: 1em; } } ._news-title { display: block; font-size: .875rem; color: $textColor; } ._news-date { position: absolute; top: 0; left: 0; font-size: .875rem; } } // // Keyboard shortcuts // ._shortcuts-title { width: 16rem; max-width: 40%; margin: 2rem 0 1rem; font-size: 1rem; text-align: right; } ._shortcuts-dl { margin: 1rem 0; } ._shortcuts-dt { float: left; clear: left; margin: 0 0 .75rem; width: 16rem; max-width: 40%; font-weight: normal; text-align: right; } ._shortcuts-dd { display: block; margin: 0 0 .75rem; padding: 1px 0 1px .75rem; overflow: hidden; } ._shortcut-code { display: inline-block; vertical-align: top; padding: 0 .5em; @extend %label; } // // Abbreviations // ._abbreviations td { @extend %code; } // // Utilities // ._note { @extend %note; } ._note-green { @extend %note-green; } ._label { @extend %label; } ._highlight { background: $highlightBackground !important; } ._pre-clip { display: none; position: absolute; top: 0; right: 0; opacity: .5; padding: .375rem; cursor: pointer; pre:hover > & { display: block; } &:hover { opacity: 1; } @if $style == 'dark' { &:before { @extend %icon, %icon-clipboard-white; } } @else { &:before { @extend %icon, %icon-clipboard; } } &._pre-clip-success, &._pre-clip-error { &:before { display: none; } &:after { content: 'Copied'; padding-right: .25rem; } } &._pre-clip-error:after { content: 'Error'; } } ._btn { white-space: nowrap; padding: .125rem .375rem; background-image: linear-gradient(lighten($boxBackground, 3%), darken($boxBackground, 4%)); border: 1px solid $boxBorder; border-radius: 3px; &:active { background-color: $boxBackground; box-shadow: inset 0 1px 3px rgba(black, .15); } } ._github-btn { display: inline-block; vertical-align: text-top; margin-left: .25rem; }