Skip to content

Commit

Permalink
Style test
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jul 9, 2024
1 parent e1d59b1 commit 0ebd746
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions static/css/quiz_sub.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ body {

input[type="text"] {
margin-top: 20px;
width: 60%;
width: 50%;
height: 3em;
font-size: 1.75em;
text-align: center;
Expand Down Expand Up @@ -157,6 +157,13 @@ table tr td:nth-child(2) {
height: clamp(2em, calc(2em + 0.4vw), 3em);
line-height: clamp(2em, calc(2em + 0.4vw), 3em);
font-size: clamp(1.5em, calc(1.5em + 0.4vw), 3em);
margin: 3px;
}

input[type="text"] {
width: 65%;
height: 2.5em;
font-size: 1.25em;
}
}

Expand All @@ -179,7 +186,7 @@ table tr td:nth-child(2) {

@media (orientation: portrait) and (max-width: 768px) {
.source {
font-size: clamp(1em, calc(1.4em + 0.8vw), 3em);
font-size: clamp(1em, calc(1em + 0.8vw), 3em);
}

.key {
Expand All @@ -191,10 +198,11 @@ table tr td:nth-child(2) {
height: clamp(2em, calc(2em + 0.4vw), 3em);
line-height: clamp(2em, calc(2em + 0.4vw), 3em);
font-size: clamp(1.5em, calc(1.5em + 0.4vw), 3em);
margin: 3px;
}
}

@media (orientation: portrait) {
@media (orientation: portrait) and (min-width: 768px) {
.source {
font-size: clamp(2em, calc(2em + 0.8vw), 3.5em);
}
Expand All @@ -209,7 +217,9 @@ table tr td:nth-child(2) {
line-height: clamp(2em, calc(2em + 0.6vw), 3em);
font-size: clamp(1.5em, calc(1.5em + 0.6vw), 3em);
}
}

@media (orientation: portrait) {
input[type="text"] {
width: 80%;
height: 2.5em;
Expand Down

0 comments on commit 0ebd746

Please sign in to comment.