-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
349 lines (285 loc) · 9.27 KB
/
styles.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
/*Importación de Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Orbitron:wght@400..900&display=swap');
/*reseteo de algunos parámetros prestablecidos*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*Estilo aplicado a todo el cuerpo*/
/*Estilos para texto*/
h1 {
font-family: "Orbitron", sans-serif;
font-weight: 700;
font-size: 2.5rem;
color: #DCDCDC;
}
h2 {
font-family: "Orbitron", sans-serif;
font-weight: 700;
font-size: 1.5rem;
color: #DCDCDC;
padding: 2rem 0;
/*Aplica padding solo arriba y abajo*/
}
h3 {
font-family: "Orbitron", sans-serif;
font-weight: 700;
font-size: 1rem;
color: #DCDCDC;
padding: 1rem 0;
/*Aplica padding solo arriba y abajo*/
}
p {
font-family: "Open Sans", sans-serif;
font-weight: 400;
font-size: 1rem;
color: #DCDCDC;
}
.p-blue {
font-family: "Open Sans", sans-serif;
font-weight: 400;
font-size: 0.85rem;
font-style: italic;
color: rgb(91, 134, 255);
}
/*Contenedores*/
body {
background-color: #0f0f0f;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 2rem;
padding: 2rem;
}
header {
width: 100%;
}
section {
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 0.5rem;
}
.container__color-area {
width: 100%;
display: flex;
flex-direction: row;
gap: 1rem;
}
.container__color {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
gap: 0.5rem;
flex: 1 1 12rem;
padding-bottom: 0.5rem;
}
.borde-violeta {
border: 1px solid purple;
}
.borde-rojo {
border: 1px solid red;
}
.borde-amarillo {
border: 1px solid yellow;
}
.caja__color {
width: 100%;
min-height: 24px;
}
.violeta {
background-color: rgba(128, 0, 128, 1);
}
.rojo {
background-color: rgba(255, 0, 0, 1);
}
.amarillo {
background-color: rgba(255, 255, 0, 1);
}
.caja__color-texto {
width: 100%;
padding-left: 1rem;
}
.cont__bg {
width: 100%;
margin: 1.5rem 0;
/*solo aplica margen superior e inferior*/
height: 12.5rem;
}
.container__ejemplo {
width: 100%;
margin: 0.75rem 0;
/*solo aplica margen superior e inferior*/
display: flex;
flex-wrap: wrap;
}
.ejemplo {
width: 25%;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
gap: 0.5rem;
padding: 1rem;
flex: 1 1 12.5rem;
}
.cont__bg-ejemplo {
width: 100%;
height: 12.5rem;
}
.cont__bg-conico {
margin: 1.5rem 0;
/*solo aplica margen superior e inferior*/
width: 12.5rem;
height: 12.5rem;
border-radius: 50%;
/*hace que se convierta en círculo*/
}
.footer {
width: 100%;
height: 5rem;
background-color: #000;
border-top: 1px solid #800080;
border-right: 1px solid #FF0000;
border-left: 1px solid #FF0000;
border-bottom: 1px solid #FFFF00;
padding: 1rem;
display: flex;
align-items: center;
justify-content: center;
}
/*DEGRADADO LINEAL*/
/*Direcciones del degradado lineal*/
/*Fondo degradado lineal de izquierda a derecha*/
.lineal-izquierda {
background: linear-gradient(90deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Fondo degradado lineal de derecha a izquierda*/
.lineal-derecha {
background: linear-gradient(270deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Fondo degradado lineal de arriba hacia abajo*/
.lineal-arriba {
background: linear-gradient(180deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Fondo degradado lineal de abajo hacia arriba*/
.lineal-abajo {
background: linear-gradient(0deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Degradados en diagonal*/
/*Fondo Degradado lineal desde la esquina inferior izquierda*/
.lineal-inf-izquierda {
background: linear-gradient(45deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Fondo Degradado lineal desde la esquina superior izquierda */
.lineal-sup-izquierda {
background: linear-gradient(135deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Degradado lineal desde la esquina superior derecha*/
.lineal-sup-derecha {
background: linear-gradient(225deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Fondo Degradado lineal desde la esquina inferior derecha*/
.lineal-inf-derecha {
background: linear-gradient(315deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Fondo Degradado lineal que se repite con porcentaje pequeño*/
.lineal-repeticion1 {
background: repeating-linear-gradient(90deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 2.5%, rgba(255, 255, 0, 1) 5%);
}
/*Fondo Degradado lineal que se repite con porcentaje mayor*/
.lineal-repeticion2 {
background: repeating-linear-gradient(90deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 25%, rgba(255, 255, 0, 1) 50%);
}
/*DEGRADADO RADIAL*/
/*Fondo Degradado circular con forma elíptica*/
.radial-eliptico {
background: radial-gradient(rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 50%, rgba(255, 255, 0, 1) 100%);
}
/*Fondo Degradado circular con forma circular*/
.radial-circulo {
background: radial-gradient(circle, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 50%, rgba(255, 255, 0, 1) 100%);
}
/*Fondo Degradado circular con forma circular que se repite*/
.radial-repetido {
background: repeating-radial-gradient(circle, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 2.5%, rgba(255, 255, 0, 1) 5%);
}
/*Fondo Degradado circular con forma circular con valor closest-side*/
.radial-cs {
background: radial-gradient(circle closest-side at 35% 40%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
/*Fondo Degradado circular con forma circular con valor farthest-side*/
.radial-fs {
background: radial-gradient(circle farthest-side at 35% 40%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
/*Fondo Degradado circular con forma circular con valor closest-corner*/
.radial-cc {
background: radial-gradient(circle closest-corner at 35% 40%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
/*Fondo Degradado circular con forma circular con valor farthest-corner*/
.radial-fc {
background: radial-gradient(circle farthest-corner at 35% 40%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
/*Fondo Degradado circular con forma circular con valor closest-side y distintos porcentajes*/
.radial-cs1 {
background: radial-gradient(circle closest-side at 10% 15%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
.radial-cs2 {
background: radial-gradient(circle closest-side at 35% 40%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
.radial-cs3 {
background: radial-gradient(circle closest-side at 65% 80%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
.radial-cs4 {
background: radial-gradient(circle closest-side at 90% 85%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
/*DEGRADADO CÓNICO*/
/*Degradado cónico con paradas*/
.conico {
background: conic-gradient(rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Degradado cónico con un ángulos para cada color*/
.conico-grados {
background: conic-gradient(rgba(128, 0, 128, 1) 5deg, rgba(255, 0, 0, 1) 90deg, rgba(255, 255, 0, 1) 270deg);
}
/*Degradado cónico con un ángulos para formar un gráfico de torta*/
.conico-torta {
background: conic-gradient(rgba(128, 0, 128, 1) 0deg, rgba(128, 0, 128, 1) 90deg, rgba(255, 0, 0, 1) 90deg, rgba(255, 0, 0, 1) 180deg, rgba(255, 255, 0, 1) 180deg, rgba(255, 255, 0, 1) 270deg, rgb(0, 255, 0) 270deg);
}
/*Degradado cónico con un ángulo de inicio específico aplicando la palabra clave from*/
.conico-from {
background: conic-gradient(from 33deg, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
/*Degradado cónico con centro específico*/
.conico-centro {
background: conic-gradient(at 70% 15%, rgba(128, 0, 128, 1), rgba(255, 0, 0, 1), rgba(255, 255, 0, 1));
}
/*Degradado cónico con repetición*/
.conico-repetido {
background-image: repeating-conic-gradient(rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 2.5%, rgba(255, 255, 0, 1) 5%);
}
/*Degradado cónico con repetición y colores definidos (efecto candy)*/
.conico-candy {
background-image: repeating-conic-gradient(rgba(128, 0, 128, 1) 0deg 10deg, rgba(255, 0, 0, 1) 10deg 20deg, rgba(255, 255, 0, 1) 20deg 30deg);
}
/*COMPATIBILIDADES*/
.lineal-rgba {
background: linear-gradient(90deg, rgba(128, 0, 128, 1) 0%, rgba(255, 0, 0, 1) 35%, rgba(255, 255, 0, 1) 100%);
}
/*Color RGB*/
.lineal-rgb {
background: linear-gradient(90deg, rgb(128, 0, 128) 0%, rgb(255, 0, 0) 35%, rgb(255, 255, 0) 100%)
}
/*Color Hexadecimal*/
.lineal-hex {
background: linear-gradient(90deg, #800080 0%, #FF0000 35%, #FFFF00 100%)
}
/*Color por nombre*/
.lineal-name {
background: linear-gradient(90deg, purple 0%, red 35%, yellow 100%)
}