Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
170 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 17 additions & 11 deletions
28
src/pydata_sphinx_theme/assets/styles/components/_switcher-theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
// the icons for theme change | ||
.theme-switch-button { | ||
// to overide bootstrap settings | ||
// overide bootstrap settings | ||
border-color: var(--pst-color-on-background); | ||
padding: 0.25rem 0.5rem; | ||
font-size: 1.1rem; | ||
margin: 0 -0.5rem; | ||
|
||
a { | ||
color: var(--pst-color-text-muted); | ||
display: none; | ||
color: var(--pst-color-text-muted); | ||
padding: 0.25rem 0.12rem; | ||
&:hover, | ||
&:active, | ||
&:focus { | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
&:hover { | ||
background-color: var(--pst-color-on-surface); | ||
border-color: var(--pst-color-on-background); | ||
|
||
&:hover, | ||
&:active { | ||
// overide bootstrap settings | ||
background-color: var(--pst-color-on-surface) !important; | ||
border-color: var(--pst-color-on-background) !important; | ||
a { | ||
color: var(--pst-color-text-base); | ||
color: var(--pst-color-text-muted); | ||
} | ||
} | ||
} | ||
|
||
html[data-mode="auto"] .theme-switch-button a[data-mode="auto"] { | ||
display: block; | ||
display: flex; | ||
} | ||
html[data-mode="light"] .theme-switch-button a[data-mode="light"] { | ||
display: block; | ||
display: flex; | ||
} | ||
html[data-mode="dark"] .theme-switch-button a[data-mode="dark"] { | ||
display: block; | ||
display: flex; | ||
} |
8 changes: 6 additions & 2 deletions
8
src/pydata_sphinx_theme/assets/styles/components/_switcher-version.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<div class="dropdown" id="version_switcher"> | ||
<button class="btn btn-sm navbar-btn dropdown-toggle" data-toggle="dropdown" id="version_switcher_button" type="button"> | ||
<div class="version-switcher__container dropdown"> | ||
<button class="version-switcher__button btn btn-sm navbar-btn dropdown-toggle" data-toggle="dropdown" type="button"> | ||
0.7.1 | ||
<!-- this text may get changed later by javascript --> | ||
<span class="caret"> | ||
</span> | ||
</button> | ||
<div aria-labelledby="version_switcher_button" class="dropdown-menu list-group-flush py-0" id="version_switcher_menu"> | ||
<div aria-labelledby="version-switcher__button" class="version-switcher__menu dropdown-menu list-group-flush py-0"> | ||
<!-- dropdown will be populated by javascript on page load --> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.