Skip to content

Commit 599519d

Browse files
committed
fix(styles): fix regressions in operations on smaller screens
Refs #8940
1 parent f308eb3 commit 599519d

File tree

4 files changed

+28
-24
lines changed

4 files changed

+28
-24
lines changed

src/style/_form.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ select
3030
.opblock-body select
3131
{
3232
min-width: 230px;
33-
@media (max-width: 768px)
33+
@container (max-width: 768px)
3434
{
3535
min-width: 180px;
3636
}
37-
@media (max-width: 640px)
37+
@container (max-width: 640px)
3838
{
3939
width: 100%;
4040
min-width: 100%;
@@ -59,7 +59,7 @@ input[type=file]
5959
{
6060
line-height: 1;
6161

62-
@media (max-width: 768px) {
62+
@container (max-width: 768px) {
6363
max-width: 175px;
6464
}
6565
}

src/style/_layout.scss

+19-15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
.swagger-ui {
2+
container-type: inline-size;
3+
}
4+
5+
16
.wrapper
27
{
38
width: 100%;
@@ -107,7 +112,7 @@
107112
font-weight: 400;
108113
}
109114

110-
@media (max-width: 640px) {
115+
@container (max-width: 640px) {
111116
small
112117
{
113118
flex: 1;
@@ -305,7 +310,7 @@
305310
{
306311
font-size: 14px;
307312
font-weight: bold;
308-
@media (max-width: 768px) {
313+
@container (max-width: 768px) {
309314
font-size: 12px;
310315
}
311316

@@ -326,7 +331,7 @@
326331
.opblock-summary-path__deprecated
327332
{
328333
font-size: 16px;
329-
@media (max-width: 768px) {
334+
@container (max-width: 768px) {
330335
font-size: 12px;
331336
}
332337

@@ -342,13 +347,12 @@
342347

343348
.opblock-summary-path
344349
{
345-
flex-shrink: 0;
350+
flex-shrink: 1;
346351
}
347352

348-
@media (max-width: 640px) {
353+
@container (max-width: 640px) {
349354
.opblock-summary-path
350355
{
351-
flex-shrink: 1;
352356
max-width: 100%;
353357
}
354358
}
@@ -375,6 +379,7 @@
375379
.opblock-summary-path-description-wrapper
376380
{
377381
display: flex;
382+
flex-direction: row;
378383
align-items: center;
379384
flex-wrap: wrap;
380385
gap: 0px 10px;
@@ -384,12 +389,11 @@
384389
width: 100%;
385390
}
386391

387-
@media (max-width: 550px) {
388-
.opblock-summary-path-description-wrapper
389-
{
390-
flex-direction: column;
391-
align-items: start;
392-
}
392+
@container (max-width: 550px) {
393+
.opblock-summary-path-description-wrapper {
394+
flex-direction: column;
395+
align-items: flex-start;
396+
}
393397
}
394398

395399
.opblock-summary
@@ -837,16 +841,16 @@
837841
justify-content: flex-end;
838842
}
839843

840-
/*
844+
/*
841845
Target Authorize Button in schemes wrapper
842846
This was added here to fix responsiveness issues with the authorize button
843847
within the schemes wrapper without affecting other instances of it's usage
844848
*/
845-
.auth-wrapper
849+
.auth-wrapper
846850
{
847851
flex: none;
848852
justify-content: none;
849-
853+
850854
.authorize
851855
{
852856
padding-right: 20px;

src/style/_mixins.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ $browser-context: 16;
127127

128128
@mixin maxHeight($height)
129129
{
130-
@media (max-height: $height)
130+
@container (max-height: $height)
131131
{
132132
@content;
133133
}
@@ -138,23 +138,23 @@ $browser-context: 16;
138138
{
139139
@if $class == tablet
140140
{
141-
@media (min-width: 768px) and (max-width: 1024px)
141+
@container (min-width: 768px) and (max-width: 1024px)
142142
{
143143
@content;
144144
}
145145
}
146146

147147
@else if $class == mobile
148148
{
149-
@media (min-width: 320px) and (max-width : 736px)
149+
@container (min-width: 320px) and (max-width : 736px)
150150
{
151151
@content;
152152
}
153153
}
154154

155155
@else if $class == desktop
156156
{
157-
@media (min-width: 1400px)
157+
@container (min-width: 1400px)
158158
{
159159
@content;
160160
}

src/style/_topbar.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
flex-wrap: wrap;
1111
gap: 10px;
1212
}
13-
@media (max-width: 550px) {
13+
@container (max-width: 550px) {
1414
.topbar-wrapper
1515
{
1616
flex-direction: column;
@@ -104,7 +104,7 @@
104104
@include text_headline($topbar-download-url-button-font-color);
105105
}
106106
}
107-
@media (max-width: 550px) {
107+
@container (max-width: 550px) {
108108
.download-url-wrapper
109109
{
110110
width: 100%;

0 commit comments

Comments
 (0)