Skip to content

Commit 7a5d381

Browse files
Abhinav-ghjorgepilotoRobPasMue
committed
fix: use ansys-sphinx-theme variables in CSS files (#537)
Co-authored-by: Jorge Martínez <[email protected]> Co-authored-by: Jorge Martinez <[email protected]> Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent a07ed6a commit 7a5d381

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
## Individual Contributors
77

8+
* [Abhinav Deshpande](https://github.com/Abhinav-gh)
89
* [Alexander Kaszynski](https://github.com/akaszynski)
910
* [Andy Grigg](https://github.com/Andy-Grigg)
1011
* [Dipin Nair](https://github.com/dipinknair)

doc/changelog.d/537.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use ansys-sphinx-theme variables in CSS files

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/breadcrumbs.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ html[data-theme="dark"] #announcement_msg :after {
7676
}
7777

7878
#announcement_msg a {
79-
color: #1e6ddc;
79+
color: var(--ast-color-link);
8080
}
8181

8282
.sidebar-cheatsheets {

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/pydata-sphinx-theme-custom.css

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ nav.bd-links li > a:hover {
6363
color: var(--ast-sidebar-primary-text);
6464
background: var(--ast-sidebar-hover-background);
6565
box-shadow: 1px 1px 2px 0px var(--ast-sidebar-active-background);
66-
border-radius: 4px;
66+
border-radius: var(--ast-sphinx-design-border-radius);
6767
text-decoration: none;
6868
}
6969

@@ -73,7 +73,7 @@ nav.bd-links li > a.current {
7373
background: var(--ast-sidebar-active-background);
7474
text-decoration: none;
7575
box-shadow: 1px 1px 2px 0px var(--ast-sidebar-active-background);
76-
border-radius: 4px;
76+
border-radius: var(--ast-sphinx-design-border-radius);
7777
font-weight: bold;
7878
}
7979

@@ -91,7 +91,7 @@ nav.bd-links .current > a {
9191
background: var(--ast-sidebar-active-background);
9292
text-decoration: none;
9393
box-shadow: 1px 1px 2px 0px var(--ast-sidebar-active-background);
94-
border-radius: 4px;
94+
border-radius: var(--ast-sphinx-design-border-radius);
9595
font-weight: bold;
9696
}
9797
/**
@@ -119,16 +119,16 @@ nav.bd-links .current > a {
119119
}
120120

121121
.toc-h2 {
122-
font-size: 14px;
122+
font-size: var(--pst-table-font-size);
123123
padding: 0.05em;
124124
}
125125

126126
.toc-h3 {
127-
font-size: 14px;
127+
font-size: var(--pst-table-font-size);
128128
}
129129

130130
.toc-h4 {
131-
font-size: 14px;
131+
font-size: var(--pst-table-font-size);
132132
}
133133

134134
.toc-entry a.nav-link:hover {
@@ -349,8 +349,7 @@ strong {
349349
} /* hide the class 'descclassname' for autoapi */
350350

351351
.sig {
352-
font-family: "Consolas", "Menlo", "DejaVu Sans Mono",
353-
"Bitstream Vera Sans Mono", monospace;
352+
font-family: var(--pst-font-family-monospace);
354353
}
355354

356355
.sig-name.descname {
@@ -491,7 +490,7 @@ a > code {
491490

492491
code.literal {
493492
color: var(--ast-color-inline-code);
494-
font-family: "open sans", sans-serif;
493+
font-family: var(--ast-sphinx-design-font-family);
495494
}
496495

497496
nav.bd-links li > a:focus-visible,
@@ -675,7 +674,7 @@ nav.contents p {
675674
color: var(--ast-navbar-color);
676675
font-weight: 600;
677676
font-size: var(--bs-nav-link-font-size);
678-
border-radius: 4px;
677+
border-radius: var(--ast-sphinx-design-border-radius);
679678
border-color: var(--ast-dropdown-header-border);
680679
}
681680

@@ -689,7 +688,7 @@ nav.contents p {
689688
color: var(--ast-navbar-color);
690689
font-size: var(--bs-nav-link-font-size);
691690
font-weight: 600;
692-
border-radius: 4px;
691+
border-radius: var(--ast-sphinx-design-border-radius);
693692
border-color: var(--ast-dropdown-header-border);
694693
}
695694

@@ -707,7 +706,7 @@ nav.contents p {
707706
height: 40px;
708707
padding: 0px 16px;
709708
text-decoration: none;
710-
border-radius: 4px;
709+
border-radius: var(--ast-sphinx-design-border-radius);
711710
}
712711

713712
button.btn.version-switcher__button {

0 commit comments

Comments
 (0)