-
Notifications
You must be signed in to change notification settings - Fork 5
/
unusual menu.css
104 lines (86 loc) · 1.71 KB
/
unusual menu.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
* {
margin: 0;
padding: 0;
}
nav {
display: flex;
justify-content: center;
}
ul {
list-style: none;
}
nav > ul > li {
display: inline-block;
float: left;
box-sizing: border-box;
width: 180px;
margin-top: 50px;
}
a {
text-decoration: none;
background-color: #2d3f56;
display: block;
color: white;
width: 180px;
padding: 13px 0;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
box-sizing: border-box;
}
a:hover {
background-color: #f93e3e;
}
nav > ul > li > a {
transform: skew(20deg);
}
nav > ul > li > a > span {
display: block;
transform: skew(-20deg);
}
.hidden li:nth-child(odd) a {
transform: skew(-25deg);
background-image: linear-gradient(185deg, rgba(0,0,0,0.5), #2d3f56 30%)
}
.hidden li:nth-child(even) a {
transform: skew(25deg);
background-image: linear-gradient(175deg, rgba(0,0,0,0.5), #2d3f56 30%)
}
.hidden li:nth-child(even) span {
display: block;
transform: skew(-25deg);
}
.hidden li:nth-child(odd) span {
display: block;
transform: skew(25deg);
}
.hidden li:nth-child(even) a {
position: relative;
left: 5px;
width: 200px;
}
.hidden li:nth-child(odd) a {
position: relative;
left: -5px;
width: 200px;
}
.hidden {
display: none;
}
.hidden li > a {
position: absolute;
}
footer {
position: fixed;
left: 0;
bottom: 0;
padding: 10px;
background: #2d3f56;
color: white;
width: 100%;
}
footer > p {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
}