-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle_header.css
138 lines (127 loc) · 2.67 KB
/
style_header.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
header {
width: auto;
padding: 20px 50px;
background: linear-gradient(45deg, #a7a7a7 0%, rgb(95, 129, 104) 100%);
margin-left: 20px;
margin-top: 15px;
border-right: 0;
}
::selection{
color: white;
background: rgb(95, 129, 104);
}
::-moz-selection{
color: white;
background: rgb(95, 129, 104);
}
.menu{
list-style: none;
display: flex;
justify-content: space-between;
font-size: 27px;
}
.menu li{
flex-grow: 1;
}
h1{
margin-bottom: 35px;
margin-top: 10px;
}
.menu a{
text-decoration: none;
display: block;
margin: 10px 20px;
position: relative;
color: white;
border: 2px solid rgba(255,255,255,.4);
padding: 15px 10px;
text-align: center;
overflow: hidden;
}
.menu a:before,
.menu a:after {
content: "";
position: absolute;
width: 0;
height: 0;
opacity: 0;
box-sizing: border-box;
}
.menu a:before{
bottom: 0;
left: 0;
border-left: 1px solid white;
border-top: 1px solid white;
transition: 0s ease opacity .8s, .2s ease width .4s, .2s ease height .6s;
}
.menu a:after {
top: 0;
right: 0;
border-right: 1px solid white;
border-bottom: 1px solid white;
transition: 0s ease opacity .4s, .2s ease width , .2s ease height .2s;
}
.menu a:hover:before,
.menu a:hover:after {
height: 100%;
width: 100%;
opacity: 1;
}
a:hover:before {transition: 0s ease opacity 0s, .2s ease height, .2s ease width .2s;}
a:hover:after {transition: 0s ease opacity .4s, .2s ease height .4s , .2s ease width .6s;}
a:hover {background: rgba(255,255,255,.2);}
.menu_icon{
justify-content: flex-end;
height: 25px;
display: none;
}
.button_icon{
border: none;
outline: none;
background: none;
width: 23px;
height: 23px;
position: relative;
cursor: pointer;
}
.icon{
height: 3px;
width: 100%;
background-color: black;
display: block;
position: absolute;
transition: transform 0.2s linear, opacity 0.2s linear;
}
.icon.top{
transform: translateY(calc(-1 * 8px - 100%));
}
.icon.middle{
transform: translateY(-50%);
}
.icon.bottom{
transform: translateY(8px);
}
.open_icon_menu .top{
transform: rotate(45deg);
}
.open_icon_menu .middle{
opacity: 0;
}
.open_icon_menu .bottom{
transform: rotate(-45deg);
}
@media (max-width: 1080px){
.menu{ display: none;
margin-top: 15px;}
.menu_icon{ display: flex;}
.open_icon_menu .menu { display: flex;
flex-direction: column;}
.menu a{ margin-left: 0;}
.menu a{ margin-right: 0;}
h1{margin-bottom: 10px;}
.gallery img{height: 70px;}
}
@media (max-width: 1020px){
.menu{ font-size: 80%;}
h1{font-size: 95%;}
}