flicker-alerts 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -1
- package/package.json +1 -1
- package/style.css +5 -0
package/index.js
CHANGED
@@ -8,7 +8,8 @@ const FlickerAlerts = {
|
|
8
8
|
// Cria o container se ele não existir
|
9
9
|
container = document.createElement('div');
|
10
10
|
container.id = 'alerts-container';
|
11
|
-
|
11
|
+
container.className = 'top-right'; // Aplica a classe para posicionar no topo direito
|
12
|
+
document.body.appendChild(container); // Adiciona o container ao body
|
12
13
|
}
|
13
14
|
|
14
15
|
// Criação do alerta
|
package/package.json
CHANGED
package/style.css
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
/* Estilo geral para o alerta */
|
1
2
|
.alert-custom {
|
2
3
|
display: flex;
|
3
4
|
align-items: center;
|
@@ -67,6 +68,7 @@
|
|
67
68
|
color: #777; /* Cor mais escura no hover */
|
68
69
|
}
|
69
70
|
|
71
|
+
/* Estilos para os tipos de alerta */
|
70
72
|
.alert-success {
|
71
73
|
border-left: 0.25rem solid #28a745;
|
72
74
|
}
|
@@ -103,6 +105,7 @@
|
|
103
105
|
color: white;
|
104
106
|
}
|
105
107
|
|
108
|
+
/* Classe para o container de alertas no topo direito */
|
106
109
|
.top-right {
|
107
110
|
position: fixed;
|
108
111
|
top: 1rem;
|
@@ -113,6 +116,7 @@
|
|
113
116
|
z-index: 1050;
|
114
117
|
}
|
115
118
|
|
119
|
+
/* Barra de progresso */
|
116
120
|
.progress-bar {
|
117
121
|
position: absolute;
|
118
122
|
bottom: 0;
|
@@ -138,6 +142,7 @@
|
|
138
142
|
background-color: #dc3545;
|
139
143
|
}
|
140
144
|
|
145
|
+
/* Animação de progresso */
|
141
146
|
@keyframes load {
|
142
147
|
from {
|
143
148
|
width: 0;
|