Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: added media queries for validator and sentence box
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Close authored and Alejandro Close committed Sep 22, 2019
1 parent 5029535 commit 88b7fb9
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions web/css/review-form.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
/* media queries */

@media screen and (min-width: 1025px) {
.validator{
--validator-height: 6.6rem;
}

.sentence-box{
--sentence-box-height: 6rem;
--sentence-box-font-size: var(--base-font-size);
}

.validator .button-group button {
--button-padding: .7rem 1.3rem;
}
}

@media screen and (max-width: 1024px) {
.validator{
--validator-height: 10.5rem;
}

.sentence-box{
--sentence-box-height: 10.25rem;
--sentence-box-font-size: 1.5rem;
}

.validator .button-group button {
--button-padding: 1.75rem;
}
}

.validator {
--validator-height: 9.5rem;
height: var(--validator-height);
display: flex;
flex-direction: row;
Expand All @@ -8,14 +39,14 @@
}

.sentence-box {
height: 9.25rem;
height: var(--sentence-box-height);
border: 1px solid var(--grey-color);
flex-basis: 100%;
line-height: 1rem;
justify-content: center;
align-items: center;
display: flex;
font-size: 1.5rem;
font-size: var(--sentence-box-font-size)
}

.validator li {
Expand All @@ -35,7 +66,7 @@
border: 1px solid var(--grey-color);
font-size: 1.3em;
margin: 0.2em;
padding: 1.5rem;
padding: var(--button-padding);
}

.validator .button-group button.secondary.yes {
Expand Down

0 comments on commit 88b7fb9

Please sign in to comment.