-
Notifications
You must be signed in to change notification settings - Fork 1
/
modal.css
124 lines (100 loc) · 2.16 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
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
*{
margin: 0;
padding: 0;
}
.container{
width: 100%;
height: 100%;
}
.modal{
position: fixed;
top: 0;
width: 100%;
height: 100%;
overflow-y: scroll;
background: rgba(0, 0, 0, 0.7);
display: none;
animation: aparecer .3s linear;
}
.modal .fondoModal{
position: fixed;
width: 97%;
height: 100%;
top: 0;
z-index: 100;
}
.modal .modal-content{
z-index: 1000;
position: absolute;
width: 60%;
left: 0;
right: 0;
margin: auto;
top: 20px;
max-width: 660px;
}
.modal .modal-content .modal-header{
background-color: white;
padding: 20px;
display: flex;
justify-content: space-between;
border-radius: 10px 10px 0px 0px;
}
.modal .modal-content .modal-header .title-modal{
font-size: 30px;
padding-top: 10px;
}
.modal .modal-content .modal-header .btn-close-modal{
background: none;
border: none;
outline: none;
padding: 15px;
font-size: 20px;
}
.modal .modal-content .modal-header .btn-close-modal::after{
content: "X";
}
.modal .modal-content .modal-header .btn-close-modal:hover{
cursor: pointer;
}
.modal .modal-content .modal-body{
border-radius: 0px 0px 10px 10px;
background-color: white;
padding: 20px;
border-top: 1px solid #ccc;
margin-bottom: 25px;
}
@keyframes aparecer{
from{
opacity: 0;
}
to{
opacity: 1;
}
}
@media screen and (max-width: 580px){
.modal .modal-content{
width: 80%;
}
.modal .modal-content .modal-header .title-modal{
font-size: 25px;
padding-top: 10px;
}
.modal .modal-content .modal-header .btn-close-modal{
padding: 10px;
font-size: 18px;
}
} /* EN DISPOSITIVOS MENORES A 580PX, EL CONTENEDOR DEL
MODAL ABARGARÁ MAS ESPACIO Y EL ENCABEZADO DISMINUIRA DE
TAMAÑO UN POCO */
.btn{
padding: 10px 20px;
border: none;
border-radius: 5px;
background: rgb(29, 7, 226);
color: white;
}
.btn:hover{
background: rgb(34, 9, 252);
cursor: pointer;
}