Skip to content

Commit 2ef2b1f

Browse files
authored
resize textarea elements
1 parent ab606be commit 2ef2b1f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

styles.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ body {
55

66
#div-compare, #div-original {
77
position: absolute;
8-
top: 4em;
98
border-radius: 7px;
109
}
1110

@@ -63,8 +62,12 @@ textarea {
6362

6463
@media (min-height: 100px) {
6564

65+
#div-compare, #div-original {
66+
top: calc(4em + 60px);
67+
}
68+
6669
textarea {
67-
height: 600px;
70+
height: 100vh;
6871
}
6972

7073
#buttons {
@@ -75,6 +78,10 @@ textarea {
7578

7679
@media (min-height: 650px) {
7780

81+
#div-compare, #div-original {
82+
top: 4em;
83+
}
84+
7885
textarea {
7986
height: calc(100vh - 11em);
8087
}

0 commit comments

Comments
 (0)