Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 27 additions & 8 deletions packages/theme/src/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,18 @@ div[class^="menuItemActive_"]:hover {
background-color: var(--ck-foreground-primary) !important;
}

/* Spacing between menu items */
div[class*="sidebarContent_"] > nav {
display: grid;
gap: 8px;
padding-top: 16px;
}

/* Spacing between sections */
.rspress-sidebar-section + .rspress-sidebar-section {
margin-top: 16px !important;
}

.rspress-sidebar-item > a > div {
margin-top: 0 !important;
}
Expand All @@ -302,15 +314,11 @@ div[class^="menuItemActive_"]:hover {

.rspress-sidebar-section {
margin-top: 0 !important;
margin-bottom: 16px !important;
margin-bottom: 0px !important;
margin-left: 0 !important;
padding-left: 0 !important;
}

.rspress-sidebar-section:first-of-type {
margin-top: 16px !important;
}

.rspress-sidebar-section h2 {
margin-left: 0 !important;
padding-left: 24px !important;
Expand Down Expand Up @@ -374,8 +382,7 @@ div[class^="collapseContainer_"]:hover {

/* Group collapse hover */
.rspress-sidebar-collapse:hover {
color: var(--rp-c-brand) !important;
background-color: transparent !important;
background-color: var(--ck-foreground-primary) !important;
}

/* Sidebar active item disable bg */
Expand Down Expand Up @@ -964,6 +971,17 @@ details:not([open]) > summary.rspress-directive-title::after {
color: var(--rp-c-brand) !important;
}

/* code links in rspress-doc */
.rspress-doc a > code {
color: var(--rp-c-text-1) !important;
text-decoration: underline !important;
}

/* inline links */
div[class*="inline-link_"] {
text-decoration: underline !important;
}

/* remove arrow from links */
[class*="link_"]:after {
content: none !important;
Expand All @@ -990,7 +1008,7 @@ a[class^="editLink_"]::before {
content: "";
position: absolute;
left: 0;
top: 0;
top: -2px;
width: 24px;
height: 24px;
background: url("../assets/edit-box.svg") no-repeat center center / contain;
Expand Down Expand Up @@ -1044,6 +1062,7 @@ h6 > code {
/* inline code outside of headers */
.rspress-doc :not(:is(pre, h1, h2, h3, h4, h5, h6)) > code {
font-size: 16px !important;
padding: 2px 4px !important;
}

/* inline code outside of headers */
Expand Down