-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
279 lines (244 loc) · 6 KB
/
styles.css
File metadata and controls
279 lines (244 loc) · 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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial Narrow', Arial, sans-serif;
}
/* Estilo para el cuerpo de la página */
body {
display: flex;
flex-direction: column;
min-height: 100vh;
background: rgb(28, 2, 2);
margin: 0;
padding: 10px;
text-align: justify;
}
/* Estilo para la barra de navegación */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
color: white;
padding: 10px;
}
/* Estilo para el logo dentro de la barra de navegación */
.logo {
width: 50px;
height: 50px;
margin-right: 10px;
}
/* Estilo para el contenedor de título y logo */
.container {
display: flex;
align-items: center;
color: white;
}
/* Estilo para los enlaces dentro de la barra de navegación */
.links {
display: flex;
align-items: center;
list-style: none;
margin: 0;
}
/* Estilo para los elementos de lista dentro de los enlaces */
.links li {
margin: 0 10px;
}
/* Estilo para los enlaces dentro de los elementos de lista */
.links a {
text-decoration: none;
color: white;
font-size: 20px;
}
/* Importa las fuentes */
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:400,700');
@import url('https://fonts.googleapis.com/css?family=Oswald');
/* Reseteo general de estilos para todos los elementos */
*,
*:before,
*:after {
box-sizing: border-box;
position: relative;
transition: all 0.5s ease;
}
/* Estilo para el contenedor principal */
.site {
display: grid;
grid-template-rows: 3fr 2fr;
grid-template-columns: 5rem 1fr 1fr 5rem;
box-shadow: 0 .5rem 2rem rgba(0, 0, 0, 0.1);
border-radius: 10px;
width: 1500px;
height: 830px;
margin: 20px auto;
background-color: white;
font-family: 'Josefin Sans', sans-serif;
--total: 4;
}
/* Estilo para el input oculto */
input[name="scene"] {
display: none;
}
/* Estilo para los inputs seleccionados */
input[value='1']:checked ~ .site { --scene: 1; }
input[value='2']:checked ~ .site { --scene: 2; }
input[value='3']:checked ~ .site { --scene: 3; }
input[value='4']:checked ~ .site { --scene: 4; }
/* Oculta las etiquetas correspondientes cuando el input está seleccionado */
input[value="1"]:checked ~ * label[data-scene='1'],
input[value="2"]:checked ~ * label[data-scene='2'],
input[value="3"]:checked ~ * label[data-scene='3'],
input[value="4"]:checked ~ * label[data-scene='4'] {
display: none;
}
/* Oculta otros elementos cuando el input está seleccionado */
input[value="1"]:checked ~ * [data-scene]:not([data-scene="1"]),
input[value="2"]:checked ~ * [data-scene]:not([data-scene="2"]),
input[value="3"]:checked ~ * [data-scene]:not([data-scene="3"]),
input[value="4"]:checked ~ * [data-scene]:not([data-scene="4"]) {
opacity: 0;
transform: translateX(-25%);
}
/* Muestra y mueve los elementos correspondientes cuando el input está seleccionado
input[value="1"]:checked ~ * [data-scene="1"],
input[value="2"]:checked ~ * [data-scene="2"],
input[value="3"]:checked ~ * [data-scene="3"],
input[value="4"]:checked ~ * [data-scene="4"] {
transform: translateX(25%);
} */
/* Estilo para las capas */
.layer {
position: absolute;
margin: auto; /* Centra la capa */
}
/* Estilo para el paisaje */
.landscape {
display: flex;
align-items: center;
grid-row: 1 / 2;
grid-column: 1 / -1;
background-color: #a8fc00;
background-image: url('./imgs/asda.webp');
background-repeat: no-repeat;
background-size: cover;
background-position: center 20%;
overflow: hidden;
height: 300px;
}
/* Estilo para el texto del paisaje */
.landscape-text {
display: inline-block;
font-size: 25vh;
font-weight: bold;
background: inherit;
background-image: url('');
background-clip: text;
-webkit-background-clip: text;
background-size: 160% auto;
color: transparent;
text-align: center;
width: 100%;
margin: 0 auto;
padding: 0 2rem;
}
/* Estilo para el lado izquierdo */
.left-side {
grid-row: 1 / 1;
grid-column: 2 / 3;
font-family: 'Oswald';
}
/* Estilo para los números de página
.page-numbers {
color: rgb(255, 255, 255);
overflow: hidden;
}
.page-numbers:after {
content: '/' attr(data-total);
font-size: 1rem;
position: absolute;
top: 0;
left: 4rem;
}
/* Estilo para el número de página */
/* .page-number {
font-size: 4rem;
line-height: 4.2rem;
} */
/* .page-number--tens {
align-self: flex-end;
}
.page-number--ones {
position: absolute;
top: 0;
left: 0.5em;
transform: translateY(calc((-100% * (var(--scene) / var(--total) - 1 / var(--total)))));
} */
/* Estilo para el contenido izquierdo */
.left-content {
grid-row: 2 / 4;
grid-column: 1 / 3;
}
/* Estilo para el contenido derecho */
.right-content {
color: rgb(0, 0, 0);
grid-row: 2 / 3;
grid-column: 1 / 4;
overflow: auto;
}
.right-content > .layer {
padding: 30px;
}
/* Estilo para la navegación deslizante */
.slide-nav {
position: absolute;
right: 0;
bottom: 0;
overflow: hidden;
}
.nav-button-container {
display: flex;
position: absolute;
top: 0;
transition: none;
transform: translateX(calc(100% + (-5rem * (var(--scene) + 1))));
opacity: 0;
}
.button-container {
display: flex;
outline: none;
right: 0;
}
.nav-button {
display: inline-block;
padding: 0.5em;
width: 5rem;
background: rgba(255, 0, 0, 0.8);
color: white;
cursor: pointer;
font-family: inherit;
height: 2rem;
border: none;
outline: none;
font-size: 1rem;
}
/* Estilo para el héroe */
.hero {
color: rgb(255, 255, 255);
grid-row: 1 / 2;
grid-column: 1 / -1;
}
.hero > .layer {
display: flex;
height: 40%;
}
/* Estilo para el footer */
.footer {
display: flex;
align-items: center;
justify-content: center;
color: white;
padding: 10px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
background-color: rgb(28, 2, 2);
}