Files
documentation/assets/base.css

1501 lines
23 KiB
CSS

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root {
--primary: #000000;
--bg-light: #ffffff;
--bg-dark: #000000;
--text-light: #0b0b0c;
--text-dark: #f3f3f3;
--muted-light: #6b7280;
--muted-dark: #a3a3a3;
--sidebar-width: 256px;
--toc-width: 240px;
--header-height: 109px;
--font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
--border-light: #e5e7eb;
--border-dark: #2b2b2b98;
}
* {
box-sizing: border-box;
}
html {
height: 100%;
}
body {
min-height: 100%;
margin: 0;
font-family: var(--font);
background: var(--bg-light);
color: var(--text-light);
line-height: 1.65;
overflow-x: hidden;
}
html.dark body {
background: var(--bg-dark);
color: var(--text-dark);
}
a {
color: inherit;
text-decoration: none;
}
#banner {
position: relative;
display: block;
padding: 10px 48px;
font-size: 13px;
line-height: 1.45;
text-align: center;
z-index: 100;
background: var(--bg-light);
}
html.dark #banner {
background: var(--bg-dark);
}
#banner[data-dismissed="true"] {
display: none;
}
#banner-close {
position: absolute;
top: 50%;
right: 8px;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
transform: translateY(-50%);
background: none;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 18px;
line-height: 1;
color: inherit;
opacity: 0.6;
}
#banner-close:hover {
opacity: 1;
background: rgba(0, 0, 0, 0.06);
}
html.dark #banner-close:hover {
background: rgba(255, 255, 255, 0.1);
}
#navbar {
position: sticky;
top: 0;
z-index: 40;
background: var(--bg-light);
}
#navbar::after {
content: "";
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 40px;
background: linear-gradient(to bottom,
rgba(255, 255, 255),
transparent);
pointer-events: none;
}
html.dark #navbar::after {
background: linear-gradient(to bottom,
rgba(0, 0, 0),
transparent);
}
html.dark #navbar {
background: var(--bg-dark);
border-color: transparent;
}
#navbar .nav-top {
position: relative;
display: flex;
align-items: center;
height: 60px;
max-width: 1400px;
margin: 0 auto;
padding: 0 16px;
}
#navbar .nav-top::after {
content: "";
position: absolute;
left: 16px;
right: 16px;
bottom: 0;
}
html.dark #navbar .nav-top::after {
border-color: transparent;
}
#navbar .brand {
display: flex;
align-items: center;
}
#navbar .brand img {
height: 28px;
width: 28px;
border-radius: 50%;
display: block;
}
#navbar .links {
display: flex;
align-items: center;
gap: 10px;
margin-left: auto;
}
#navbar .tabs {
display: flex;
align-items: center;
gap: 4px;
height: 48px;
max-width: 1400px;
margin: 0 auto;
padding: 0 16px;
overflow-x: auto;
}
#navbar .tabs a {
padding: 6px 14px;
font-size: 14px;
font-weight: 500;
color: var(--muted-light);
white-space: nowrap;
}
html.dark #navbar .tabs a {
color: var(--muted-dark);
}
#navbar .tabs a:hover {
color: var(--text-light);
}
html.dark #navbar .tabs a:hover {
color: var(--text-dark);
}
#navbar .tabs a.active {
color: var(--text-light);
font-weight: 600;
}
html.dark #navbar .tabs a.active {
color: var(--text-dark);
}
#layout {
display: flex;
max-width: 1400px;
margin: 0 auto;
}
#sidebar {
width: var(--sidebar-width);
flex-shrink: 0;
padding: 28px 20px;
position: sticky;
top: var(--header-height);
height: calc(100vh - var(--header-height));
overflow-y: auto;
}
#sidebar .group {
margin-bottom: 22px;
}
#sidebar .group-title {
font-size: 12px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted-light);
margin: 0 0 8px 10px;
}
html.dark #sidebar .group-title {
color: var(--muted-dark);
}
#sidebar ul {
list-style: none;
margin: 0;
padding: 0;
}
#sidebar li a {
display: block;
padding: 7px 10px;
border-radius: 8px;
font-size: 13.5px;
color: var(--muted-light);
}
html.dark #sidebar li a {
color: var(--muted-dark);
}
#sidebar li a:hover {
background: rgba(0, 0, 0, 0.05);
color: var(--text-light);
}
html.dark #sidebar li a:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--text-dark);
}
#content-col {
flex: 1;
min-width: 0;
padding: 40px 48px 100px;
display: flex;
gap: 48px;
}
main.prose {
flex: 1;
min-width: 0;
max-width: 760px;
}
main.prose h1 {
font-size: 32px;
font-weight: 800;
margin: 0 0 6px;
}
main.prose .page-description {
color: var(--muted-light);
font-size: 16px;
margin: 0 0 32px;
}
html.dark main.prose .page-description {
color: var(--muted-dark);
}
main.prose h2 {
font-size: 22px;
font-weight: 700;
margin: 40px 0 14px;
padding-top: 6px;
}
main.prose h2:first-child {
border-top: none;
padding-top: 0;
}
main.prose h3 {
font-size: 17px;
font-weight: 700;
margin: 26px 0 10px;
}
main.prose p {
margin: 14px 0;
}
main.prose ul,
main.prose ol {
margin: 14px 0;
padding-left: 22px;
}
main.prose li {
margin: 4px 0;
}
main.prose img {
max-width: 100%;
border-radius: 16px;
display: block;
margin: 20px 0;
}
main.prose img.vyla-banner {
width: 100%;
}
main.prose hr {
border: none;
margin: 32px 0;
}
main.prose code {
font-family: var(--mono);
font-size: 13px;
background: rgba(0, 0, 0, 0.06);
padding: 2px 6px;
border-radius: 5px;
}
html.dark main.prose code {
background: rgba(255, 255, 255, 0.1);
position: relative;
overflow: hidden;
}
main.prose pre {
margin: 16px 0;
padding: 16px 18px;
border-radius: 12px;
overflow-x: auto;
background: rgba(250, 250, 250);
}
html.dark main.prose pre {
background: rgba(5, 5, 5);
border-color: transparent;
}
main.prose pre code {
background: none;
padding: 0;
font-size: 13px;
}
.table-wrap {
--fade-l: 0px;
--fade-r: 0px;
max-width: 100%;
margin: 18px 0;
overflow-x: auto;
scrollbar-width: thin;
-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.table-wrap table {
margin: 0;
}
table {
width: 100%;
border-collapse: collapse;
margin: 18px 0;
font-size: 14px;
}
th,
td {
text-align: left;
padding: 10px 14px;
}
th {
font-weight: 700;
}
.callout {
display: flex;
gap: 12px;
padding: 14px 16px;
border-radius: 12px;
margin: 18px 0;
font-size: 14px;
}
.callout-content {
flex: 1;
}
.callout-content> :first-child {
margin-top: 0;
}
.callout-content> :last-child {
margin-bottom: 0;
}
.callout-note {
background: rgba(5, 5, 5, 0.08);
}
.callout-info {
background: rgba(39, 39, 39, 0.08);
}
.callout-warning {
background: rgba(245, 158, 11, 0.1);
}
.card {
display: block;
border-radius: 14px;
padding: 16px 18px;
margin: 18px 0;
}
a.card:hover {
border-color: rgba(0, 0, 0, 0.3);
}
html.dark a.card:hover {
border-color: rgba(255, 255, 255, 0.3);
}
.card-title {
font-weight: 700;
font-size: 15px;
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
}
.card-body {
font-size: 14px;
color: var(--muted-light);
}
html.dark .card-body {
color: var(--muted-dark);
}
.card-body> :first-child {
margin-top: 0;
}
.card-body> :last-child {
margin-bottom: 0;
}
.code-group {
position: relative;
margin: 16px 0;
border-radius: 20px;
background: #f4f4f5;
padding: 6px 4px 4px;
}
html.dark .code-group {
background: #0d0d0d;
border: none;
}
.code-group-tabs {
display: flex;
align-items: center;
gap: 16px;
padding: 4px 6px 6px;
}
.code-group-tab {
position: relative;
padding: 6px 2px 8px;
font-family: var(--font);
font-size: 13px;
font-weight: 600;
line-height: 16px;
border: none;
background: none;
cursor: pointer;
color: #71717a;
}
.code-group-tab.active {
color: var(--text-light);
}
html.dark .code-group-tab.active {
color: #ffffff;
}
.code-group-tab.active::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 2px;
background: var(--text-light);
border-radius: 2px;
}
html.dark .code-group-tab.active::after {
background: #ffffff;
}
.code-group-panels {
background: #ffffff;
border-radius: 14px;
overflow: hidden;
}
html.dark .code-group-panels {
background: #000000;
border-color: rgba(255, 255, 255, 0.06);
}
.cg-copy-btn {
position: absolute;
top: 10px;
right: 14px;
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
border: none;
border-radius: 6px;
background: none;
color: #71717a;
cursor: pointer;
}
.cg-copy-btn:hover {
color: var(--text-light);
}
html.dark .cg-copy-btn:hover {
color: #ffffff;
}
.cg-copy-btn {
position: absolute;
top: 10px;
right: 14px;
display: flex;
align-items: center;
justify-content: center;
padding: 4px;
border: none;
border-radius: 6px;
background: none;
color: #71717a;
cursor: pointer;
}
.cg-copy-btn:hover {
color: #ffffff;
}
.code-group-panel {
display: none;
}
.code-group-panel.active {
display: block;
}
main.prose .code-group pre {
margin: 0;
padding: 16px 20px;
border: none;
border-radius: 0;
background: transparent;
color: #e6edf3;
}
main.prose .code-group pre code {
color: inherit;
}
.hljs-built_in,
.hljs-builtin-name {
color: #d19a66 !important;
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-template-variable {
color: #e5c07b !important;
}
main.prose a:not(.card) {
color: #2563eb;
text-decoration: underline;
text-underline-offset: 2px;
}
html.dark main.prose a:not(.card) {
color: #60a5fa;
}
aside#toc {
width: var(--toc-width);
flex-shrink: 0;
display: none;
}
@media (min-width: 1100px) {
aside#toc {
display: block;
}
}
aside#toc .toc-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
line-height: 20px;
color: var(--text-light);
margin-bottom: 2px;
}
aside#toc .toc-title::before {
content: "";
width: 16px;
height: 16px;
background: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h10M4 18h14'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h10M4 18h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
html.dark aside#toc .toc-title {
color: var(--text-dark);
}
aside#toc ul {
list-style: none;
margin: 0;
padding: 0;
}
aside#toc li a {
display: block;
padding: 5px 0 5px 14px;
font-size: 13px;
color: var(--muted-light);
}
html.dark aside#toc li a {
color: var(--muted-dark);
}
aside#toc li a:hover {
color: var(--text-light);
}
html.dark aside#toc li a:hover {
color: var(--text-dark);
}
aside#toc {
position: sticky;
top: calc(var(--header-height) + 40px);
max-height: calc(100vh - var(--header-height) - 56px);
overflow-y: auto;
padding-top: 0;
}
footer#site-footer {
padding: 28px 48px;
display: flex;
justify-content: center;
gap: 18px;
font-size: 13px;
color: var(--muted-light);
}
html.dark footer#site-footer {
color: var(--muted-dark);
}
.hljs {
background: none !important;
}
.ico {
width: 16px;
height: 16px;
flex-shrink: 0;
}
#search-trigger {
position: absolute;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 10px;
width: min(440px, 40vw);
height: 36px;
padding: 0 12px;
border: none;
border-radius: 100px;
background: none;
color: var(--muted-light);
font: inherit;
font-size: 14px;
cursor: pointer;
}
#search-trigger:hover {
background: rgba(0, 0, 0, 0.05);
}
html.dark #search-trigger {
color: var(--muted-dark);
}
html.dark #search-trigger:hover {
background: rgba(255, 255, 255, 0.08);
}
#search-trigger kbd {
margin-left: auto;
font: 600 11px var(--font);
color: inherit;
}
.theme-wrap {
position: relative;
}
#theme-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border: none;
border-radius: 10px;
background: none;
color: var(--muted-light);
cursor: pointer;
}
#theme-toggle .ico {
width: 18px;
height: 18px;
}
#theme-toggle:hover {
background: rgba(0, 0, 0, 0.05);
}
html.dark #theme-toggle {
color: var(--muted-dark);
}
html.dark #theme-toggle:hover {
background: rgba(255, 255, 255, 0.08);
}
#theme-menu {
display: none;
position: absolute;
right: 0;
top: 46px;
width: 180px;
padding: 8px;
border-radius: 16px;
background: var(--bg-light);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
z-index: 50;
}
html.dark #theme-menu {
background: var(--bg-dark);
}
#theme-menu.open {
display: block;
}
#theme-menu button {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 8px 10px;
border: none;
border-radius: 10px;
background: none;
color: inherit;
font: inherit;
font-size: 14px;
cursor: pointer;
}
#theme-menu button:hover {
background: rgba(0, 0, 0, 0.05);
}
html.dark #theme-menu button:hover {
background: rgba(255, 255, 255, 0.08);
}
#theme-menu .check {
margin-left: auto;
font-style: normal;
visibility: hidden;
}
#theme-menu button.on {
font-weight: 600;
}
#theme-menu button.on .check {
visibility: visible;
}
#theme-seg {
display: none;
gap: 4px;
}
#theme-seg button {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border: none;
border-radius: 50%;
background: none;
color: var(--muted-light);
cursor: pointer;
}
html.dark #theme-seg button {
color: var(--muted-dark);
}
#theme-seg button.on {
background: rgba(0, 0, 0, 0.07);
color: var(--text-light);
}
html.dark #theme-seg button.on {
background: rgba(255, 255, 255, 0.1);
color: var(--text-dark);
}
#mobile-bar {
display: none;
position: sticky;
top: 60px;
z-index: 35;
background: var(--bg-light);
align-items: center;
gap: 8px;
padding: 14px 20px;
font-size: 14px;
color: var(--muted-light);
}
html.dark #mobile-bar {
background: var(--bg-dark);
}
html.dark #mobile-bar {
color: var(--muted-dark);
}
#mobile-bar::after {
content: "";
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 40px;
background: linear-gradient(to bottom,
rgba(255, 255, 255),
transparent);
pointer-events: none;
}
html.dark #mobile-bar::after {
background: linear-gradient(to bottom,
rgba(0, 0, 0),
transparent);
}
#mobile-bar button {
display: flex;
padding: 0;
margin-right: 8px;
border: none;
background: none;
color: inherit;
cursor: pointer;
}
#mobile-bar .crumb-current {
color: var(--text-light);
font-weight: 600;
}
html.dark #mobile-bar .crumb-current {
color: var(--text-dark);
}
.mobile-tabs {
display: none;
position: relative;
margin-bottom: 20px;
}
.mt-btn {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 8px 12px;
border: none;
background: rgba(25, 25, 25, 0.1);
border-radius: 100px;
color: var(--text-light);
font: inherit;
font-size: 15px;
cursor: pointer;
}
html.dark .mt-btn {
color: var(--text-dark);
}
.mt-btn .ico {
color: var(--muted-light);
transition: transform 0.15s ease;
}
html.dark .mt-btn .ico {
color: var(--muted-dark);
}
.mobile-tabs.open .mt-btn .ico {
transform: rotate(180deg);
}
.mt-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 5;
padding: 8px;
border-radius: 16px;
background: var(--bg-light);
border: 1px solid var(--border-light);
}
html.dark .mt-menu {
background: var(--bg-dark);
border: 1px solid var(--border-dark);
}
.mobile-tabs.open .mt-menu {
display: block;
}
.mt-menu a {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
border-radius: 10px;
font-size: 13px;
font-weight: 600;
color: var(--text-light);
}
html.dark .mt-menu a {
color: var(--text-dark);
}
.mt-menu a .ico {
visibility: hidden;
}
.mt-menu a.on .ico {
visibility: visible;
}
#sidebar {
padding: 36px 0 24px;
}
#sidebar .group {
margin-bottom: 32px;
}
#sidebar .group-title {
font-size: 14px;
font-weight: 600;
line-height: 23px;
text-transform: none;
letter-spacing: 0;
color: var(--text-light);
margin: 0 0 10px 16px;
}
html.dark #sidebar .group-title {
color: var(--text-dark);
}
#sidebar li a {
padding: 8px 16px;
border-radius: 12px;
font-size: 14px;
line-height: 21px;
}
#content-col {
padding: 40px 32px 100px 72px;
gap: 92px;
}
main.prose {
max-width: 720px;
}
main.prose h2,
main.prose h3 {
scroll-margin-top: 130px;
}
main.prose .eyebrow {
font-size: 14px;
font-weight: 600;
margin: 0 0 8px;
color: var(--text-light);
}
html.dark main.prose .eyebrow {
color: var(--text-dark);
}
main.prose h1 {
font-size: 30px;
font-weight: 700;
letter-spacing: 0;
}
main.prose .page-description {
font-size: 18px;
}
main.prose h2 {
font-size: 24px;
font-weight: 600;
border-top: none;
padding-top: 0;
margin: 40px 0 14px;
}
main.prose h1,
main.prose h2,
main.prose h3 {
color: #111827;
}
html.dark main.prose h1,
html.dark main.prose h2,
html.dark main.prose h3 {
color: var(--text-dark);
}
main.prose p,
main.prose li {
color: #4b5563;
}
html.dark main.prose p,
html.dark main.prose li {
color: #a1a1aa;
}
main.prose strong {
color: var(--text-light);
}
html.dark main.prose strong {
color: var(--text-dark);
}
main.prose img {
border-radius: 30px;
}
main.prose a:not(.card) {
color: var(--text-light);
font-weight: 600;
text-decoration: underline;
}
html.dark main.prose a:not(.card) {
color: var(--text-dark);
}
main.prose pre {
border-radius: 16px;
border-color: transparent;
padding: 16px 20px;
--fade-l: 0px;
--fade-r: 0px;
-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.code-wrap {
position: relative;
}
.code-wrap .copy-btn {
position: absolute;
top: 12px;
right: 12px;
display: flex;
padding: 6px;
border: none;
border-radius: 8px;
background: none;
color: var(--muted-light);
cursor: pointer;
}
.code-wrap .copy-btn:hover {
background: rgba(0, 0, 0, 0.06);
}
html.dark .code-wrap .copy-btn {
color: var(--muted-dark);
}
html.dark .code-wrap .copy-btn:hover {
background: rgba(255, 255, 255, 0.1);
}
aside#toc ul {
border-left: none;
}
aside#toc li a {
padding: 6px 0;
font-size: 14px;
line-height: 20px;
}
aside#toc li a.active {
color: var(--text-light);
font-weight: 600;
}
html.dark aside#toc li a.active {
color: var(--text-dark);
}
#search-modal {
position: fixed;
inset: 0;
z-index: 100;
display: none;
}
#search-modal.open {
display: block;
}
.search-backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.5);
}
.search-panel {
position: relative;
width: min(640px, calc(100vw - 24px));
margin: 52px auto 0;
border-radius: 20px;
overflow: hidden;
background: var(--bg-light);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
html.dark .search-panel {
background: var(--bg-dark);
}
.search-input-row {
display: flex;
align-items: center;
gap: 12px;
padding: 18px 20px;
}
.search-input-row .ico {
width: 18px;
height: 18px;
color: var(--muted-light);
}
#search-input {
flex: 1;
border: none;
outline: none;
background: transparent;
color: inherit;
font: inherit;
font-size: 18px;
}
#search-results {
max-height: 60vh;
overflow-y: auto;
padding: 0 6px 8px;
}
.search-label {
padding: 8px 14px;
font-size: 12px;
color: var(--muted-light);
}
html.dark .search-label {
color: var(--muted-dark);
}
.sr {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 8px 12px;
border-radius: 12px;
}
.sr>.ico {
margin-top: 3px;
}
.sr.on {
background: rgba(0, 0, 0, 0.06);
}
.sr-body {
min-width: 0;
}
.sr .t {
font-size: 14px;
font-weight: 600;
line-height: 1.35;
}
.sr .s {
display: -webkit-box;
margin-top: 2px;
font-size: 12.5px;
line-height: 1.4;
color: var(--muted-light);
overflow: hidden;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
}
.sr .p {
margin-top: 2px;
font-size: 12px;
line-height: 1.35;
color: var(--muted-light);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
html.dark .sr .s,
html.dark .sr .p {
color: var(--muted-dark);
}
.sr .sep {
margin: 0 6px;
opacity: 0.7;
}
.sr .hit {
font-weight: 700;
color: var(--text-light);
}
html.dark .sr .hit {
color: var(--text-dark);
}
.search-footer {
display: flex;
gap: 18px;
padding: 12px 20px;
font-size: 12px;
color: var(--muted-light);
}
html.dark .search-footer {
color: var(--muted-dark);
}
.search-footer .close-hint {
margin-left: auto;
}
.search-footer kbd {
margin-right: 4px;
padding: 1px 5px;
border-radius: 4px;
font: 11px var(--font);
}
@media (max-width: 900px) {
:root {
--header-height: 60px;
}
#navbar::after {
display: none;
}
#navbar .tabs,
#theme-toggle,
#navbar .nav-top::after {
display: none;
}
#navbar .nav-top {
padding-right: 20px;
padding-left: 0px;
}
#navbar .links {
order: 1;
margin-left: auto;
margin-right: 8px;
}
#search-trigger {
order: 2;
position: static;
transform: none;
width: auto;
padding: 8px;
}
#search-trigger span,
#search-trigger kbd {
display: none;
}
#mobile-bar {
display: flex;
}
.mobile-tabs {
display: block;
margin-top: 50px;
}
body.nav-open #theme-seg {
display: flex;
background: rgba(25, 25, 25, 0.1);
border-radius: 50px;
padding-left: 5px;
padding-right: 5px;
padding-top: 1px;
padding-bottom: 1px;
}
#theme-seg button.on {
background: transparent;
}
#banner {
padding: 10px 40px;
font-size: 12.5px;
}
body.nav-open {
overflow: hidden;
}
#sidebar {
position: fixed;
left: 0;
top: var(--sidebar-top, var(--header-height));
width: 80%;
max-width: 340px;
height: calc(100vh - var(--sidebar-top, var(--header-height)));
height: calc(100dvh - var(--sidebar-top, var(--header-height)));
padding: 20px 16px;
background: var(--bg-light);
transform: translateX(-100%);
transition: transform 0.2s ease;
z-index: 30;
}
html.dark #sidebar {
background: var(--bg-dark);
}
#sidebar.open {
transform: translateX(0);
}
#content-col {
padding: 16px 20px 80px;
}
aside#toc {
display: none;
}
.search-panel {
margin-top: 50px;
border-radius: 30px;
}
.search-footer {
display: none;
}
}
@media (max-width: 900px) {
#sidebar li a,
#sidebar .group-title {
font-size: 15px;
}
}
main.prose p {
margin: 20px 0;
}
main.prose p,
main.prose li {
line-height: 1.75;
}