-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyles.css
More file actions
132 lines (116 loc) · 2.51 KB
/
styles.css
File metadata and controls
132 lines (116 loc) · 2.51 KB
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
:root {
--primary-color: #9b59b6;
--primary-darker: #8e44ad;
--secondary-color: #95a5a6;
--text-color: #343a40;
--bg-light: #f7f2fb;
--border-color: #d2b4de;
--shadow-color: rgba(0, 0, 0, 0.1);
--success-color: #27ae60;
}
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-light);
margin: 0;
padding: 20px;
}
h1,
h2 {
color: var(--primary-darker);
border-bottom: 2px solid var(--border-color);
padding-bottom: 10px;
margin-top: 30px;
}
#contenedor-usuarios,
#contenedor-tienda {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 6px var(--shadow-color);
margin-bottom: 30px;
}
ul {
list-style: disc;
padding-left: 20px;
}
#lista-productos {
list-style: none;
padding: 0;
display: grid;
/* 2 columnas para el desktop, 1 columna para móvil */
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
#btn-cargar {
background-color: var(--primary-color);
color: white;
padding: 10px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
margin-bottom: 20px;
display: block;
width: auto;
}
#btn-cargar:hover {
background-color: var(--primary-darker);
}
#contenedor-usuarios h2 {
color: var(--primary-darker);
margin-bottom: 15px;
}
#contenedor-usuarios ul {
list-style: none;
padding: 0;
margin-top: 10px;
}
#contenedor-usuarios li {
background-color: var(--bg-light);
border-left: 5px solid var(--primary-color);
padding: 10px 15px;
margin-bottom: 8px;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
font-size: 1.05em;
transition: background-color 0.2s ease;
}
#contenedor-usuarios li:hover {
background-color: #edeaf5;
}
#lista-productos li {
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 15px;
display: flex;
align-items: center;
gap: 15px;
transition: transform 0.2s, box-shadow 0.2s;
background: #ffffff;
}
#lista-productos li:hover {
transform: translateY(-3px);
box-shadow: 0 6px 12px var(--shadow-color);
}
#lista-productos img {
max-width: 60px;
height: auto;
border-radius: 4px;
object-fit: contain;
}
#lista-productos div strong {
/* Título del producto */
display: block;
font-size: 1em;
margin-bottom: 5px;
color: var(--text-color);
}
#lista-productos div p {
/* Precio del producto */
font-size: 1.1em;
font-weight: bold;
color: var(--success-color);
}