-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader_style.css
More file actions
104 lines (91 loc) · 2.1 KB
/
header_style.css
File metadata and controls
104 lines (91 loc) · 2.1 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
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300&display=swap');
/*HEADER*/
header {
padding: 15px;
height: 80%;
background: url("img/fondo_header.jpeg");
background-position: top;
background-size: cover;
background-attachment: fixed;
font-family: 'Raleway', sans-serif;
box-sizing: border-box;
}
#img_menu {
padding: 5px;
border-radius: 7px;
transition: opacity 0.35s ease-in-out;
height: 32px;
z-index: 0;
}
#boton_menu {
position: absolute;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
outline: none;
border: 3px solid #FFFFFF;
background-color: transparent;
}
/*Pseudoelementos para hacer el efecto del botón del header*/
#boton_menu::before, #boton_menu::after {
content: "";
display: block;
height: 2.8px;
width: 32px;
background-color: white;
position: absolute;
transition: transform 0.3s ease-in-out;
border-radius: 20px;
}
.hacerAnimacion::after {
transform: rotate(45deg);
}
.hacerAnimacion::before {
transform: rotate(-45deg);
}
#nav {
display: flex;
flex-direction: column;
position: absolute;
left: 0;
right: 0;
top: 0;
box-sizing: border-box;
height: auto;
width: 100%;
z-index: 0;
overflow: hidden;
transform: translateY(-100%);
transition: transform 0.3s ease-in-out;
}
.item_menu {
display: flex;
justify-content: center;
align-items: center;
font-size: 2em;
height: 75px;
width: 100%;
background-color: #484848;
text-decoration: none;
text-emphasis: none;
color: white;
border-bottom: 1px solid white;
z-index: 0;
}
/*Pseudoelementos para hacer el efecto del menú de colorearse de rojo*/
.item_menu::before {
content: " ";
position: absolute;
display: block;
height: 75px;
width: 100%;
background-color: #E04545;
transform: translateY(400%);
z-index: -1;
transition: transform 0.4s ease-in-out;
}
.item_menu:hover::before, .item_menu:focus::before {
transform: translateY(0%);
}