Skip to content

Commit 951b0ca

Browse files
fix: alignment and styles for primary sidebar (#621)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 995bcce commit 951b0ca

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: alignment and styles for primary sidebar

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,20 @@ html[data-theme="dark"] #announcement_msg :after {
8080
}
8181

8282
.sidebar-cheatsheets {
83-
text-align: center;
83+
text-align: left;
8484
}
8585

8686
.sidebar-cheatsheets h4 {
87-
font-weight: var(--pst-sidebar-header-font-weight) !important;
88-
font-size: var(--pst-sidebar-header-font-size) !important;
89-
margin-bottom: 0.5rem;
87+
font-weight: 600 !important;
88+
font-size: 1rem !important;
89+
font-family: var(--ast-font-family-base);
90+
color: var(--ast-color-text);
9091
}
9192

9293
.sidebar-cheatsheets a {
9394
display: inline-flex;
9495
border: 0.5px solid var(--pst-color-border);
95-
padding: 0.25rem;
96+
padding: 4px 8px 4px 12px;
9697
max-width: 80%;
9798
}
9899

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
.whatsnew-sidebar {
22
/* border: 1px solid var(--ast-color-table-inner-border); */
3-
padding: 8px;
43
background-color: var(--pst-color-background);
54
/* border-radius: 10px; */
65
/* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
76
margin-bottom: 20px;
87
}
98

109
.whatsnew-sidebar h2 {
11-
font-size: 1em;
10+
font-size: 1rem;
1211
font-family: var(--ast-font-family-base);
1312
margin-bottom: 10px;
1413
margin-top: 10px;
1514
padding: 4px;
1615
}
1716

1817
.whatsnew-sidebar h3 {
19-
font-size: 1em;
18+
font-size: 0.75rem;
2019
font-family: var(--ast-font-family-base);
2120
margin: 8px 4px;
2221
padding: 4px 8px;
@@ -43,12 +42,12 @@
4342

4443
.whatsnew-sidebar ul {
4544
list-style: none;
46-
padding-left: 12px; /* Remove default padding */
4745
line-height: 30px;
46+
padding-inline-start: 0rem;
4847
}
4948

5049
.whatsnew-sidebar li {
51-
padding: 4px 24px 4px 32px;
50+
padding: 4px 8px 4px 12px;
5251
}
5352

5453
.whatsnew-sidebar li:hover {

0 commit comments

Comments
 (0)