Skip to content

Commit e7467f6

Browse files
Bump version 0.5.2
1 parent 309f4fd commit e7467f6

File tree

2 files changed

+65
-7
lines changed

2 files changed

+65
-7
lines changed

src/ansys_sphinx_theme/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
from pathlib import Path
44

5-
__version__ = "0.5.1"
5+
__version__ = "0.5.2"
66

77
# get location of this directory
88
_this_path = os.path.dirname(os.path.realpath(__file__))

src/ansys_sphinx_theme/static/css/ansys_sphinx_theme.css

Lines changed: 64 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ html[data-theme="light"] {
6464
--pst-color-text-muted: rgb(26, 24, 24);
6565
--pst-color-border: #c9c9c9;
6666
--pst-color-shadow: rgb(216, 216, 216);
67+
--pst-color-info: var(--pst-color-link);
6768

6869
/*****************************************************************************
6970
* depth colors
@@ -110,6 +111,7 @@ html[data-theme="dark"] {
110111
--pst-color-on-background: rgb(0, 0, 0);
111112
--pst-color-surface: rgb(41, 41, 41);
112113
--pst-color-on-surface: rgb(55, 55, 55);
114+
--pst-color-info: var(--pst-color-link);
113115

114116
/*****************************************************************************
115117
* extensions
@@ -135,11 +137,11 @@ h1, h2 {
135137
}
136138

137139
.admonition, div.admonition{
138-
background-color:var( --pst-color-on-surface);
140+
background-color: var( --pst-color-on-surface);
139141
}
140142

141143
.bd-header.navbar-light#navbar-main .navbar-nav li a.nav-link {
142-
color: #a2a2a2;
144+
color: #ddd;
143145
}
144146

145147
.docutils {
@@ -213,6 +215,13 @@ p.rubric {
213215
font-style: var(--pst-font-family-base-system);
214216
}
215217

218+
.sphinx-tabs-tab[aria-selected="true"] {
219+
background-color: var(--pst-color-background);
220+
}
221+
222+
.sphinx-tabs-panel {
223+
background: var(--pst-color-background);
224+
}
216225

217226
/*
218227
###############
@@ -514,6 +523,7 @@ Right side toctree color and font
514523

515524
.toc-h2 {
516525
font-size: 0.98rem;
526+
padding: 0.05em;
517527
}
518528

519529
.toc-h3 {
@@ -600,16 +610,64 @@ Left side toc-tree hovering
600610

601611
nav.bd-links .active:hover>a {
602612
font-weight: bold;
603-
color: var(--pst-color-link);
604-
border-left: 2px solid var(--pst-color-link);
613+
color: var(--pst-color-text-base);
614+
border-left: 2px solid var(--pst-color-text-base);
605615
}
606616

607617
nav.bd-links .active>a {
608618
font-weight: bold;
609-
color: var(--pst-color-link);
619+
color: var(--pst-color-text-muted);
620+
border-left: 2px solid var(--pst-color-text-base);
610621
}
611622

612623
nav.bd-links li>a:hover {
613624
font-weight: 900;
614-
color: var(--pst-color-text-muted);
625+
color: var(--pst-color-link);
626+
}
627+
628+
/*
629+
######################
630+
Search bar button text
631+
######################
632+
*/
633+
634+
button, input, optgroup, select, textarea {
635+
color: var(--pst-color-text-base)!important;
636+
}
637+
638+
/*
639+
##############################
640+
image padding before and after
641+
##############################
642+
*/
643+
644+
img {
645+
padding-top: 1em;
646+
padding-bottom: 1em;
647+
}
648+
649+
img.logo__image {
650+
padding-top: 0rem;
651+
padding-bottom: 0rem;
652+
}
653+
654+
/*
655+
##########################
656+
Nav-bar entity right side.
657+
##########################
658+
*/
659+
660+
nav.bd-links li>a {
661+
color: var(--pst-color-link);
662+
font-size: .98rem;
663+
}
664+
665+
html[data-theme="light"] .highlight pre {
666+
line-height: 125%;
667+
font-size: 0.98em;
668+
}
669+
670+
html[data-theme="dark"] .highlight pre {
671+
line-height: 125%;
672+
font-size: 0.98em;
615673
}

0 commit comments

Comments
 (0)