-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle juegos.css
91 lines (79 loc) · 1.8 KB
/
style juegos.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial;
}
nav {
text-align: right;
padding: 30px 50px 0 0
}
nav > a {
color: black;
font-weight: 300;
text-decoration: none;
margin-right: 10px;
}
nav > a:hover {
text-decoration: underline;
}
header {
width: 100%;
height: 400px 300px;
background: hsla(317,45%,52%,0.9);
background: -webkit-linear-gradient(to right, hsla(340,95%,50%,0.4), hsla(317,45%,52%,0.4)), url(./img/fondojuegos.jpg);
background: linear-gradient(to right, hsla(340,95%,50%,0.4), hsla(317,45%,52%,0.4)), url(./img/fondojuegos.jpg);
background-size: 1350px 500px;
}
header .textos-header {
display: flex;
height: 200px;
width: 100%;
align-items: center;
justify-content: center;
}
.textos-header h1 {
font-size: 50px;
color: black;
}
/* Estilos básicos para la sección */
.juegos {
display: flex;
justify-content: center;
align-items: center;
min-height: 10vh;
padding: 20px;
box-sizing: border-box;
}
/* Estilos para la galería de imágenes */
.galeria-port {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 20px;
}
/* Estilos para las imágenes */
.imagen-port img {
max-width: 100%;
height: auto;
}
/* Estilos para la versión responsiva */
@media screen and (max-width: 1024px) {
.galeria-port {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width:500px) {
.textos-header h1 {
nav {
text-align: center;
padding: 30px 0 0 0;
}
nav > a {
margin-right: 5px;
}
font-size: 20px;
margin-left: 5px;
}
}