File tree Expand file tree Collapse file tree 4 files changed +47
-17
lines changed
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css Expand file tree Collapse file tree 4 files changed +47
-17
lines changed Original file line number Diff line number Diff line change
1
+ fix: style for smaller media
Original file line number Diff line number Diff line change 56
56
--pst-table-font-size : 14px ;
57
57
--pst-table-header-font-size : 12px ;
58
58
59
+ --pst-sidebar-font-size-mobile : 12px ;
60
+ --ast-nav-link-font-size : 14px ;
61
+
59
62
/**
60
63
* sphinx design font sizes
61
64
*/
Original file line number Diff line number Diff line change 1
1
@import "ansys-sphinx-theme-variable.css" ;
2
+
2
3
.results {
3
4
display : flex;
4
5
flex-direction : column;
@@ -136,24 +137,10 @@ html[data-theme="light"] .highlight {
136
137
.bd-search {
137
138
gap : 8px ;
138
139
background-color : var (--ast-search-bar-enable-background );
139
- border : 1 px solid var (--ast-search-bar-enable-border );
140
+ border : 0 px solid var (--ast-search-bar-enable-border );
140
141
margin-bottom : 0px ;
141
142
}
142
143
143
- @media (max-width : 768px ) {
144
- .form-control : focus ,
145
- .form-control : focus-visible ,
146
- .form-control {
147
- width : 100px ;
148
- }
149
- .bd-search input .expanded {
150
- width : 200px ;
151
- }
152
- .bd-search .search-button__kbd-shortcut {
153
- display : none;
154
- }
155
- }
156
-
157
144
.bd-search input .expanded {
158
145
width : 600px ;
159
146
}
@@ -166,3 +153,21 @@ html[data-theme="light"] .highlight {
166
153
opacity : 0.5 ;
167
154
transition : opacity 0.3s ease;
168
155
}
156
+
157
+ @media (max-width : 768px ) {
158
+ .bd-search input .expanded {
159
+ width : 100px ;
160
+ }
161
+
162
+ .form-control {
163
+ width : 50px ;
164
+ }
165
+
166
+ .result {
167
+ width : 100px ;
168
+ }
169
+
170
+ .bd-search .search-button__kbd-shortcut {
171
+ display : none;
172
+ }
173
+ }
Original file line number Diff line number Diff line change 22
22
margin-top : unset;
23
23
}
24
24
25
+ @media (max-width : 959.98px ) {
26
+ .bd-sidebar-primary {
27
+ flex-grow : 0.75 ;
28
+ height : 100vh ;
29
+ left : 0 ;
30
+ margin-left : -75% ;
31
+ max-height : 100vh ;
32
+ max-width : 350px ;
33
+ position : fixed;
34
+ top : 0 ;
35
+ transition :
36
+ visibility 0.2s ease-out,
37
+ margin 0.2s ease-out;
38
+ visibility : hidden;
39
+ width : 75% ;
40
+ z-index : 1055 ;
41
+ }
42
+ }
43
+
25
44
.sidebar-secondary-item {
26
45
border : none;
27
46
}
@@ -730,8 +749,10 @@ button.btn.version-switcher__button:hover {
730
749
max-width : 100% ;
731
750
}
732
751
733
- .bd-sidebar-primary {
734
- width : 20% ;
752
+ @media (min-width : 960px ) {
753
+ .bd-sidebar-primary {
754
+ width : 20% ;
755
+ }
735
756
}
736
757
737
758
@media (min-width : 960px ) {
You can’t perform that action at this time.
0 commit comments