Repository navigation
Expand file tree
/
Copy pathcss.css
More file actions
90 lines (90 loc) · 1.58 KB
/
Copy pathcss.css
File metadata and controls
90 lines (90 loc) · 1.58 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
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
body{
font-size: 16px;
min-width: 250px;
}
h1 {
font-size: 2rem;
}
.galeria{
font-family: Verdana;
}
.galeria h1{
border-bottom: 5px solid red;
margin-bottom: 40px;
}
.contenedor-imagenes{
display: flex;
width: 90%;
margin: auto;
justify-content: space-around;
flex-wrap: wrap;
border-radius: 3px;
}
.contenedor-imagenes .image{
width: 25%;
position: relative;
max-height: 450px;
margin-bottom: 5px;
box-shadow: 0px 0px 3px 0px rgba(0,0,0,.75);
}
.image img{
width: 100%;
height: 100%;
object-fit: contain;
}
.overlay{
position: absolute;
bottom: 0px;
left: 0px;
background: rgba(199, 18, 18, 0.774);
height: 0px;
width: 100%;
overflow: hidden;
transition: 0.5s ease;
}
.overlay h2{
color: white;
font-weight: 300px;
position: absolute;
top: 50%;
left: 50%;
text-align: center;
transform: translate(-50%, -50%);
}
.image:hover .overlay{
height: 100%;
cursor: pointer;
}
@media screen and (max-width:1000px){
.contenedor-imagenes{
width: 95%;
}
}
@media screen and (max-width:700px){
.contenedor-imagenes{
width: 90%;
}
.contenedor-imagenes .image{
width: 48%;
}
}
@media screen and (max-width:450px){
h1{
font-size: 22px;
}
.contenedor-imagenes{
width: 98%;
}
.contenedor-imagenes .image{
width: 48%;
}
}
a {
text-decoration: none; /* Removes underline */
color: white; /* Sets color to white */
}