File size: 2,122 Bytes
87b3b3a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#menu {
	position: fixed;
	left: 0px;
	top: 10px;
	z-index: 1;
}

#menu, #menu ul {
	margin: 0;
	padding: 0px;
	list-style-type: none;
	width: 180px;
}

#menu a, #menu h2 {
	display: block;
	text-decoration: none;
	padding-left: 16px;
	background-color: #000;
	line-height: 200%;
}

#menu h2 {
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	padding-right: 16px;
	border-top-left-radius: 10px;
}

#menu a {
	position: relative;
	z-index: 1;
	outline-style: none;
}

#menu a.active:before {
	content: "●";
	position: absolute;
	left: 2px;
	top: 0;
}

#menu a:not(:last-child) {
	border-right: 3px solid #fff;
}

#menu li {
	position: relative;
}

#menu li:first-child > * {
	border-top-right-radius: 10px;
}

#menu li:last-child > * {
	border-bottom-right-radius: 10px;
}

#menu li ul {
	position: absolute;
	left: 0px;
	top: 0px;
	z-index: 0;
}

/* submenu offset */

#menu li li:not(:first-child) a {
	margin-left: 3px;
}

#menu li li:first-child a {
	padding-left: 19px;
}

#menu li li:first-child a.active:before {
	left: 5px;
}

/* item hovers */

#menu li:hover > a {
	background-color: #333;
}

/* main menu transitions */

#menu li, #menu h2 {
	-webkit-transition: all 1s;
	-moz-transition: all 1s;
	transition: all 1s;
}

#menu > li:not(:first-child) {
	-webkit-transform: translate(-100%, 0);
	-moz-transform: translate(-100%, 0);
	-ms-transform: translate(-100%, 0);
	transform: translate(-100%, 0);
}

#menu > li:first-child {
	-webkit-transform-origin: 0 100%;
	-moz-transform-origin: 0 100%;
	-ms-transform-origin: 0 100%;
	-webkit-transform-origin: 0 100%;

	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	transform: rotate(90deg);
}

#menu:hover > * {
	-webkit-transform: none !important;
	-moz-transform: none !important;
	-ms-transform: none !important;
	transform: none !important;
}

#menu:hover h2 {
	border-top-left-radius: 0px;
}

/* submenu transitions */

#menu li ul {
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	transition: all 0.5s;
}

#menu li:hover ul {
	display: block;
}

#menu li:hover ul {
	left: 180px;
}