Skip to content

Commit

Permalink
fix: button position on portrait screens
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelTaranto committed Oct 8, 2024
1 parent ba53046 commit dfd53fe
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 33 deletions.
8 changes: 4 additions & 4 deletions ui/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1903,10 +1903,6 @@ button[disabled] {
pointer-events: none;
}

@media (orientation: portrait) {
@import "./portrait.scss";
}

.external_compliance_state {
footer: {
margin-top: 15px;
Expand All @@ -1929,3 +1925,7 @@ button[disabled] {
margin-right: 0px;
};
}

@media (orientation: portrait) {
@import "./portrait.scss";
}
9 changes: 9 additions & 0 deletions ui/css/portrait.scss
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,15 @@ main {
}
}

.external_compliance_state {
main {
margin-bottom: 4vh;
}
footer {
margin-top: 0;
}
}

.maintenance_state,
.locked_state {
header {
Expand Down
65 changes: 36 additions & 29 deletions ui/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3445,6 +3445,36 @@ button[disabled] {
pointer-events: none;
}

.external_compliance_state {
footer-margin-top: 15px;
}

.external_compliance_state footer {
margin-top: 5vh;
}

.external-validation-info {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.external-validation-info div {
margin-right: 15px;
}
.external-validation-info div:last-child {
margin-right: 0px;
}

@media (orientation: portrait) {
header {
padding: 2vh;
Expand Down Expand Up @@ -3947,6 +3977,12 @@ button[disabled] {
.info-no-image main {
margin-bottom: 10vh;
}
.external_compliance_state main {
margin-bottom: 4vh;
}
.external_compliance_state footer {
margin-top: 0;
}
.maintenance_state header,
.locked_state header {
height: 36vh;
Expand Down Expand Up @@ -4284,32 +4320,3 @@ button[disabled] {
gap: 1vh;
}
}
.external_compliance_state {
footer-margin-top: 15px;
}

.external_compliance_state footer {
margin-top: 5vh;
}

.external-validation-info {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.external-validation-info div {
margin-right: 15px;
}
.external-validation-info div:last-child {
margin-right: 0px;
}

0 comments on commit dfd53fe

Please sign in to comment.