Skip to content

Commit 287fd07

Browse files
fix: migrate toctree styles
1 parent c4b05bf commit 287fd07

File tree

2 files changed

+37
-36
lines changed

2 files changed

+37
-36
lines changed

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

-36
Original file line numberDiff line numberDiff line change
@@ -101,42 +101,6 @@ html[data-theme="dark"] .highlight pre {
101101
color: var(--pst-color-text-base) !important;
102102
}
103103

104-
/*
105-
#################################
106-
Right side toctree color and font
107-
#################################
108-
*/
109-
.toc-entry a.nav-link {
110-
padding: 0.125rem 1.5rem;
111-
color: var(--pst-color-link);
112-
}
113-
114-
.toc-entry a.nav-link.active {
115-
font-weight: bold;
116-
color: var(--pst-color-text-base);
117-
background-color: transparent;
118-
border-left: 2px solid var(--pst-color-text-muted);
119-
}
120-
121-
.toc-h2 {
122-
font-size: 0.98rem;
123-
padding: 0.05em;
124-
}
125-
126-
.toc-h3 {
127-
font-size: 0.96rem;
128-
}
129-
130-
.toc-h4 {
131-
font-size: 0.9rem;
132-
}
133-
134-
.toc-entry a.nav-link:hover {
135-
color: var(--pst-color-link);
136-
text-decoration: none;
137-
font-weight: 600;
138-
}
139-
140104
/*
141105
###########
142106
Directives

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

+37
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ html[data-theme="light"] #pst-back-to-top {
333333
color: var(--pst-color-sig);
334334
}
335335

336+
/* highlighted objects inside the api reference */
336337
dt:target,
337338
span.highlighted {
338339
background-color: var(--pst-color-codecell) !important;
@@ -344,3 +345,39 @@ dl.class dl.py {
344345
margin-top: 2.5em;
345346
margin-bottom: 2.5em;
346347
}
348+
349+
/*
350+
#################################
351+
Right side toctree color and font
352+
#################################
353+
*/
354+
.toc-entry a.nav-link {
355+
padding: 0.125rem 1.5rem;
356+
color: var(--pst-color-link);
357+
}
358+
359+
.toc-entry a.nav-link.active {
360+
font-weight: bold;
361+
color: var(--pst-color-text-base);
362+
background-color: transparent;
363+
border-left: 2px solid var(--pst-color-text-muted);
364+
}
365+
366+
.toc-h2 {
367+
font-size: 0.98rem;
368+
padding: 0.05em;
369+
}
370+
371+
.toc-h3 {
372+
font-size: 0.96rem;
373+
}
374+
375+
.toc-h4 {
376+
font-size: 0.9rem;
377+
}
378+
379+
.toc-entry a.nav-link:hover {
380+
color: var(--pst-color-link);
381+
text-decoration: none;
382+
font-weight: 600;
383+
}

0 commit comments

Comments
 (0)