File tree Expand file tree Collapse file tree 4 files changed +45
-24
lines changed Expand file tree Collapse file tree 4 files changed +45
-24
lines changed Original file line number Diff line number Diff line change 13
13
< link rel ="stylesheet " href ="./style.css ">
14
14
<!-- META NAME & DESCRIPTION -->
15
15
< meta name ="author " content ="Cleilson Andrade ">
16
- < meta name ="description " content ="Seu app de controle de finanças pessoal . ">
16
+ < meta name ="description " content ="Seu app de controle de finanças pessoais . ">
17
17
<!-- META SOCIAL MEDIAS -->
18
18
< meta name ="twitter:title " content ="dev.finance$ ">
19
19
< meta property ="og:title " content ="dev.finance$ " />
69
69
< section id ="transaction ">
70
70
< h2 class ="sr-only "> Transações</ h2 >
71
71
< a href ="# " onclick ="Modal.open() " class ="button new "> + Nova transação</ a >
72
- < table id ="data-table ">
73
- < thead >
74
- < tr >
75
- < th > Descrição</ th >
76
- < th > Valor</ th >
77
- < th > Data</ th >
78
- < th > </ th >
79
- </ tr >
80
- </ thead >
81
- < tbody >
82
- </ tbody >
83
- </ table >
72
+ < div class ="table-container ">
73
+ < table id ="data-table ">
74
+ < thead >
75
+ < tr >
76
+ < th > Descrição</ th >
77
+ < th > Valor</ th >
78
+ < th > Data</ th >
79
+ < th > </ th >
80
+ </ tr >
81
+ </ thead >
82
+ < tbody >
83
+ </ tbody >
84
+ </ table >
85
+ </ div >
84
86
</ section >
85
87
</ main >
86
88
@@ -119,8 +121,7 @@ <h2>Nova Transação</h2>
119
121
120
122
< footer > dev.finance$</ footer >
121
123
122
- < script src ="./scripts.js ">
123
- </ script >
124
+ < script src ="./scripts.js " defer > </ script >
124
125
</ body >
125
126
126
127
</ html >
Original file line number Diff line number Diff line change 1
1
const Modal = {
2
2
open ( ) {
3
- // ABRIR MODAL
4
- // Adicionar a class active ao modal
3
+ // OPEN MODE
4
+ // Add the active class to the modal
5
5
document . querySelector ( '.modal-overlay' ) . classList . add ( 'active-overlay' )
6
6
document . querySelector ( '.modal' ) . classList . toggle ( 'active-modal' )
7
7
document . querySelector ( '.attention' ) . classList . add ( 'sr-only' )
8
8
9
9
} ,
10
10
close ( ) {
11
- // FECHAR MODAL
11
+ // CLOSE MODAL
12
12
// Remover a class active do modal
13
13
document . querySelector ( '.modal-overlay' ) . classList . remove ( 'active-overlay' )
14
14
document . querySelector ( '.modal' ) . classList . toggle ( 'active-modal' )
Original file line number Diff line number Diff line change 2
2
"name" : " dev.finance$" ,
3
3
"short_name" : " dev.finance$" ,
4
4
"lang" : " pt-BR" ,
5
- "description" : " Seu app de controle de finanças pessoal ." ,
5
+ "description" : " Seu app de controle de finanças pessoais ." ,
6
6
"icons" : [
7
7
{
8
8
"src" : " ./assets/favicon/android-chrome-192x192.png" ,
Original file line number Diff line number Diff line change 38
38
.container {
39
39
width : min (90vw , 800px );
40
40
margin : 0 auto;
41
+ min-height : 80vh ;
41
42
}
42
43
43
44
.attention {
@@ -105,6 +106,8 @@ header {
105
106
background : # 2D4A22 ;
106
107
padding : 2rem 0 10rem ;
107
108
text-align : center;
109
+ display : flex;
110
+ justify-content : center;
108
111
}
109
112
110
113
# logo {
@@ -132,8 +135,9 @@ header {
132
135
}
133
136
134
137
.card : hover {
135
- transition : 0.4 s ;
138
+ transition : 0.8 s ;
136
139
background : # e8f0ff ;
140
+ box-shadow : 2px 2px 6px rgba (0 , 0 , 0 , 0.2 );
137
141
}
138
142
139
143
.card h3 {
@@ -160,6 +164,12 @@ header {
160
164
display : block;
161
165
width : 100% ;
162
166
overflow-x : auto;
167
+ position : relative;
168
+ }
169
+
170
+ .table-container {
171
+ max-height : 20vh ;
172
+ overflow-y : auto;
163
173
}
164
174
165
175
# data-table {
@@ -183,6 +193,9 @@ table thead th {
183
193
font-weight : normal;
184
194
padding : 1rem 2rem ;
185
195
text-align : left;
196
+ position : sticky;
197
+ top : 0 ;
198
+ z-index : 2 ;
186
199
}
187
200
188
201
table tbody tr {
@@ -224,13 +237,13 @@ td.expense {
224
237
opacity : 0 ;
225
238
visibility : hidden;
226
239
z-index : 999 ;
227
- transition : 0.4 s ;
240
+ transition : 0.6 s ;
228
241
}
229
242
230
243
.modal-overlay .active-overlay {
231
244
opacity : 1 ;
232
245
visibility : visible;
233
- backdrop-filter : blur (5 px );
246
+ backdrop-filter : blur (2 px );
234
247
}
235
248
236
249
.modal {
@@ -239,7 +252,7 @@ td.expense {
239
252
padding : 2.4rem ;
240
253
position : relative;
241
254
z-index : 1 ;
242
- transition : 0.2 s ;
255
+ transition : 0.6 s ;
243
256
}
244
257
245
258
.modal .active-modal {
@@ -285,9 +298,12 @@ input {
285
298
/* FOOTER============================================= */
286
299
footer {
287
300
text-align : center;
288
- padding : 4 rem 0 2rem ;
301
+ padding : 2 rem 0 2rem ;
289
302
color : var (--dark-blue );
290
303
opacity : 0.6 ;
304
+ width : 100% ;
305
+ position : relative;
306
+ bottom : 0 ;
291
307
}
292
308
293
309
/* RESPONSIVE============================================= */
@@ -302,4 +318,8 @@ footer {
302
318
grid-template-columns : repeat (3 , 1fr );
303
319
gap : 2rem ;
304
320
}
321
+
322
+ .table-container {
323
+ max-height : 54vh ;
324
+ }
305
325
}
You can’t perform that action at this time.
0 commit comments