-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
182 lines (158 loc) · 3.46 KB
/
style.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
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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
/*Reseteo de margenes y espaciados*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
/* Configuracion imagen de fondo*/
body {
min-height: 100vh;
background: url("background.jpg") no-repeat;
background-size: cover;
background-position: center;
}
/* Configuracion posicion de header*/
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 1.3rem 10%;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
/* Configuracion de fondo del header*/
.header::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.1);
backdrop-filter: blur(50px);
z-index: -1;
}
/* Configuracion animacion al pasar curso en header*/
.header::after {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.4),
transparent
);
transition: 0.5s;
}
header:hover::after {
left: 100%;
}
/* Configuracion de logo*/
.logo {
font-size: 2rem;
color: #ffffff;
text-decoration: none;
font-weight: 700;
}
/* Configuracion de enlaces del navbar*/
.navbar a {
font-size: 1.15rem;
color: #fff;
text-decoration: none;
font-weight: 500;
margin-left: 2.5rem;
}
/* Detector de click en el navbar*/
#check {
display: none;
}
/* configuracion en el icono del navbar*/
.icons {
position: absolute;
right: 5%;
font-size: 2.8rem;
color: #fff;
cursor: pointer;
display: none;
}
/* Empiezan Breackpoints*/
@media (max-width: 900px) {
.header {
padding: 1.3rem 5%;
}
}
/* Visualizacion del navbar en mobile*/
@media (max-width: 768px) {
.icons {
display: inline-flex;
}
/* Ocultado del close al abrir el navbar */
#check:checked ~ .icons #menu-icon {
display: none;
}
/* Ocultador del close hasta no precionar el navbar*/
.icons #close-icon {
display: none;
}
/* Mostrador del close al abrir el navbar*/
#check:checked ~ .icons #close-icon {
display: block;
}
/*Configuracion de altura y estilo del navbar en mobile*/
.navbar {
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 0;
background: rgba(0, 0, 0, 0.1);
backdrop-filter: blur(50px);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: 0.3s ease;
}
/* Despliegue de conteiner del navbar*/
#check:checked ~ .navbar {
height: 17.7rem;
}
/*Alineacion de enlaces del navbar*/
.navbar a {
display: block;
font-size: 1.1rem;
margin: 1.5rem 0;
text-align: center;
transform: translateY(-50px);
opacity: 0;
transition: 0.3s ease;
}
/* Despliegue de enlances del navbar */
#check:checked ~ .navbar a {
transform: translateY(0);
opacity: 1;
transition-delay: calc(0.15s * var(--i));
}
}
/*Termina NavBar*/
/*Empieza Slider*/
.conteiner h1 {
display: inline-block;
text-align: center;
}
.title-navbar {
color: rgb(255, 255, 255);
position: absolute;
top: 50%;
left: 50%;
transform: traslate(-50%, -50%);
font-size: 3.6rem;
text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}