Skip to content

Commit

Permalink
fix(styles): fix regressions in operations on smaller screens
Browse files Browse the repository at this point in the history
Refs #8940
  • Loading branch information
char0n committed Dec 14, 2023
1 parent f308eb3 commit 599519d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
6 changes: 3 additions & 3 deletions src/style/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ select
.opblock-body select
{
min-width: 230px;
@media (max-width: 768px)
@container (max-width: 768px)
{
min-width: 180px;
}
@media (max-width: 640px)
@container (max-width: 640px)
{
width: 100%;
min-width: 100%;
Expand All @@ -59,7 +59,7 @@ input[type=file]
{
line-height: 1;

@media (max-width: 768px) {
@container (max-width: 768px) {
max-width: 175px;
}
}
Expand Down
34 changes: 19 additions & 15 deletions src/style/_layout.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.swagger-ui {
container-type: inline-size;
}


.wrapper
{
width: 100%;
Expand Down Expand Up @@ -107,7 +112,7 @@
font-weight: 400;
}

@media (max-width: 640px) {
@container (max-width: 640px) {
small
{
flex: 1;
Expand Down Expand Up @@ -305,7 +310,7 @@
{
font-size: 14px;
font-weight: bold;
@media (max-width: 768px) {
@container (max-width: 768px) {
font-size: 12px;
}

Expand All @@ -326,7 +331,7 @@
.opblock-summary-path__deprecated
{
font-size: 16px;
@media (max-width: 768px) {
@container (max-width: 768px) {
font-size: 12px;
}

Expand All @@ -342,13 +347,12 @@

.opblock-summary-path
{
flex-shrink: 0;
flex-shrink: 1;
}

@media (max-width: 640px) {
@container (max-width: 640px) {
.opblock-summary-path
{
flex-shrink: 1;
max-width: 100%;
}
}
Expand All @@ -375,6 +379,7 @@
.opblock-summary-path-description-wrapper
{
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
gap: 0px 10px;
Expand All @@ -384,12 +389,11 @@
width: 100%;
}

@media (max-width: 550px) {
.opblock-summary-path-description-wrapper
{
flex-direction: column;
align-items: start;
}
@container (max-width: 550px) {
.opblock-summary-path-description-wrapper {
flex-direction: column;
align-items: flex-start;
}
}

.opblock-summary
Expand Down Expand Up @@ -837,16 +841,16 @@
justify-content: flex-end;
}

/*
/*
Target Authorize Button in schemes wrapper
This was added here to fix responsiveness issues with the authorize button
within the schemes wrapper without affecting other instances of it's usage
*/
.auth-wrapper
.auth-wrapper
{
flex: none;
justify-content: none;

.authorize
{
padding-right: 20px;
Expand Down
8 changes: 4 additions & 4 deletions src/style/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ $browser-context: 16;

@mixin maxHeight($height)
{
@media (max-height: $height)
@container (max-height: $height)
{
@content;
}
Expand All @@ -138,23 +138,23 @@ $browser-context: 16;
{
@if $class == tablet
{
@media (min-width: 768px) and (max-width: 1024px)
@container (min-width: 768px) and (max-width: 1024px)
{
@content;
}
}

@else if $class == mobile
{
@media (min-width: 320px) and (max-width : 736px)
@container (min-width: 320px) and (max-width : 736px)
{
@content;
}
}

@else if $class == desktop
{
@media (min-width: 1400px)
@container (min-width: 1400px)
{
@content;
}
Expand Down
4 changes: 2 additions & 2 deletions src/style/_topbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
flex-wrap: wrap;
gap: 10px;
}
@media (max-width: 550px) {
@container (max-width: 550px) {
.topbar-wrapper
{
flex-direction: column;
Expand Down Expand Up @@ -104,7 +104,7 @@
@include text_headline($topbar-download-url-button-font-color);
}
}
@media (max-width: 550px) {
@container (max-width: 550px) {
.download-url-wrapper
{
width: 100%;
Expand Down

0 comments on commit 599519d

Please sign in to comment.