-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
208 lines (190 loc) · 3.28 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/* Mobile */
body {
height:90vh;
display:flex;
/* justify-content:space-around; */
align-items:center;
flex-direction:column;
background-color:#ececec;
font-family:'Concert One', cursive;
color:#fff;
}
.title {
display:flex;
flex-direction:row;
align-items:center;
}
.title h1 {
margin:0;
padding:0;
font-size:3rem;
font-weight:700;
color:#130f87;
text-shadow:2px 2px #FF3333;
font-family:'Fredoka One', cursive;
}
.span-title {
font-size:larger;
margin-left:0.5rem;
margin-right:0.5rem;
}
.card-container {
height:fit-content;
width:95%;
margin-top:10px;
padding:8px 12px;
display:flex;
flex-direction:column;
justify-content:space-between;
background-color:#130f87;
border:solid #0b085b 3px;
border-radius:4px;
box-shadow:2px 2px 3px 1px #100f1ede;
box-sizing:border-box;
}
.title > .logo {
height:3rem;
width:auto;
margin:14px;
margin-left:0;
}
.text-container {
margin:0 8px 8px 12px;
}
p {
margin:0;
padding-bottom:12px;
line-height:1.2;
letter-spacing:-0.5px;
font-size:1.2rem;
}
.spacer {
flex-grow:1;
}
textarea {
width:100%;
height:60%;
padding:10px;
box-sizing:border-box;
outline:#FF3333 2px solid;
border:none;
resize:none;
border-radius:4px;
margin-bottom:10px;
font-weight:bold;
font-family:system-ui;
}
.buttons-container {
width:100%;
height:auto;
margin:0;
padding:0;
display:grid;
grid-template-columns:1fr 1fr;
grid-gap:8px;
}
.button {
margin-right:4px;
padding:4px 8px;
background-color:#FF3333;
border:solid 3px #0b085b;
border-radius:5px;
font-size:16px;
font-family:'Fredoka One', cursive;
font-size:1.3rem;
text-align:center;
cursor:pointer;
}
.button:hover {
opacity:0.9;
}
.live-translate-switch {
display:flex;
padding-right: 1rem;
flex-direction:row;
align-items:center;
justify-content: flex-end;
flex-grow: 1;
}
.switch {
max-width: 100px;
position:relative;
display:inline-block;
width: 100%;
height:85%;
}
.switch input {
opacity:0;
width:0;
height:0;
}
.slider {
max-width: 90px;
position:absolute;
cursor:pointer;
top:0.1px;
left:33%;
right:0;
bottom:0;
background-color:#0b094c;
border:1px solid #0b085b;
-webkit-transition:.4s;
transition:.4s;
}
.slider:before {
position:absolute;
content:"";
height:1.4rem;
width:1.4rem;
left:4px;
bottom:4px;
border:1px solid #0b085b;
background-color:#FF3333;
-webkit-transition:.4s;
transition:.4s;
}
input:checked + .slider {
background-color:#0b085b;
}
input:focus + .slider {
box-shadow:0 0 1px #0b085b;
}
input:checked + .slider:before {
-webkit-transform: translateX(50px);
-ms-transform: translateX(50px);
transform: translateX(50px);
}
.slider.round {
border-radius:34px;
}
.slider.round:before {
border-radius:50%;
}
.translate-label {
margin-left:6px;
padding-bottom:2px;
font-size:14px;
font-weight:normal;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}
/* tablets */
@media (min-width:576px) {
.card-container {
max-width:540px;
}
.buttons-container {
width:100%;
margin:0;
padding:0;
display:flex;
flex-direction:row;
justify-content:left;
height:auto;
}
}
/* desktops */
@media (min-width: 768px) {
.card-container {
max-width:720px;
}
}