html, body { background: var(--bg-shade-0); } a.logo-link { margin: auto; margin-left: 36px; height: 40px; text-decoration: none; } .docs-wrapper header { width: calc(100% - 72px); background: var(--bg-shade-0); padding: 12px 36px; margin: 18px 0; } header a.logo-link { display: none; } header nav a:first-child { margin-left: -24px; } .docs-wrapper { display: grid; grid-template-columns: repeat(2, fit-content(100%)); grid-template-rows: repeat(2, fit-content(100%)); height: 100vh; } .docs-wrapper .sidebar { display: flex; flex-flow: column; align-items: center; width: clamp(270px, 30vw, 500px); background: var(--bg-shade-0); max-height: calc(100vh - 69px); overflow-y: scroll; min-height: 100%; } .docs-wrapper .sidebar .section { display: flex; flex-flow: column; width: 200px; margin-left: 138px; margin-bottom: 72px; } .docs-wrapper .sidebar .section:first-child { margin-top: 72px; } .docs-wrapper .sidebar .section h5 { margin: 0; font-weight: normal; text-transform: uppercase; color: var(--text-shade-0); margin-bottom: 12px; } .docs-wrapper .sidebar .section a { position: relative; text-decoration: none; color: var(--text-shade-1); width: fit-content; margin-bottom: 12px; } .docs-wrapper .sidebar .section a.active, .docs-wrapper .sidebar .section a:hover { color: var(--text-shade-3); } .docs-wrapper .sidebar .section a.active::before { /* This filter thing is jank, if anyone knows a better way to do this please fix */ filter: invert(51%) sepia(12%) saturate(2930%) hue-rotate(218deg) brightness(99%) contrast(92%); position: absolute; left: -30px; content: url(../images/arrow-right.svg); } .docs-wrapper .content { width: calc(100vw - clamp(270px, 30vw, 500px) - (72px * 2)); background: var(--bg-shade-1); padding: 72px; max-height: calc(100vh - 69px - (72px * 2)); overflow-y: scroll; } .docs-wrapper .content-inner { max-width: 900px; } .docs-wrapper .content p { color: var(--text-shade-1); } .docs-wrapper .content h1:first-child { margin-top: 0; } .docs-wrapper .content .quick-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 24px; margin-bottom: 60px; } .docs-wrapper .quick-links-grid a { text-decoration: none; background: var(--bg-shade-2); border-radius: 6px; color: var(--text-shade-1); display: flex; align-items: center; padding: 20px; } .docs-wrapper .quick-links-grid svg:first-child { height: 36px; margin-right: 24px; margin-left: 4px; color: var(--accent-shade-2); } .docs-wrapper .quick-links-grid p.header { font-size: 22px; font-weight: 600; color: var(--text-shade-3); margin: 0; } .docs-wrapper .quick-links-grid p { margin: 0; } .docs-wrapper .quick-links-grid svg:last-child { height: 36px; margin-left: auto; } /* Scrollbar styling 'cause it's fancy */ .docs-wrapper .sidebar::-webkit-scrollbar, .docs-wrapper .content::-webkit-scrollbar, .docs-wrapper .content pre code::-webkit-scrollbar { width: 12px; height: 12px; } .docs-wrapper .sidebar::-webkit-scrollbar-track, .docs-wrapper .content::-webkit-scrollbar-track, .docs-wrapper .content pre code::-webkit-scrollbar-track { background: none; } .docs-wrapper .sidebar::-webkit-scrollbar-thumb, .docs-wrapper .content::-webkit-scrollbar-thumb, .docs-wrapper .content pre code::-webkit-scrollbar-thumb { background-color: var(--text-shade-0); border-radius: 24px; border: 3px solid var(--bg-shade-1); } .docs-wrapper .content::-webkit-scrollbar-thumb { border: 3px solid var(--bg-shade-1); } .docs-wrapper .content pre code::-webkit-scrollbar-thumb { border: 3px solid var(--bg-shade-0); } .docs-wrapper .sidebar { scrollbar-width: thin; scrollbar-color: var(--text-shade-0) var(--bg-shade-1); } .docs-wrapper .content { scrollbar-width: thin; scrollbar-color: var(--text-shade-0) var(--bg-shade-1); } .docs-wrapper .content pre code { scrollbar-width: thin; scrollbar-color: var(--text-shade-0) var(--bg-shade-0); } .docs-wrapper .content .missing-in-locale-notice { background: var(--bg-shade-2); padding: 24px; border-radius: 6px; } .input-wrapper { display: flex; margin-top: 8px; } .localization-form input { appearance: none; -webkit-appearance: none; border: 0; font-family: Poppins, Arial, Helvetica, sans-serif; font-size: 1rem; background-color: var(--bg-shade-3); border: none; border-radius: 4px 0 0 4px; padding: 12px 24px; color: var(--text-shade-1); width: 20px; flex: 2 10%; } .search input::placeholder { color: var(--text-shade-0); } .search input:focus { background-color: #fff; color: var(--bg-shade-3); transition: 200ms; outline: none; } .search button { appearance: none; -webkit-appearance: none; border: 0; font-family: Poppins, Arial, Helvetica, sans-serif; font-size: 1rem; color: var(--text-shade-3); padding: 12px 36px; background: var(--accent-shade-0); cursor: pointer; } @media screen and (max-width: 1080px) { .docs-wrapper .sidebar .section { margin-left: 60px; width: 184px; } }