@callstack/rspress-theme
Version:
Callstack theme for Rspress docs
1,070 lines (936 loc) • 27.5 kB
CSS
@font-face {
font-family: "Fira Code";
font-style: normal;
font-weight: 400;
font-display: block;
src: url("./fonts/FiraCode-Regular.ttf") format("truetype");
}
@font-face {
font-family: "Fira Code";
font-style: normal;
font-weight: 500;
font-display: block;
src: url("./fonts/FiraCode-Medium.ttf") format("truetype");
}
:root {
--ck-header-font-family: "Alliance No. 2", Arial, sans-serif;
--ck-background-primary: #ffffff;
--ck-border-primary: #cfced5;
--ck-border-secondary: #e9e7ee;
--ck-foreground-primary: #f9f8fd;
--ck-foreground-secondary: #e9e7ee;
--ck-text-primary: #201f24;
--ck-text-secondary: #838289;
--ck-text-tertiary: #bcbbc2;
--ck-accent: #8232ff;
--ck-accent-bg: #8232ff29;
--ck-warning: #ffb14c;
--ck-warning-bg: #ffb14c29;
--ck-danger: #fa7171;
--ck-danger-bg: #fa717129;
--ck-success: #2fc717;
--ck-success-bg: #2fc71729;
--ck-note: #838289;
--ck-note-bg: #83828929;
--ck-neutral-darkest: #201f24;
}
/* Dark mode overrides */
.dark {
--ck-background-primary: #201f24;
--ck-border-primary: #424145;
--ck-border-secondary: #636266;
--ck-foreground-primary: #2b2a2f;
--ck-foreground-secondary: #838289;
--ck-text-primary: #ffffff;
--ck-text-secondary: #cfced5;
--ck-accent-code-highlight: #8232ff33;
}
/* Gradients */
:root {
--ck-bg-radial-1: radial-gradient(
ellipse calc(5 * 100vw) 100vw at 100% 0%,
rgba(130, 50, 255, 0.5) 0%,
transparent 30%,
transparent 100%
);
--ck-bg-radial-2: radial-gradient(
ellipse calc(5 * 100vw) 100vw at 100% 100%,
rgba(130, 50, 255, 0.5) 0%,
transparent 15%,
transparent 100%
);
--ck-bg-radial-3: radial-gradient(
ellipse 100vw 50vw at 0% 100%,
rgba(130, 50, 255, 0.5) 0%,
transparent 15%,
transparent 100%
);
}
/* rspress fonts */
:root {
--rp-font-family-base: "Switzer Variable", Arial, sans-serif ;
--rp-font-family-mono: "Fira Code", monospace ;
/* compat */
--rp-font-family: "Switzer Variable", Arial, sans-serif ;
}
/* rspress sizing */
:root {
--rp-nav-height: 48px ;
--rp-sidebar-width: 320px ;
--rp-sidebar-menu-height: 46px ;
--rp-aside-width: 268px ;
--rp-content-padding-x: 24px;
--rp-content-padding-y: 64px;
--rp-radius: 4px ;
--rp-radius-small: 2px ;
--rp-radius-large: 8px ;
}
@media (max-width: 768px) {
html:root {
--rp-nav-height: 48px ;
}
}
@media (min-width: 1280px) {
html:root {
--rp-sidebar-menu-height: 0px ;
}
}
/* rspress colors */
:root {
/* rspress background colors */
--rp-c-bg: var(--ck-background-primary) ;
--rp-c-bg-soft: var(--ck-foreground-secondary) ;
--rp-c-bg-mute: var(--ck-foreground-primary) ;
/* rspress divider colors */
--rp-c-divider: var(--ck-border-primary) ;
--rp-c-divider-light: var(--ck-border-secondary) ;
/* rspress text colors */
--rp-c-text-1: var(--ck-text-primary) ;
--rp-c-text-2: var(--ck-text-secondary) ;
--rp-c-text-3: var(--ck-text-tertiary) ;
--rp-c-text-4: var(--ck-text-tertiary) ;
--rp-c-text-code: var(--ck-accent) ;
/* rspress brand colors */
--rp-c-brand: var(--ck-accent) ;
--rp-c-brand-light: var(--ck-accent) ;
--rp-c-brand-lighter: var(--ck-accent) ;
--rp-c-brand-dark: var(--ck-accent) ;
--rp-c-brand-darker: var(--ck-accent) ;
--rp-c-brand-tint: var(--ck-accent) ;
/* rspress gray colors */
--rp-c-gray: var(--ck-text-secondary) ;
--rp-c-gray-light-1: var(--ck-text-tertiary) ;
--rp-c-gray-light-2: var(--ck-foreground-secondary) ;
--rp-c-gray-light-3: var(--ck-foreground-secondary) ;
--rp-c-gray-light-4: var(--ck-foreground-secondary) ;
--rp-c-gray-light-5: var(--ck-foreground-secondary) ;
/* rspress dark colors */
--rp-c-dark: var(--ck-neutral-darkest) ;
--rp-c-dark-light-1: var(--ck-neutral-darkest) ;
--rp-c-dark-light-2: var(--ck-neutral-darkest) ;
--rp-c-dark-light-3: var(--ck-neutral-darkest) ;
--rp-c-dark-light-4: var(--ck-neutral-darkest) ;
--rp-c-dark-light-5: var(--ck-neutral-darkest) ;
/* rspress code colors */
--rp-code-title-bg: rgba(233, 231, 238, 1) ;
--rp-code-block-bg: rgba(249, 248, 253, 1) ;
/* rspress inline code colors */
--rp-c-text-code: var(--rp-c-text-1) ;
--rp-c-text-code-bg: var(--ck-border-secondary) ;
/* rspress link colors */
--rp-c-link: var(--rp-c-text-1) ;
/* rspress tip container colors */
--rp-container-tip-border: var(--ck-success) ;
--rp-container-tip-text: var(--rp-c-text-1) ;
--rp-container-tip-bg: var(--ck-success-bg) ;
--rp-container-tip-code-bg: var(--rp-code-block-bg) ;
/* rspress info container colors */
--rp-container-info-border: var(--ck-accent) ;
--rp-container-info-text: var(--rp-c-text-1) ;
--rp-container-info-bg: var(--ck-accent-bg) ;
--rp-container-info-code-bg: var(--rp-code-block-bg) ;
/* rspress warning container colors */
--rp-container-warning-border: var(--ck-warning) ;
--rp-container-warning-text: var(--rp-c-text-1) ;
--rp-container-warning-bg: var(--ck-warning-bg) ;
--rp-container-warning-code-bg: var(--rp-code-block-bg) ;
/* rspress danger container colors */
--rp-container-danger-border: var(--ck-danger) ;
--rp-container-danger-text: var(--rp-c-text-1) ;
--rp-container-danger-bg: var(--ck-danger-bg) ;
--rp-container-danger-code-bg: var(--rp-code-block-bg) ;
/* rspress note container colors */
--rp-container-note-border: var(--ck-note) ;
--rp-container-note-text: var(--rp-c-text-1) ;
--rp-container-note-bg: var(--ck-note-bg) ;
--rp-container-note-code-bg: var(--rp-code-block-bg) ;
/* rspress details container colors */
--rp-container-details-border: var(--ck-note) ;
--rp-container-details-text: var(--rp-c-text-1) ;
--rp-container-details-bg: var(--ck-note-bg) ;
--rp-container-details-code-bg: var(--rp-code-block-bg) ;
}
.dark {
/* rspress background colors */
--rp-c-bg-soft: var(--ck-foreground-primary) ;
--rp-c-bg-mute: var(--ck-foreground-secondary) ;
/* rspress divider colors */
--rp-c-divider: var(--ck-border-secondary) ;
--rp-c-divider-light: var(--ck-border-primary) ;
/* rspress code colors */
--rp-code-title-bg: rgba(54, 53, 57, 1) ;
--rp-code-block-bg: rgba(43, 42, 47, 1) ;
/* rspress inline code colors */
--rp-c-text-code-bg: var(--ck-border-primary) ;
}
/* Body */
body {
background: var(--rp-c-bg) ;
color: var(--rp-c-text-1) ;
font-family: var(--rp-font-family) ;
}
body * {
line-height: 1.5 ;
letter-spacing: -0.02em ;
}
code,
kbd,
samp,
pre {
font-family: var(--rp-font-family-mono) ;
font-style: normal ;
font-weight: 500 ;
line-height: 1.5 ;
}
/* Header elements */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--ck-header-font-family) ;
font-variant-numeric: lining-nums tabular-nums ;
font-feature-settings: "ss04" on ;
font-style: normal ;
font-weight: 500 ;
line-height: 1.2 ;
letter-spacing: -0.04em ;
}
/* Nav header */
.rspress-nav {
background-color: var(--rp-c-bg) ;
border-bottom: 1px solid var(--rp-c-divider-light) ;
color: var(--rp-c-text-1) ;
}
.rspress-nav-screen {
z-index: -1 ;
}
div[class^="navTitleMask_"] {
border-bottom: 1px solid var(--rp-c-divider-light) ;
}
/* Scrollbar (nav & search) */
.rspress-scrollbar {
scrollbar-gutter: auto ;
scrollbar-width: thin ;
overflow: scroll ;
}
/* Sidebar right border */
.rspress-sidebar {
border-right: 1px solid var(--rp-c-divider-light) ;
}
/* Nav items */
div[class^="menuItem_"],
div[class^="menuItem_"] > span,
div[class^="menuItemActive_"],
div[class^="menuItemActive_"] > span {
color: var(--rp-c-text-2);
font-size: 14px ;
font-weight: 400;
margin-left: 0 ;
padding-top: 2px;
padding-bottom: 2px;
line-height: 1.5;
border-radius: 0 ;
}
div[class^="menuItem_"]:hover {
background-color: var(--ck-foreground-primary) ;
}
div[class^="menuItem_"],
div[class^="menuItemActive_"] {
padding-left: 24px;
}
div[class^="menuItemActive_"],
div[class^="menuItemActive_"] > span {
color: var(--rp-c-brand);
}
div[class^="menuItemActive_"]:hover {
background-color: var(--ck-foreground-primary) ;
}
.rspress-sidebar-item > a > div {
margin-top: 0 ;
}
.rspress-sidebar-item span {
font-size: 14px ;
}
.rspress-sidebar-section {
margin-top: 0 ;
margin-bottom: 16px ;
margin-left: 0 ;
padding-left: 0 ;
}
.rspress-sidebar-section:first-of-type {
margin-top: 16px ;
}
.rspress-sidebar-section h2 {
margin-left: 0 ;
padding-left: 24px ;
}
.rspress-sidebar-section-header {
padding-top: 2px ;
padding-bottom: 2px ;
}
/* Section header text */
.rspress-sidebar-section-header > span {
color: var(--rp-c-text-3) ;
font-family: var(--rp-font-family-mono) ;
font-size: 12px ;
font-weight: 500 ;
line-height: 1.5 ;
text-transform: uppercase;
}
.rspress-sidebar-section-header > span::before {
content: "//";
color: var(--rp-c-brand) ;
font-size: 12px ;
font-weight: 500 ;
line-height: 1.5 ;
text-transform: uppercase;
margin-right: 6px;
}
/* Sidebar group */
.rspress-sidebar-group {
margin-left: 0 ;
padding-left: 0 ;
border: none ;
}
/* Group collapse icon hover */
div[class^="collapseContainer_"]:hover {
background-color: inherit ;
}
/* Group collapse */
.rspress-sidebar-collapse {
color: var(--rp-c-text-1) ;
border-radius: 0 ;
}
.rspress-sidebar-collapse > h2 {
padding-top: 0px ;
padding-bottom: 0px ;
}
/* Group collapse header */
.rspress-sidebar-collapse > h2 > span {
font-size: 14px ;
font-family: var(--rp-font-family) ;
font-weight: 500 ;
line-height: 1.5 ;
}
/* Group collapse hover */
.rspress-sidebar-collapse:hover {
color: var(--rp-c-brand) ;
background-color: transparent ;
}
/* Sidebar active item disable bg */
.rspress-sidebar-item-active {
background-color: transparent ;
}
/* Sidebar active item disable border */
.rspress-sidebar-item-active::before {
display: none ;
}
/* Sidebar active item border right */
.rspress-sidebar-item-active::after {
content: "";
background-color: var(--rp-c-brand);
width: 1px;
height: 100%;
position: absolute;
top: 0;
right: 0;
}
/* Remove default vertical line */
.rspress-sidebar-group::before {
content: none ;
}
/* Solid border after sections */
.rspress-sidebar-item + div.rp-border-solid {
display: none ;
margin-left: 0 ;
}
/* Remove dashed border after sections */
.rp-border-dashed {
display: none ;
}
/* Table of Contents */
#aside-container {
border-left: 1px solid var(--rp-c-divider-light) ;
margin: -64px 0 0 0 ;
padding: 64px 0 16px 0 ;
}
/* Contents - header */
#aside-container > div {
font-size: 14px ;
font-weight: 500 ;
line-height: 1.5 ;
color: var(--rp-c-text-1) ;
}
.aside-link:hover {
background-color: var(--ck-foreground-primary) ;
}
/* Content - active link */
.aside-link.aside-active {
color: var(--rp-c-text-1) ;
background-color: transparent ;
}
/* Content - active indicator */
li:has(> a.aside-link.aside-active) {
background-color: transparent ;
border-left: 1px solid var(--rp-c-text-1) ;
border-radius: 0 ;
transition: none ;
}
.home-hero-name-img {
width: 100%;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}
/* Overview page */
.overview-index {
padding-top: var(--rp-content-padding-y) ;
}
div:has(> p.rspress-home-hero-text) {
align-items: stretch;
}
a:has(> span.home-hero-primary-action) {
background: var(--rp-c-brand) ;
}
p.rspress-home-hero-text {
font-size: 1.35rem;
}
@media (min-width: 370px) {
p.rspress-home-hero-text {
font-size: 1.5rem;
}
}
@media (min-width: 640px) {
p.rspress-home-hero-text {
font-size: 2rem;
}
}
@media (min-width: 768px) {
p.rspress-home-hero-text {
font-size: 3rem;
}
}
/* NAV */
.rspress-nav {
padding: 8px 16px ;
}
.rspress-nav-search-button {
height: 30px ;
padding: 4px ;
border-radius: var(--rp-radius-small) ;
border: 1px solid var(--rp-c-divider-light) ;
background-color: var(--rp-c-bg) ;
transition: none ;
}
.rspress-nav-search-button button > div {
background-color: var(--rp-c-divider-light) ;
}
.rspress-nav-appearance > div.rp-border {
border: none ;
border-radius: var(--rp-radius-small) ;
padding: 4px ;
display: flex ;
flex-direction: row ;
align-items: center ;
justify-content: center ;
cursor: pointer ;
transition: background 0.15s;
}
div[class^="social-links-icon"] {
color: var(--rp-c-text-1) ;
margin: 0 ;
}
div[class^="social-links-icon"] > div {
background: var(--rp-c-divider-light) ;
border: none ;
border-radius: var(--rp-radius-small) ;
padding: 6px ;
margin: -4px ;
cursor: pointer ;
transition: background 0.15s;
}
/* Overview page */
.overview-index div > h2 {
border-top: none ;
margin-bottom: 16px ;
}
.overview-index div:has(input#api-filter) {
gap: 0 ;
}
/* Overview page - no results */
.overview-index div {
border-top: none ;
color: var(--rp-c-text-1) ;
font-family: var(--rp-font-family) ;
font-weight: 400 ;
font-size: 16px ;
}
/* Overview page - group */
div[class^="overview-group_"] {
background-color: var(--ck-foreground-primary) ;
transition: none ;
}
/* Overview page - group header */
div[class^="overview-group_"] h3 > a {
font-size: 16px ;
}
/* Overview page - link */
div[class^="overview-group_"] a {
color: var(--rp-c-text-1) ;
}
/* Overview page - link hover */
div[class^="overview-group_"] a:hover {
color: var(--rp-c-brand) ;
}
/* Overview page - search */
input#api-filter {
background: var(--rp-c-bg) url("../assets/search.svg") no-repeat 12px center /
16px 16px;
border: 1px solid var(--ck-border-primary);
color: var(--rp-c-text-2);
border-radius: var(--rp-radius-small);
font-family: var(--rp-font-family);
font-size: 16px;
font-weight: 400;
line-height: 1.5;
padding: 10px 12px 10px 36px;
box-sizing: border-box;
outline: none;
min-width: 200px;
}
/* Overview page - search placeholder */
input#api-filter::placeholder {
color: var(--rp-c-text-3);
opacity: 1;
font-family: var(--rp-font-family);
font-size: 16px;
font-weight: 400;
}
/* Overview page - search placeholder - close button */
input#api-filter::-webkit-search-cancel-button {
-webkit-appearance: none;
appearance: none;
height: 16px;
width: 16px;
background: url("../assets/close.svg") no-repeat center center / contain;
cursor: pointer;
}
/* SEARCH */
div#search-container div[class^="mask_"] {
background: rgba(21, 20, 21, 0.5);
backdrop-filter: blur(2px);
}
div#search-container div[class^="modal_"] {
background: var(--rp-c-bg);
border: 1px solid var(--ck-border-primary);
border-radius: var(--rp-radius);
font-family: var(--rp-font-family);
padding: 0px ;
box-shadow: 0px 40px 40px -20px rgba(32, 31, 36, 0.3);
}
div#search-container div[class^="inputForm_"] + h2 {
display: none;
}
div#search-container div[class^="inputForm_"] {
border: none ;
}
input.rspress-search-panel-input {
color: var(--rp-c-text-1) ;
font-family: var(--rp-font-family) ;
font-size: 16px ;
font-style: normal ;
font-weight: 400 ;
line-height: 150% ; /* 24px */
}
div#search-container div[class^="searchHits"] {
border-top: 1px solid var(--ck-border-primary) ;
box-shadow: 0px 40px 40px -20px rgba(32, 31, 36, 0.3);
}
div#search-container div[class^="searchHits"] > div:not(:has(ul)) {
justify-content: flex-end;
}
div#search-container div[class^="searchHits"] svg {
display: none ;
}
li[class*="suggestItem_"] > a {
padding: 0 16px 0 16px ;
background-color: transparent ;
box-shadow: none ;
margin-left: 1px ;
color: var(--rp-c-text-1) ;
}
li[class*="suggestItem_"] > a span[class^="mark_"] {
text-decoration: underline ;
color: var(--rp-c-text-1) ;
}
li[class*="suggestItem_"][class*="current_"] > a {
color: var(--rp-c-text-1) ;
text-decoration: none ;
background-color: var(--rp-c-bg-soft) ;
}
li[class*="suggestItem_"][class*="current_"] > a p[class^="titleForContent_"] {
color: var(--rp-c-text-2) ;
}
li[class*="suggestItem_"][class*="current_"] > a span[class^="mark_"] {
background-color: var(--rp-c-bg-soft) ;
}
li[class*="suggestItem_"]
> a
> div[class^="suggestItemContainer_"]
> div
> svg {
display: none ;
}
li[class*="suggestItem_"]
> a
> div[class^="suggestItemContainer_"]
> div[class^="contentWrapper_"] {
padding: 0 ;
}
/* Logo */
img#logo {
max-height: 16px;
}
/* Table header */
tr > th {
background-color: var(--rp-code-block-bg) ;
font-weight: 500 ;
}
/* Table - don't color even rows */
tr.rp-border {
background-color: var(--rp-c-bg) ;
}
/* Package Manager Tabs - background */
div[class^="tab-list_"] {
background-color: var(--rp-code-title-bg);
}
/* Package Manager Tabs - selected color */
div[class^="tab_"][class*="selected"],
div[class^="tab_"][class*="selected"] span {
color: var(--rp-c-text-1);
font-weight: 500;
margin-bottom: 0;
}
/* Package Manager Tabs - not selected color */
div[class^="tab_"][class*="not-selected_"],
div[class^="tab_"][class*="not-selected_"] span {
color: var(--rp-c-text-2);
font-weight: 500;
margin-bottom: 0;
}
/* Tabs - selected underline */
div[class^="tab_"][class*="selected"]::after {
color: var(--rp-c-brand);
border-radius: 0;
width: 80%;
bottom: -2px;
height: 2px;
left: 10%;
}
/* Divider between code blocks and tabs */
div[class^="container_"] div[class^="language"] > .rspress-code-title {
border-top: 1px solid var(--rp-c-divider);
}
/* Code block actions */
svg[class^="icon-wrap_"] > path,
svg[class^="icon-wrapped_"] > path,
svg[class^="icon-copy_"] > path {
fill: var(--rp-c-text-2);
}
/* Fixes positioning of ck name on 404 page */
div#root > section {
min-height: 100vh;
}
/* Home page background grid only on top */
div#root > section > div.rp-relative::before {
content: "";
position: absolute;
inset: 0;
z-index: -100;
background-image: url("../assets/hero-bg-shape.svg"), var(--ck-bg-radial-1);
background-repeat: no-repeat, no-repeat;
background-size: contain, contain;
mask-image: radial-gradient(
ellipse calc(150vw) 150vh at 100% -5%,
rgb(0, 0, 0) -5%,
transparent 40%
);
mask-size: 100% 100%;
mask-repeat: no-repeat;
}
/* Home page top noise with opacity control */
div#root > section > div.rp-relative::after {
content: "";
position: absolute;
inset: 0;
z-index: -100;
background-image: url("../assets/noise.svg");
background-repeat: repeat;
background-size: cover;
mask-image: radial-gradient(
ellipse calc(150vw) 150vh at 100% -5%,
rgb(0, 0, 0) -5%,
transparent 40%
);
mask-size: 100% 100%;
mask-repeat: no-repeat;
}
.dark div#root > section > div.rp-relative::after {
opacity: 0.1;
}
/* Home page bottom name + gradients */
div#root > section:not(:has(div[class^="docLayout_"])) {
position: relative; /* Ensure the parent is positioned */
background-image: url("../assets/callstack.svg"), var(--ck-bg-radial-2),
var(--ck-bg-radial-3);
background-repeat: no-repeat, repeat, no-repeat, no-repeat;
background-size: min(90rem, 95%) auto, auto, contain, contain;
background-position: center calc(100% + 12px), bottom, bottom, bottom;
}
/* Home page bottom noise */
div#root > section:not(:has(div[class^="docLayout_"]))::before {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: auto;
height: 100%;
z-index: -100;
pointer-events: none;
background-image: url("../assets/noise.svg");
background-repeat: repeat;
background-size: cover;
mask-image: var(--ck-bg-radial-2), var(--ck-bg-radial-3);
}
.dark div#root > section:not(:has(div[class^="docLayout_"]))::before {
opacity: 0.2 ;
}
/* Home page footer */
footer {
border: none ;
}
/* container */
.rspress-directive {
background: none ;
border: 1px dashed transparent ;
border-left: 2px solid ;
border-radius: 0px ;
padding: 8px 16px ;
margin: 1rem 0 ;
font-family: var(--rp-font-family) ;
display: flex ;
align-items: flex-start ;
flex-direction: column ;
}
/* container title */
.rspress-directive-title {
display: flex ;
flex-direction: row ;
align-items: center ;
font-weight: 500 ;
margin-bottom: 0 ;
line-height: 1.5 ;
color: var(--rp-c-text-1) ;
}
/* container icon */
.rspress-directive .rspress-directive-title::before {
display: inline-block;
width: 24px;
height: 24px;
margin-right: 16px;
}
/* container content */
.rspress-directive-content > * {
font-size: 16px ;
margin-left: 40px ;
}
/* container content links */
.rspress-directive .rspress-directive-content a {
font-weight: 400 ;
}
/* container custom border left colors */
.info {
border-left-color: var(--rp-container-info-border) ;
}
.tip {
border-left-color: var(--rp-container-tip-border) ;
}
.warning {
border-left-color: var(--rp-container-warning-border) ;
}
.danger {
border-left-color: var(--rp-container-danger-border) ;
}
.details {
border-left-color: var(--rp-container-details-border) ;
}
.note {
border-left-color: var(--rp-container-note-border) ;
}
/* container custom icon */
.rspress-directive.tip .rspress-directive-title::before {
content: "";
background: url("../assets/check-double.svg") no-repeat center center /
contain;
}
.rspress-directive.info .rspress-directive-title::before {
content: "";
background: url("../assets/info-box.svg") no-repeat center center / contain;
}
.rspress-directive.warning .rspress-directive-title::before {
content: "";
background: url("../assets/warning-box.svg") no-repeat center center / contain;
}
.rspress-directive.danger .rspress-directive-title::before {
content: "";
background: url("../assets/alert.svg") no-repeat center center / contain;
}
.rspress-directive.details .rspress-directive-title::before {
content: "";
background: url("../assets/details.svg") no-repeat center center / contain;
}
.rspress-directive.note .rspress-directive-title::before {
content: "";
background: url("../assets/notes.svg") no-repeat center center / contain;
}
details.details {
position: relative;
}
summary.rspress-directive-title {
width: 100%;
}
details[open] > summary.rspress-directive-title::after {
content: "";
position: absolute;
left: 95%;
width: 24px;
height: 24px;
background: url("../assets/arrow-right.svg") no-repeat center center / contain;
}
details:not([open]) > summary.rspress-directive-title::after {
content: "";
position: absolute;
left: 95%;
width: 24px;
height: 24px;
background: url("../assets/arrow-down.svg") no-repeat center center / contain;
}
/* links */
[class*="link_"]:hover {
color: var(--rp-c-brand) ;
}
/* code links */
[class*="link_"]:hover > code {
color: var(--rp-c-brand) ;
}
/* remove arrow from links */
[class*="link_"]:after {
content: none ;
}
/* nav menu links */
.rspress-nav-menu > a > .rspress-nav-menu-item:hover {
color: var(--rp-c-brand) ;
}
/* nav menu active link */
.rspress-nav-menu-item[class*="activeItem_"] {
color: var(--rp-c-brand) ;
}
/* Edit page */
a[class^="editLink_"] {
color: var(--rp-c-text-2);
position: relative;
padding-left: 32px;
}
a[class^="editLink_"]::before {
content: "";
position: absolute;
left: 0;
top: 0;
width: 24px;
height: 24px;
background: url("../assets/edit-box.svg") no-repeat center center / contain;
}
/* Social links icon */
div.rspress-nav-appearance > div,
div[class^="social-links-icon_"] > div {
color: var(--rp-c-text-1) ;
background: linear-gradient(
to right,
var(--rp-c-brand) 50%,
var(--rp-c-divider-light) 50%
)
right bottom / 200% 100% ;
transition: background-position 0.45s cubic-bezier(0.625, 0.05, 0, 1), color
0.45s cubic-bezier(0.625, 0.05, 0, 1), transform 0.45s
cubic-bezier(0.625, 0.05, 0, 1) ;
}
@media (pointer: fine) {
div.rspress-nav-appearance > div:hover,
div[class^="social-links-icon_"] > div:hover {
color: #ffffff ;
background-position: left bottom ;
}
}
h1.rspress-doc-title {
margin-bottom: 1.5rem ;
}
h2.rspress-doc-outline {
margin-top: 2rem ;
margin-bottom: 0 ;
border: none ;
}
/* inline code in headers */
h1 > code,
h2 > code,
h3 > code,
h4 > code,
h5 > code,
h6 > code {
font-family: unset ;
background-color: unset ;
padding: unset ;
}
/* inline code outside of headers */
.rspress-doc :not(:is(pre, h1, h2, h3, h4, h5, h6)) > code {
font-size: 16px ;
}
/* inline code outside of headers */
.rspress-doc :not(:is(pre, div)) > code {
border-radius: var(--rp-radius) ;
}
/* code block titles */
.rspress-code-title {
font-family: var(--rp-font-family-mono) ;
}
/* header anchors (appear on hover) */
.header-anchor {
line-height: 1.2 ;
margin-left: -1em ;
}
/* mobile search button */
div[class^="mobileNavSearchButton_"] > img {
width: 24px;
height: 24px;
}