Skip to content

Commit

Permalink
ENH: Minor updates and tweaks to Dark theme CSS (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau committed Apr 18, 2022
1 parent b4ad086 commit a716ab7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/pydata_sphinx_theme/assets/styles/_api.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ table.field-list {
}

// change target color for dark theme
dt:target {
dt:target,
span.highlighted {
background-color: var(--pst-color-target);
}
2 changes: 1 addition & 1 deletion src/pydata_sphinx_theme/assets/styles/_color.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ html[data-theme="dark"] {
// links
--pst-color-link: var(--pst-color-primary);
--pst-color-link-hover: rgb(170, 103, 196);
--pst-color-target: rgb(117, 148, 195);
--pst-color-target: rgb(71, 39, 0);

// headerlinks (the anchors at the end of titles)
--pst-color-headerlink: rgb(221, 90, 90);
Expand Down
4 changes: 3 additions & 1 deletion src/pydata_sphinx_theme/assets/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ footer {
border-radius: 0.2rem;
border: 1px solid var(--pst-color-search-border);
padding-left: 35px;
color: var(--pst-color-text-base);

// Inner-text of the search bar
&::placeholder {
Expand All @@ -131,6 +132,7 @@ footer {
&:active,
&:focus {
background-color: var(--pst-color-search-background);
color: var(--pst-color-search);
}
}
}
Expand Down Expand Up @@ -545,7 +547,7 @@ nav.bd-links {
flex-direction: column;

@include media-breakpoint-up(md) {
border-right: 1px solid rgba(0, 0, 0, 0.1);
border-right: 1px solid var(--pst-color-sidebar-border);

@supports (position: -webkit-sticky) or (position: sticky) {
position: -webkit-sticky;
Expand Down

0 comments on commit a716ab7

Please sign in to comment.