-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
220 lines (187 loc) · 3.51 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
209
210
211
212
213
214
215
216
217
218
219
220
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
:root {
--text-color: #0F172A;
font-size: 62.5%;
font-family: 'Inter', sans-serif;
}
body {
font-size: 1.6rem;
background: #F8FAFC;
height: 100vh;
display: grid;
place-content: center;
color: var(--text-color);
overflow-y: scroll;
}
main {
padding: 6.4rem 8.0rem;
background: #FFFFFF;
box-shadow: .0rem .4rem 3.2rem rgba(15, 23, 42, 0.15);
border-radius: 1.6rem;
display: grid;
gap: 6.4rem;
}
section h2 {
font-weight: 600;
font-size: 2rem;
line-height: 2.4rem;
}
.conversor .wrapper {
/*border: 0.1rem solid red;*/
display: flex;
gap: 1.6rem;
margin-top: 1.6rem;
align-items: center;
}
.money-wrapper {
background-color: white;
outline: 0.1rem solid #94A3B8; /*Não movimenta o layout*/
/*width: 27rem;*/
padding: 1.6rem;
border-radius: .8rem;
display: flex;
align-items: center;
position: relative;
}
.money-wrapper:hover, .money-wrapper:has(:focus) {
outline: 0.15rem solid #7C3AED;
}
.amount {
border: 0;
font-size: 1.6rem;
line-height: 2.4rem;
width: 50%;
color: var(--text-color);
}
.amount:focus {
outline: 0;
}
/*DROPDOWN*/
.dropdown {
--bg-hover: #EDE9FE;
width: 13rem;
position: absolute;
top: 0;
right: 0;
height: 5.6rem;
overflow: hidden;
}
.dropdown:hover {
height: fit-content;
overflow: initial;
}
.selected {
display: flex;
align-items: center;
gap: 0.8rem;
padding: 1.6rem;
border-radius: 0 0.8rem 0.8rem 0;
cursor: pointer; /*O cursor vira uma mãozinha*/
}
.selected::before {
content: "";
height: 2.4rem;
width: 0.1rem;
background-color: #94A3B8;
position: absolute;
left: 0;
}
.selected::after {
content: "";
width: 2.4rem;
height: 2.4rem;
background: url(./assets/chevron-down.svg) no-repeat;
}
.selected:hover, li:hover {
background-color: var(--bg-hover);
}
.fi.fis {
font-size: 2.4rem;
border-radius: 50%;
}
ul {
list-style: none;
background: #FFFFFF;
box-shadow: 0px 4px 16px rgba(15, 23, 42, 0.15);
border-radius: 8px;
padding: 0;
width: 16rem;
max-height: 17rem;
margin-top: .8rem;
overflow-y: scroll;
position: relative; /*habilita o z-index*/
z-index: 1; /*Sobre põe o ul ao gráfico*/
}
li {
padding: 1.2rem 1.6rem;
display: flex;
align-items: center;
gap: .8rem;
cursor: pointer;
}
/*Câmbio Wrapper*/
.cambio .wrapper {
margin-top: 2.4rem;
}
.tooltip {
background-color: #FFFFFF;
box-shadow: 0rem .4rem 1.6rem rgba(15, 23, 42, 0.15);
border-radius: 4px;
padding: 8px;
}
.chart-controls {
display: flex;
justify-content: space-between; /*Se ajusta ao espaço disponível*/
margin: -2.2rem .8rem 0 4rem;
}
.chart-controls button{
background-color: transparent;
border: 0; /*Tira a borda*/
width: 4.8rem;
height: 3.2rem;
border-radius: 999px;
font-size: 1.2rem;
line-height: 1.6rem;
text-align: center;
cursor: pointer;
font-weight: 400;
font-size: 1.4rem;
line-height: 2.4rem;
}
.chart-controls button:hover,
.chart-controls button.active {
background-color: #7C3AED;
color: #FFFFFF;
padding: 0.4rem 0.8rem;
}
/*Responsividade*/
/*
768/16 = 48rem
768 é o ponto de quebra de tablet
16 é a fonte padrão dos navegadores
*/
@media (max-width: 48rem){
body{
margin: 1.0rem;
}
main{
padding: 1.6rem;
gap: 3.2rem;
}
section h2 {
font-size: 1.6rem;
}
.conversor .wrapper {
flex-direction: column;
gap: .8rem;
}
.money-wrapper {
width: 100%;
}
}