forked from Ironhack-RMT-ES-FT2404-hinox/css-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
214 lines (158 loc) · 3.42 KB
/
style.css
File metadata and controls
214 lines (158 loc) · 3.42 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
body {
background-color: #55595c;
margin: 0; /* resets the default 8px from most browsers */
text-align: center; /* centers all text elements in the website */
}
#main-header {
background-color: white;
padding: 5px 0; /* top&down left&right */
margin: 20px 5% 20px 5%; /* top right down left */
}
#main-header h1 span {
color: #a70184;
}
.games-container img {
height: 180px;
width: 120px;
}
#main-header span:nth-child(2) {
text-decoration: underline;
}
#brands li {
background-color: white;
padding: 10px;
border: 2px solid black;
list-style-position: inside; /* moves the bullet point inside the element */
margin-right: 40px; /* same as native left separation for bullet point */
}
#brands ul > li:nth-child(even) {
background-color: #a70184;
}
#access-buttons button {
width: 50px;
height: 50px;
border-radius: 25px;
}
#access-buttons button:hover {
background-color: #c0c6cb;
}
#access-buttons button:active {
background-color: #a70184;
color: antiquewhite;
}
#brands li::first-letter {
font-size: 22px;
}
#brands li::marker {
color: blue;
content: "👾 ";
/* font-size: 30px; */
}
#brands li:hover::after {
content: " - Oferta";
}
/* ejemplo de modificar texto con css. */
/* #brands li:hover span {
visibility: hidden;
}
#brands li:hover::after {
content: "Oferta";
} */
#access-buttons {
background-color: gray;
height: 120px;
display: flex; /* inicializa el uso de flexbox en este contenedor */
flex-direction: row; /* de izquierda a derecha, valor predefinido */
justify-content: space-evenly; /* ajuste eje principal */
align-items: center; /* ajuste eje segundario */
padding-left: 10%; /* % del tamaño del padre */
padding-right: 10%;
position: sticky;
top: 0
}
.games-container .card {
background-color: #fecdf2;
border-radius: 15px;
width: 200px;
height: 400px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
/* align-items y justify content se invierten si la direccion es columnas */
transition: flex-grow 0.5s;
/* las transiciones de tipo flex-grow durarán 0.5 segundos */
}
.games-container {
padding-left: 10%;
padding-right: 10%;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 30px/* separacion general vertical/horizontal de todos los elementos internos*/
}
.games-container .card:hover {
flex-grow: 1;
}
#main-header {
position: relative;
}
#position-absolute {
position: absolute;
bottom: 10px;
right: 15px;
}
#responsive-container {
display: flex;
flex-direction: column;
}
html {
font-size: 16px; /* valor predeterminado */
}
h1 {
font-size: 2.7rem;
}
h2 {
font-size: 2rem;
}
h4 {
font-size: 1.5rem;
}
p {
font-size: 0.8rem;
}
/* asumimos que todo lo que hemos hecho es para movil y para otros dispositivos */
/* SOLO TAMAÑO DE TABLET */
/* @media (min-width: 1030px) { */
@media (width > 560px) {
body {
background-color: rgb(69, 46, 90);
}
#access-buttons button {
width: 80px;
height: 80px;
}
html {
font-size: 20px;
}
}
/* SOLO TAMAÑO DE DESKTOP */
/* @media (min-width: 1030px) { */
@media (width > 1030px) {
body {
background-color: rgb(46, 90, 75);
}
.games-container {
gap: 80px
}
#access-buttons {
justify-content: center;
gap: 50px
}
#responsive-container {
flex-direction: row;
}
html {
font-size: 12px;
}
}