Skip to content

Commit

Permalink
fix: update the styles for sphinx cards (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 authored Oct 4, 2023
1 parent 582f348 commit ac1598f
Showing 1 changed file with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ Navigation column (according to side column)
.bd-main .bd-content .bd-article-container .bd-article {
padding-left: 1rem;
padding-top: 1rem;
padding-right: 1rem;
}
.bd-header .navbar-nav li a.nav-link {
color: #ddd;
Expand Down Expand Up @@ -748,6 +749,43 @@ kbd {
background-color: #f8f9fa;
}

/*
#####################################
icon, button, logo for small screen
#####################################
*/
@media screen and (max-width: 576px) {
html[data-theme="light"] .theme-switch-button span {
color: rgb(19, 18, 18) !important;
}
button.btn.version-switcher__button {
border-color: var(--pst-color-border);
color: var(--pst-color-text-base);
font-weight: 700;
}
button.btn.version-switcher__button {
border-color: var(--pst-color-border);
color: var(--pst-color-text-base);
}
button.version-switcher__button {
color: var(--pst-color-text-base);
}
.navbar-nav li a:focus,
.navbar-nav li a:hover,
.navbar-nav li.current > a {
color: var(--pst-color-text-base) !important;
font-weight: 700;
}
button,
input,
optgroup,
select,
textarea,
button:hover {
color: var(--pst-color-text-base);
}
}

.theme-switch-button span {
color: #f8f9fa;
}
Expand All @@ -757,6 +795,10 @@ kbd {
border-color: white;
}

.navbar-icon-links {
column-gap: 0.2rem;
}

.search-button-field {
color: white;
background-color: transparent;
Expand Down Expand Up @@ -941,6 +983,10 @@ blockquote {
font-family: var(--pst-font-family-base);
}

.sd-card-title {
font-family: var(--pst-font-family-base-system);
}

.bd-content .sd-card .sd-card-body,
.bd-content .sd-card .sd-card-footer,
.bd-content .sd-card .sd-card-text {
Expand Down

0 comments on commit ac1598f

Please sign in to comment.