-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodal.css
99 lines (86 loc) · 1.77 KB
/
modal.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
/* Adicione isso ao seu CSS existente */
/* Estilos comuns para modais de inserção e edição */
.modal-common {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-common-content {
background-color: #fefefe;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 430px;
}
.fechar {
position: absolute;
top: 10px;
right: 10px;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
/* Estilos específicos para modal de inserção */
#formularioCadastro {
display: grid;
gap: 10px;
}
#formularioCadastro label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
#formularioCadastro input,
#formularioCadastro textarea,
#formularioCadastro select {
width: 100%;
padding: 8px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
#formularioCadastro button {
background-color: #4caf50;
color: white;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
}
#formularioCadastro button:hover {
background-color: #45a049;
}
/* Estilos específicos para modal de edição */
#formularioEdicao {
display: grid;
gap: 10px;
}
#formularioEdicao label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
#formularioEdicao input,
#formularioEdicao textarea,
#formularioEdicao select {
width: 100%;
padding: 8px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
}
#formularioEdicao button {
background-color: #4caf50;
color: white;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
}
#formularioEdicao button:hover {
background-color: #45a049;
}