-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid-galeria.css
More file actions
140 lines (119 loc) · 2.7 KB
/
grid-galeria.css
File metadata and controls
140 lines (119 loc) · 2.7 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
/* header */
/* -----------------LETRA---- */
@font-face {
font-family: "Itim";
src: url(../fonts/Anton/Anton-Regular.ttf);
}
* {
margin: 0%; /*Elimina todo margen que trae por defecto*/
padding: 0%; /*Elimina todo relleno que trae por defecto*/
font-family: "Itim";
}
/* Menu */
/* En los hipervínculos del nav eliminar la decoración del texto, color,
agregar separación entre hipervínculos. */
.menu {
text-decoration: none; /*Elimina subrayado*/
color: brown; /*Color texto*/
padding-right: 1.5vw; /*Separación entre el texto del menu*/
font-size: 2vw; /*Tamaño de fuente*/
}
/* Asignar a selector de clase(hipervinculo) las
propiedades: font-size,color,text-decoration */
.hipervinculo {
font-size: 2vw;
color: rgb(212, 199, 195);
padding: 2%;
text-decoration: none;
}
/* Card para la imagen */
.card {
background: radial-gradient(teal, rgba(235, 228, 228, 0.897));
width: 20vw;
height: 34vh;
box-shadow: 0 1px 2px 0 rgba(235, 228, 228, 0.897);
border-radius: 2vh;
/* Asignar las propiedades: display, flex-direction
align-content*/
display: flex; /*un elemento al lado de otro*/
flex-direction: row;
align-items: center;
justify-content: space-around;
}
.card > img {
width: 18vw;
height: auto;
border-radius: 1vh 1vh 0vh 0vh;
border: 3px solid black;
align-items: center;
}
/*pasa cursor, cambia color*/
.card:hover {
background: teal;
box-shadow: 0 1px 2px 0 rgba(235, 228, 228, 0.897); /*Sombra al pasar el cursor por cada caja*/
}
/* GRID PARA S1
Asignar las propiedades: display,grid-template-columns,grid-gap,
justify-items, margin*/
.s1 {
display: grid;
grid-template-columns: repeat(3, minmax(25vw, 1fr));
gap: 1vw;
justify-items: center;
margin: 0.5vw;
}
/* Asignar las propiedades:padding y font-size a la clase texto que
representa el párrafo de la s2*/
.texto {
font-size: 2vw;
padding: 10vw;
text-align: justify;
}
/* Footer Asignar las propiedades:
display: flex;
justify-content, align-items,
column-gap, background-color;
height */
.pie {
display: flex;
justify-content: space-around;
background-color: #d1b6c3;
height: 15vh;
align-items: center;
}
/* Puntos de cortes */
/*para pantallas chicas:*/
@media screen and (max-width: 600px) {
.s1 {
grid-template-columns: repeat(1, minmax(25vw, 1fr));
}
.card {
width: 55vw;
height: 45vh;
}
.card > img {
width: 55vw;
height: auto; /*se ajusta a la card*/
}
.texto {
font-size: 4vw;
}
header {
flex-direction: column;
height: 30vh;
}
.menu {
font-size: 4vw;
}
.logo {
width: 15vw;
}
nav {
/* nav como columna*/
display: flex;
flex-direction: column;
}
.hipervinculo {
font-size: 3vw;
}
}