Skip to content

Commit 4df85c3

Browse files
authored
Merge pull request #44 from Supravisor/deploy
resize textarea element
2 parents 54e839d + d85ba3b commit 4df85c3

File tree

1 file changed

+35
-9
lines changed

1 file changed

+35
-9
lines changed

styles.css

Lines changed: 35 additions & 9 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

@@ -18,7 +17,6 @@ body {
1817
}
1918

2019
#compare, #original {
21-
width: calc(100vw - 3em - 10px);
2220
font-size: 1.5em;
2321
padding: 20px;
2422
}
@@ -35,20 +33,14 @@ body {
3533
background: transparent;
3634
}
3735

38-
textarea {
39-
height: 40vh;
40-
border: none;
41-
}
42-
4336
#buttons {
4437
position: absolute;
45-
top: 90vh;
4638
display: flex;
39+
height: 60px;
4740
width: 200px;
4841
gap: 40px;
4942
}
5043

51-
5244
button {
5345
font-size: 1.2em;
5446
border-radius: 7px;
@@ -62,3 +54,37 @@ button {
6254
#button-compare {
6355
background: Pink;
6456
}
57+
58+
textarea {
59+
border: none;
60+
}
61+
62+
@media (min-height: 100px) {
63+
64+
#div-compare, #div-original {
65+
top: calc(6em + 50px);
66+
}
67+
68+
textarea {
69+
width: calc(100vw - 4em - 10px);
70+
height: 100vh;
71+
}
72+
73+
}
74+
75+
@media (min-height: 650px) {
76+
77+
#div-compare, #div-original {
78+
top: 4em;
79+
}
80+
81+
textarea {
82+
width: calc(100vw - 3em - 10px);
83+
height: calc(100vh - 11em);
84+
}
85+
86+
#buttons {
87+
bottom: 1em;
88+
}
89+
90+
}

0 commit comments

Comments
 (0)