Skip to content

Commit ac1598f

Browse files
fix: update the styles for sphinx cards (#309)
1 parent 582f348 commit ac1598f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ Navigation column (according to side column)
628628
.bd-main .bd-content .bd-article-container .bd-article {
629629
padding-left: 1rem;
630630
padding-top: 1rem;
631+
padding-right: 1rem;
631632
}
632633
.bd-header .navbar-nav li a.nav-link {
633634
color: #ddd;
@@ -748,6 +749,43 @@ kbd {
748749
background-color: #f8f9fa;
749750
}
750751

752+
/*
753+
#####################################
754+
icon, button, logo for small screen
755+
#####################################
756+
*/
757+
@media screen and (max-width: 576px) {
758+
html[data-theme="light"] .theme-switch-button span {
759+
color: rgb(19, 18, 18) !important;
760+
}
761+
button.btn.version-switcher__button {
762+
border-color: var(--pst-color-border);
763+
color: var(--pst-color-text-base);
764+
font-weight: 700;
765+
}
766+
button.btn.version-switcher__button {
767+
border-color: var(--pst-color-border);
768+
color: var(--pst-color-text-base);
769+
}
770+
button.version-switcher__button {
771+
color: var(--pst-color-text-base);
772+
}
773+
.navbar-nav li a:focus,
774+
.navbar-nav li a:hover,
775+
.navbar-nav li.current > a {
776+
color: var(--pst-color-text-base) !important;
777+
font-weight: 700;
778+
}
779+
button,
780+
input,
781+
optgroup,
782+
select,
783+
textarea,
784+
button:hover {
785+
color: var(--pst-color-text-base);
786+
}
787+
}
788+
751789
.theme-switch-button span {
752790
color: #f8f9fa;
753791
}
@@ -757,6 +795,10 @@ kbd {
757795
border-color: white;
758796
}
759797

798+
.navbar-icon-links {
799+
column-gap: 0.2rem;
800+
}
801+
760802
.search-button-field {
761803
color: white;
762804
background-color: transparent;
@@ -941,6 +983,10 @@ blockquote {
941983
font-family: var(--pst-font-family-base);
942984
}
943985

986+
.sd-card-title {
987+
font-family: var(--pst-font-family-base-system);
988+
}
989+
944990
.bd-content .sd-card .sd-card-body,
945991
.bd-content .sd-card .sd-card-footer,
946992
.bd-content .sd-card .sd-card-text {

0 commit comments

Comments
 (0)