-
Notifications
You must be signed in to change notification settings - Fork 3
/
hamburger.css
186 lines (163 loc) · 4.95 KB
/
hamburger.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
183
184
185
186
/*
Semantic UI Hamburger Menu (not oficial)
I understand why Semantic UI creators doesn't want to add more responsive debt to core project. I respect the nature of Semantic UI project because I love what these guys created there. But I need a Hamburger Menu. Maybe you too.
By @betoayesa.
**This file include some responsive helper clases from https://github.com/Semantic-Org/Semantic-UI/issues/1114
*/
/* Hamburger Clases Implemented for Mobile Only. Up to you to add it for other breakpoints */
/* Hamburger hidden by default */
.hamburger{
display:none
}
/* Mobile */
@media only screen and (max-width: 767px) {
[class*="mobile hidden"],
[class*="tablet only"]:not(.mobile),
[class*="computer only"]:not(.mobile),
[class*="large screen only"]:not(.mobile),
[class*="widescreen only"]:not(.mobile),
[class*="or lower hidden"] {
display: none !important;
}
.hamburger {
width: 20px;
height: 20px;
position: absolute;
right: 9px;
top: 13px;
cursor: pointer;
display: block;
}
.hamburger span {
display: block;
height: 3px;
background: #000;
margin: 0 0 3px;
}
.hamburger:hover {
-moz-opacity: 1;
-khtml-opacity: 1;
-webkit-opacity: 1;
opacity: 1;
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(opacity=100);
filter: alpha(opacity=100);
-moz-transition-duration: .2s;
-webkit-transition-duration: .2s;
-o-transition-duration: .2s;
transition-duration: .2s;
}
.hamburger.active {
}
.hamburger.active .hamburger-bun {
margin: 0;
-webkit-transform-origin: center center;
-moz-transform-origin: center center;
-o-transform-origin: center center;
transform-origin: center center;
}
.hamburger.active .hamburger-bun:first-child {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
-webkit-transition: all .2s ease-out;
-moz-transition: all .2s ease-out;
-o-transition: all .2s ease-out;
transition: all .2s ease-out;
-webkit-transition: all .2s ease;
-moz-transition: all .2s ease;
-ms-transition: all .2s ease;
-o-transition: all .2s ease;
transition: all .2s ease;
margin-top: 3px;
}
.hamburger.active .hamburger-bun:last-child {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
-webkit-transition: all .2s ease-out;
-moz-transition: all .2s ease-out;
-o-transition: all .2s ease-out;
transition: all .2s ease-out;
-webkit-transition: all .2s ease;
-moz-transition: all .2s ease;
-ms-transition: all .2s ease;
-o-transition: all .2s ease;
transition: all .2s ease;
margin-top: -3px;
}
.hamburger.active .hamburger-patty {
display: none;
}
.ui.stackable.menu .item:not(.header){
display:none;
}
.ui.stackable.menu.open .item{
display:block;
}
.ui.stackable.menu.open {
height:inherit
}
}
/* Tablet / iPad Portrait */
@media only screen and (min-width: 768px) and (max-width: 991px) {
[class*="mobile only"]:not(.tablet),
[class*="tablet hidden"],
[class*="computer only"]:not(.tablet),
[class*="large screen only"]:not(.tablet),
[class*="widescreen only"]:not(.tablet),
[class*="or lower hidden"]:not(.mobile) {
display: none !important;
}
}
/* Computer / Desktop / iPad Landscape */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
[class*="mobile only"]:not(.computer),
[class*="tablet only"]:not(.computer),
[class*="computer hidden"],
[class*="large screen only"]:not(.computer),
[class*="widescreen only"]:not(.computer),
[class*="or lower hidden"]:not(.tablet):not(.mobile) {
display: none !important;
}
}
/* Large Monitor */
@media only screen and (min-width: 1200px) and (max-width: 1919px) {
[class*="mobile only"]:not([class*="large screen"]),
[class*="tablet only"]:not([class*="large screen"]),
[class*="computer only"]:not([class*="large screen"]),
[class*="large screen hidden"],
[class*="widescreen only"]:not([class*="large screen"]),
[class*="or lower hidden"]:not(.computer):not(.tablet):not(.mobile) {
display: none !important;
}
}
/* Widescreen Monitor */
@media only screen and (min-width: 1920px) {
[class*="mobile only"]:not([class*="widescreen"]),
[class*="tablet only"]:not([class*="widescreen"]),
[class*="computer only"]:not([class*="widescreen"]),
[class*="large screen only"]:not([class*="widescreen"]),
[class*="widescreen hidden"],
[class*="widescreen or lower hidden"] {
display: none !important;
}
}
/* Fix inverted menu dropdowns */
.ui.menu.inverted .ui.dropdown .menu.inverted>.item{
background: #1b1c1d;
color:white;
}
.ui.menu.inverted .dropdown.item .menu {
background: #1b1c1d;
color:white;
}
.ui.menu.inverted .ui.dropdown .menu>.item:hover {
color: rgba(0,0,0,.05)!important;
cursor:pointer;
cursor:'hand';
background: rgba(0,0,0,.95)!important;
}