backend-skins 0.1.17 → 0.1.19

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/README.md CHANGED
@@ -22,8 +22,8 @@ client-setup:
22
22
  ```
23
23
 
24
24
  # Button styles
25
- In the modern skin, buttons are automatically colored via the attribute 'color'. The possible values are 'primary', 'secondary', 'success', 'warning', and 'danger'.
26
- Additionally, the button can be outlined by adding the attribute outlined=true.
25
+ In the modern skin, elements are automatically colored via the attribute 'color'. The possible values are 'primary', 'secondary', 'success', 'warning', and 'danger'.
26
+ Additionally, the element can be outlined by adding the attribute outline=true.
27
27
 
28
28
  For example, when using the dialog-promise library, the buttons can be configured as follows:
29
29
  ```js
@@ -25,11 +25,10 @@ body {
25
25
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
26
26
  display: flex !important;
27
27
  align-items: center !important;
28
- min-height: 40px !important;
29
28
  padding: 0 16px !important;
30
29
  }
31
30
 
32
- .menu-item {
31
+ .top-menu-bar .menu-item, .sub-menu-bar .menu-item {
33
32
  color: white !important;
34
33
  background: transparent !important;
35
34
  border: none !important;
@@ -41,6 +40,7 @@ body {
41
40
  border-radius: 0px;
42
41
  text-decoration: none !important;
43
42
  transition: background 0.2s;
43
+ border-radius: 0px !important;
44
44
  }
45
45
 
46
46
  .menu-item[menu-selected="yes"] {
@@ -48,6 +48,25 @@ body {
48
48
  box-shadow: inset 0 -3px 0 white !important;
49
49
  }
50
50
 
51
+ .menu-item {
52
+ background-color: #1976d2 !important;
53
+ border-radius: 3px !important;
54
+ color: #fff !important;
55
+ text-transform: uppercase;
56
+ font-weight: bold;
57
+ transition: 0.1s;
58
+ padding: 5px;
59
+ }
60
+
61
+ .menu-item:hover {
62
+ background-color: #0069d9 !important;
63
+ }
64
+
65
+ .menu-item[is-selected] {
66
+ background-color: #ddd !important;
67
+ color: #666 !important;
68
+ }
69
+
51
70
  #active-user, #right-menu-icon, .right-lights {
52
71
  filter: brightness(0) invert(1) !important; /* Iconos a blanco */
53
72
  margin-left: 10px !important;
@@ -94,95 +113,129 @@ body {
94
113
 
95
114
  /* BOTONES */
96
115
 
97
- button[color] {
98
- border: none;
116
+ [color] {
99
117
  border-radius: 3px;
100
- padding: 5px 8px;
101
- color: white;
118
+ padding: 5px;
102
119
  cursor: pointer;
103
120
  text-transform: uppercase;
121
+ text-decoration: none;
122
+ font-weight: bold;
104
123
  }
105
124
 
106
- button[color=primary]:not([outline]) {
125
+ [color=primary]:not([outline]) {
107
126
  background-color: #1976d2;
127
+ color: #fff;
128
+ border: 1px solid #1976d2;
129
+ transition: 0.1s;
108
130
  }
109
131
 
110
- button[color=primary][outline=true] {
132
+ [color=primary]:not([outline]):hover {
133
+ background-color: #0069d9;
134
+ }
135
+
136
+ [color=primary][outline=true] {
111
137
  background-color: transparent;
112
138
  border: 1px solid #1976d2;
113
139
  color: #1976d2;
114
140
  transition: 0.1s;
115
141
  }
116
142
 
117
- button[color=primary][outline=true]:hover {
143
+ [color=primary][outline=true]:hover {
118
144
  background-color: #1976d2;
119
- color: #ddd;
145
+ color: #fff;
120
146
  }
121
147
 
122
- button[color=secondary]:not([outline]) {
148
+ [color=secondary]:not([outline]) {
123
149
  background-color: #666;
150
+ color: #fff;
151
+ border: 1px solid #666;
124
152
  }
125
153
 
126
- button[color=secondary][outline=true] {
154
+ [color=secondary]:not([outline]):hover {
155
+ background-color: #5a6268;
156
+ }
157
+
158
+ [color=secondary][outline=true] {
127
159
  background-color: transparent;
128
160
  border: 1px solid #666;
129
161
  color: #666;
130
162
  transition: 0.1s;
131
163
  }
132
164
 
133
- button[color=secondary][outline=true]:hover {
165
+ [color=secondary][outline=true]:hover {
134
166
  background-color: #ddd;
135
167
  }
136
168
 
137
- button[color=success]:not([outline]) {
169
+ [color=success]:not([outline]) {
138
170
  background-color: #198754;
139
- color: #fff
171
+ color: #fff;
172
+ border: 1px solid #198754;
173
+ }
174
+
175
+ [color=success]:not([outline]):hover {
176
+ background-color: #218838;
140
177
  }
141
178
 
142
- button[color=success][outline=true] {
179
+ [color=success][outline=true] {
143
180
  background-color: transparent;
144
181
  border: 1px solid #198754;
145
182
  color: #198754;
146
183
  transition: 0.1s;
147
184
  }
148
185
 
149
- button[color=success][outline=true]:hover {
186
+ [color=success][outline=true]:hover {
150
187
  background-color: #198754;
151
- color: #ddd;
188
+ color: #fff;
152
189
  }
153
190
 
154
- button[color=warning]:not([outline]) {
191
+ [color=warning]:not([outline]) {
155
192
  background-color: #ffc107;
156
- color: #000
193
+ color: #000;
194
+ border: 1px solid #ffc107;
157
195
  }
158
196
 
159
- button[color=warning][outline=true] {
197
+ [color=warning]:not([outline]):hover {
198
+ background-color: #e0a800;
199
+ }
200
+
201
+ [color=warning][outline=true] {
160
202
  background-color: transparent;
161
203
  border: 1px solid #ffc107;
162
204
  color: #ffc107;
163
205
  transition: 0.1s;
164
206
  }
165
207
 
166
- button[color=warning][outline=true]:hover {
208
+ [color=warning][outline=true]:hover {
167
209
  background-color: #ffc107;
168
- color: #ddd;
210
+ color: #000;
169
211
  }
170
212
 
171
- button[color=danger]:not([outline]) {
213
+ [color=danger]:not([outline]) {
172
214
  background-color: #dc3545;
173
- color: #000
215
+ color: #fff !important;
216
+ border: 1px solid #dc3545;
174
217
  }
175
218
 
176
- button[color=danger][outline=true] {
219
+ [color=danger]:not([outline]):hover {
220
+ background-color: #c82333;
221
+ }
222
+
223
+ [color=danger][outline=true] {
177
224
  background-color: transparent;
178
225
  border: 1px solid #dc3545;
179
226
  color: #dc3545;
180
227
  transition: 0.1s;
181
228
  }
182
229
 
183
- button[color=danger][outline=true]:hover {
230
+ [color=danger][outline=true]:hover {
184
231
  background-color: #dc3545;
185
- color: #ddd;
232
+ color: #fff;
233
+ }
234
+
235
+ [disabled] {
236
+ background-color: #666 !important;
237
+ color: #fff !important;
238
+ border: 1px solid #666 !important;
186
239
  }
187
240
 
188
241
  .dialog-promise .dialog-promise-close-button:hover {
@@ -1,26 +1,23 @@
1
- body {
2
- background: pink !important;
3
- }
4
-
5
- /* Solo se aplica si el formulario de login está presente */
6
1
  body:has(#loginForm) {
2
+ width: 80%;
3
+ padding: 20px;
7
4
  margin: 0;
8
5
  display: flex !important;
6
+ flex-direction: column;
9
7
  align-items: center !important;
10
8
  justify-content: center !important;
11
- min-height: 100vh !important;
9
+ justify-self: anchor-center;
12
10
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
13
11
  font-family: 'Inter', sans-serif !important;
14
12
  }
15
13
 
16
- /* Contenedor Principal (Transformando la tabla en una Card) */
17
14
  #loginForm {
18
15
  background: #ffffff !important;
19
16
  padding: 30px !important;
20
17
  border-radius: 16px !important;
21
18
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
22
19
  width: 100% !important;
23
- max-width: 380px !important;
20
+ max-width: 500px !important;
24
21
  animation: fadeIn 0.5s ease-out;
25
22
  }
26
23
 
@@ -31,10 +28,9 @@ body:has(#loginForm) {
31
28
 
32
29
  .logintable { width: 100% !important; border-collapse: collapse !important; }
33
30
 
34
- /* Título */
35
31
  .formtitle {
36
32
  color: #1e293b !important;
37
- font-size: 22px !important;
33
+ font-size: 24px !important;
38
34
  font-weight: 700 !important;
39
35
  text-align: center !important;
40
36
  margin: 0 0 24px 0 !important;
@@ -42,7 +38,6 @@ body:has(#loginForm) {
42
38
  text-transform: uppercase;
43
39
  }
44
40
 
45
- /* Logo */
46
41
  .logintableLogoImgRow img {
47
42
  display: block !important;
48
43
  margin: 0 auto 15px auto !important;
@@ -50,24 +45,22 @@ body:has(#loginForm) {
50
45
  width: auto !important;
51
46
  }
52
47
 
53
- /* Labels */
54
48
  .formlabel label {
55
49
  display: block !important;
56
50
  color: #475569 !important;
57
- font-size: 12px !important;
51
+ font-size: 20px !important;
58
52
  font-weight: 600 !important;
59
53
  text-transform: uppercase !important;
60
54
  margin-bottom: 6px !important;
61
55
  margin-top: 10px !important;
62
56
  }
63
57
 
64
- /* Inputs de Texto y Password */
65
58
  .formtd input {
66
59
  width: 92% !important;
67
60
  padding: 12px 14px !important;
68
61
  border: 1px solid #e2e8f0 !important;
69
62
  border-radius: 8px !important;
70
- font-size: 15px !important;
63
+ font-size: 20px !important;
71
64
  background-color: #f8fafc !important;
72
65
  transition: all 0.2s ease !important;
73
66
  outline: none !important;
@@ -80,7 +73,6 @@ body:has(#loginForm) {
80
73
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
81
74
  }
82
75
 
83
- /* Botón Submit */
84
76
  .submit {
85
77
  width: 100% !important;
86
78
  background-color: #1976d2 !important;
@@ -88,7 +80,7 @@ body:has(#loginForm) {
88
80
  padding: 12px !important;
89
81
  border: none !important;
90
82
  border-radius: 8px !important;
91
- font-size: 15px !important;
83
+ font-size: 20px !important;
92
84
  font-weight: 600 !important;
93
85
  cursor: pointer !important;
94
86
  margin-top: 25px !important;
@@ -109,5 +101,9 @@ body:has(#loginForm) {
109
101
  width: 100% !important;
110
102
  }
111
103
 
104
+ #resultado_incompatibilidad {
105
+ color: #dc3545;
106
+ }
107
+
112
108
  .iconoslog, .formImg
113
109
  display none
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-skins",
3
3
  "description": "Skins for backend-plus",
4
- "version": "0.1.17",
4
+ "version": "0.1.19",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-skins",