-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathestilosCatalogo.css
More file actions
212 lines (188 loc) · 4.6 KB
/
Copy pathestilosCatalogo.css
File metadata and controls
212 lines (188 loc) · 4.6 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
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
.catalog-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
gap: 20px;
justify-content: center;
}
nav a {
color: #fff;
text-decoration: none;
margin: 0 10px; /* Margen reducido */
font-size: 16px; /* Ajusta el tamaño del texto para pantallas pequeñas */
white-space: nowrap; /* Evita que los textos largos salten de línea */
}
nav a.active {
background-color: #c87968 ; /* Fondo azul para el enlace activo */
color: white; /* Texto blanco para el enlace activo */
border-radius: 5px; /* Esquinas redondeadas */
}
.filtro-y-categorias{
background-color: #f8f8f8; /* Fondo claro para mejor visibilidad */
width: 100%; /* Asegura que ocupe solo el ancho disponible */
max-width: 100%; /* Previene desbordamientos */
box-sizing: border-box; /* Incluye padding en el cálculo del ancho */
padding: 20px;
background-size: cover; /* Ajusta la imagen al tamaño del contenedor */
background-repeat: no-repeat;
overflow-x: hidden; /* Oculta cualquier desbordamiento horizontal */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Agrega sombra suave */
}
.filtro-y-categorias img {
max-width: 100%; /* Ajusta la imagen al ancho disponible */
height: auto; /* Mantiene la proporción de la imagen */
}
/* Ajustes para dispositivos grandes (pantallas mayores a 768px) */
.content {
border: 1px solid #bb36f0;
background-color: rgb(255, 255, 255);
display: grid;
grid-gap: 20px;
align-items: center;
justify-content: center;
padding: 10px;
margin: 0;
}
/* Estilo normal para pantallas grandes (3 columnas) */
.lista-productos {
list-style: none;
padding: 10px;
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 columnas */
grid-column-gap: 35px;
grid-row-gap: 40px;
flex-wrap: wrap;
width: 100%;
margin: 0;
}
.imagen {
border-radius: 15px;
width: 250px;
height: 250px;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.imagen img {
max-width: 100%;
max-height: 100%;
display: block;
margin: auto;
transition: transform 0.3s, opacity 0.3s;
}
.imagen:hover img {
transform: scale(1.05);
opacity: 0.8;
}
.redes{
display: flex;
justify-content: center;
gap:10px; /*para que esten separados*/
}
.redes a{
font-size: 25px;
transition:all ease 300ms;
}
.redes a:hover{
transform: scale(1.2); /*para que la transicion no sea muy rapida usar transicion en en contenedor a */
}
.facebook{
color:white;
}
.whatsapp{
color:white;
}
/* Ajustes para pantallas pequeñas (modo móvil) */
@media (max-width: 768px) {
body{
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
overflow-x: hidden; /* Oculta cualquier contenido que exceda el ancho de la pantalla */
}
.catalog-container {
flex-direction: column;
align-items: center;
}
.filtro-y-categorias{
margin-top: 190px;
}
.filtro-y-categorias, .content {
width: 100%; /* Ocupa el 100% del ancho en pantallas pequeñas */
}
.lista-productos {
grid-template-columns: repeat(1, 1fr); /* 1 columnas en pantallas medianas */
gap: 20px;
}
}
/* Ajustes para pantallas muy pequeñas (celulares) */
@media (max-width: 480px) {
body{
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
overflow-x: hidden; /* Oculta cualquier contenido que exceda el ancho de la pantalla */
}
.lista-productos {
grid-template-columns: 1fr; /* 1 columna en pantallas pequeñas */
}
}
/* Otros estilos */
.pagina p {
font-family: Arial, sans-serif;
text-align: center;
}
.content h2 {
font-size: 18px;
font-family: Arial, sans-serif;
text-align: center;
}
.paginacion {
text-align: center;
margin-bottom: 10px;
}
.paginacion button {
margin: 10px;
}
.producto {
display: block;
}
/* Filtro y categorías */
.filtro-y-categorias {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
background-image: url('img/fondo.png');
background-size: cover;
background-repeat: no-repeat;
border: 1px solid #ccc;
margin-bottom: 20px;
margin-top: 100px;
}
.filtro {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.filtro input[type="text"] {
padding: 5px;
margin-right: 10px;
}
.categorias {
text-align: center;
}
.categorias ul {
list-style: none;
padding: 0;
}
.categorias li {
cursor: pointer;
margin-bottom: 5px;
}
.categorias li.active {
font-weight: bold;
color: #333;
}