ellipsis-compass 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/lib/ellipsis-compass.rb +4 -0
- data/stylesheets/animation/_animate.scss +1206 -0
- data/stylesheets/animation/_animation.scss +121 -0
- data/stylesheets/animation/_animations.scss +771 -0
- data/stylesheets/animation/_transit.scss +425 -0
- data/stylesheets/animation/_transitions.scss +320 -0
- data/stylesheets/base/_breakpoints.scss +64 -0
- data/stylesheets/base/_document.scss +219 -0
- data/stylesheets/base/_global.scss +88 -0
- data/stylesheets/base/_normalize.scss +406 -0
- data/stylesheets/component/_component.scss +939 -0
- data/stylesheets/component/_ui.scss +955 -0
- data/stylesheets/flexbox/_flexbox.scss +305 -0
- data/stylesheets/font/_icons.scss +1492 -0
- data/stylesheets/font/_ubuntu.scss +38 -0
- data/stylesheets/form/_form.scss +836 -0
- data/stylesheets/grid/_grid.scss +312 -0
- data/stylesheets/helpers/_all.scss +8 -0
- data/stylesheets/helpers/_component.scss +177 -0
- data/stylesheets/helpers/_convenience.scss +277 -0
- data/stylesheets/helpers/_functions.scss +427 -0
- data/stylesheets/helpers/_grid.scss +39 -0
- data/stylesheets/helpers/_hardware-acceleration.scss +22 -0
- data/stylesheets/helpers/_mixins.scss +207 -0
- data/stylesheets/helpers/_touch.scss +107 -0
- data/stylesheets/helpers/_visibility.scss +138 -0
- data/stylesheets/image/_images.scss +19 -0
- data/stylesheets/imports/elements/_autosearch.scss +11 -0
- data/stylesheets/imports/elements/_badge.scss +23 -0
- data/stylesheets/imports/elements/_barchart.scss +254 -0
- data/stylesheets/imports/elements/_form.scss +8 -0
- data/stylesheets/imports/elements/_loginform.scss +6 -0
- data/stylesheets/imports/elements/_modellist.scss +14 -0
- data/stylesheets/imports/elements/_pluralize.scss +8 -0
- data/stylesheets/imports/elements/_signupform.scss +6 -0
- data/stylesheets/imports/elements/_slidenotification.scss +65 -0
- data/stylesheets/imports/elements/_stickyreveal.scss +44 -0
- data/stylesheets/imports/elements/_template.scss +7 -0
- data/stylesheets/imports/elements/_veneer.scss +36 -0
- data/stylesheets/shared/_shared.scss +282 -0
- data/stylesheets/touch/ui/_drawer.scss +41 -0
- data/stylesheets/touch/ui/_dropdown.scss +58 -0
- data/stylesheets/touch/ui/_menu.scss +131 -0
- data/stylesheets/touch/ui/_navbar.scss +44 -0
- data/stylesheets/touch/ui/_toggle.scss +127 -0
- data/stylesheets/touch/ui/_topbar.scss +48 -0
- data/stylesheets/typography/_typography.scss +746 -0
- data/stylesheets/ui/_autocomplete.scss +117 -0
- data/stylesheets/ui/_badge.scss +73 -0
- data/stylesheets/ui/_box.scss +78 -0
- data/stylesheets/ui/_breadcrumb.scss +64 -0
- data/stylesheets/ui/_button.scss +395 -0
- data/stylesheets/ui/_carousel.scss +284 -0
- data/stylesheets/ui/_collapsible.scss +61 -0
- data/stylesheets/ui/_container.scss +297 -0
- data/stylesheets/ui/_datepicker.scss +218 -0
- data/stylesheets/ui/_drawer.scss +96 -0
- data/stylesheets/ui/_dropdown.scss +394 -0
- data/stylesheets/ui/_file.scss +147 -0
- data/stylesheets/ui/_gallery.scss +219 -0
- data/stylesheets/ui/_label.scss +167 -0
- data/stylesheets/ui/_loading.scss +70 -0
- data/stylesheets/ui/_mediaobject.scss +108 -0
- data/stylesheets/ui/_menu.scss +287 -0
- data/stylesheets/ui/_menutab.scss +175 -0
- data/stylesheets/ui/_modal.scss +47 -0
- data/stylesheets/ui/_navbar.scss +315 -0
- data/stylesheets/ui/_notification.scss +154 -0
- data/stylesheets/ui/_pagination.scss +137 -0
- data/stylesheets/ui/_parallax.scss +233 -0
- data/stylesheets/ui/_popover.scss +3 -0
- data/stylesheets/ui/_rating.scss +106 -0
- data/stylesheets/ui/_sidebar.scss +110 -0
- data/stylesheets/ui/_slidingpanel.scss +57 -0
- data/stylesheets/ui/_social.scss +213 -0
- data/stylesheets/ui/_sticky.scss +9 -0
- data/stylesheets/ui/_table.scss +423 -0
- data/stylesheets/ui/_tabs.scss +242 -0
- data/stylesheets/ui/_toggle.scss +49 -0
- data/stylesheets/ui/_tooltip.scss +57 -0
- data/stylesheets/ui/_topbar.scss +210 -0
- data/stylesheets/ui/_tree.scss +3 -0
- data/stylesheets/ui/_window.scss +205 -0
- metadata +140 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
@mixin _ui-veneer(
|
4
|
+
$top:null,
|
5
|
+
$z-index:null
|
6
|
+
){
|
7
|
+
position: fixed;
|
8
|
+
top: $top;
|
9
|
+
width: 100%;
|
10
|
+
z-index: $z-index;
|
11
|
+
@include flexbox($justification: center);
|
12
|
+
}
|
13
|
+
|
14
|
+
@mixin ui-veneer($class:null,
|
15
|
+
$top:100px,
|
16
|
+
$z-index:$global-z-index + 9999
|
17
|
+
){
|
18
|
+
overlay-element{
|
19
|
+
@if $class != null{
|
20
|
+
&.#{$class} {
|
21
|
+
@include _ui-veneer($top,$z-index);
|
22
|
+
@content;
|
23
|
+
}
|
24
|
+
|
25
|
+
} @else {
|
26
|
+
@include _ui-veneer($top,$z-index);
|
27
|
+
@content;
|
28
|
+
}
|
29
|
+
@include tablet-content(){
|
30
|
+
top:60px;
|
31
|
+
}
|
32
|
+
@include phone-content(){
|
33
|
+
top:5px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,282 @@
|
|
1
|
+
@import "compass/support";
|
2
|
+
|
3
|
+
// This mixin provides basic support for CSS3 properties and
|
4
|
+
// their corresponding experimental CSS2 properties when
|
5
|
+
// the implementations are identical except for the property
|
6
|
+
// prefix.
|
7
|
+
@mixin experimental($property, $value,
|
8
|
+
$moz : $experimental-support-for-mozilla,
|
9
|
+
$webkit : $experimental-support-for-webkit,
|
10
|
+
$o : $experimental-support-for-opera,
|
11
|
+
$ms : $experimental-support-for-microsoft,
|
12
|
+
$khtml : $experimental-support-for-khtml,
|
13
|
+
$official : true
|
14
|
+
) {
|
15
|
+
@if $webkit and $experimental-support-for-webkit { -webkit-#{$property} : $value; }
|
16
|
+
@if $khtml and $experimental-support-for-khtml { -khtml-#{$property} : $value; }
|
17
|
+
@if $moz and $experimental-support-for-mozilla { -moz-#{$property} : $value; }
|
18
|
+
@if $ms and $experimental-support-for-microsoft { -ms-#{$property} : $value; }
|
19
|
+
@if $o and $experimental-support-for-opera { -o-#{$property} : $value; }
|
20
|
+
@if $official { #{$property} : $value; }
|
21
|
+
}
|
22
|
+
|
23
|
+
// This mixin is a shortcut for applying only a single experimental value
|
24
|
+
@mixin experimental-only-for($property, $value,
|
25
|
+
$moz : false,
|
26
|
+
$webkit : false,
|
27
|
+
$o : false,
|
28
|
+
$ms : false,
|
29
|
+
$khtml : false,
|
30
|
+
$official : false
|
31
|
+
) {
|
32
|
+
@include experimental($property, $value, $moz, $webkit, $o, $ms, $khtml, $official);
|
33
|
+
}
|
34
|
+
|
35
|
+
// Same as experimental(), but for cases when the property is the same and the value is vendorized
|
36
|
+
@mixin experimental-value($property, $value,
|
37
|
+
$moz : $experimental-support-for-mozilla,
|
38
|
+
$webkit : $experimental-support-for-webkit,
|
39
|
+
$o : $experimental-support-for-opera,
|
40
|
+
$ms : $experimental-support-for-microsoft,
|
41
|
+
$khtml : $experimental-support-for-khtml,
|
42
|
+
$official : true
|
43
|
+
) {
|
44
|
+
@if $webkit and $experimental-support-for-webkit { #{$property} : -webkit-#{$value}; }
|
45
|
+
@if $khtml and $experimental-support-for-khtml { #{$property} : -khtml-#{$value}; }
|
46
|
+
@if $moz and $experimental-support-for-mozilla { #{$property} : -moz-#{$value}; }
|
47
|
+
@if $ms and $experimental-support-for-microsoft { #{$property} : -ms-#{$value}; }
|
48
|
+
@if $o and $experimental-support-for-opera { #{$property} : -o-#{$value}; }
|
49
|
+
@if $official { #{$property} : #{$value}; }
|
50
|
+
}
|
51
|
+
|
52
|
+
// @private
|
53
|
+
// Check a given support list for support of a particular browser
|
54
|
+
@function supported(
|
55
|
+
$prefix,
|
56
|
+
$support-list
|
57
|
+
) {
|
58
|
+
$keys: moz, webkit, o, ms, khtml, official;
|
59
|
+
$index: index($keys, $prefix);
|
60
|
+
|
61
|
+
@if $index {
|
62
|
+
@if $index == 6 and length($support-list) == 5 {
|
63
|
+
@return official;
|
64
|
+
} @else {
|
65
|
+
@return nth($support-list, $index);
|
66
|
+
}
|
67
|
+
} @else {
|
68
|
+
@warn 'Please pass a valid browser for $prefix: moz, webkit, o, ms, khtml, or official.';
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
// A debug tool for checking browser support
|
73
|
+
@mixin debug-support-matrix($experimental: true, $ie: true) {
|
74
|
+
@debug #{'$moz-'}$experimental-support-for-mozilla
|
75
|
+
#{'$webkit-'}$experimental-support-for-webkit
|
76
|
+
#{'$opera-'}$experimental-support-for-opera
|
77
|
+
#{'$microsoft-'}$experimental-support-for-microsoft
|
78
|
+
#{'$khtml-'}$experimental-support-for-khtml;
|
79
|
+
@debug #{'$ie6-'}$legacy-support-for-ie6
|
80
|
+
#{'$ie7-'}$legacy-support-for-ie7
|
81
|
+
#{'$ie8-'}$legacy-support-for-ie8;
|
82
|
+
}
|
83
|
+
|
84
|
+
// Capture the current exerimental support settings
|
85
|
+
@function capture-experimental-matrix() {
|
86
|
+
@return $experimental-support-for-mozilla
|
87
|
+
$experimental-support-for-webkit
|
88
|
+
$experimental-support-for-opera
|
89
|
+
$experimental-support-for-microsoft
|
90
|
+
$experimental-support-for-khtml;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Capture the current legacy-ie support settings
|
94
|
+
@function capture-legacy-ie-matrix() {
|
95
|
+
@return $legacy-support-for-ie6
|
96
|
+
$legacy-support-for-ie7
|
97
|
+
$legacy-support-for-ie8;
|
98
|
+
}
|
99
|
+
|
100
|
+
// Capture and store support
|
101
|
+
$experimental-matrix: capture-experimental-matrix();
|
102
|
+
$legacy-ie-matrix: capture-legacy-ie-matrix();
|
103
|
+
|
104
|
+
@mixin capture-experimental-matrix {
|
105
|
+
$experimental-matrix: capture-experimental-matrix();
|
106
|
+
}
|
107
|
+
|
108
|
+
@mixin capture-legacy-ie-matrix {
|
109
|
+
$legacy-ie-matrix: capture-legacy-ie-matrix();
|
110
|
+
}
|
111
|
+
|
112
|
+
@mixin capture-support-matrix {
|
113
|
+
@include capture-experimental-matrix;
|
114
|
+
@include capture-legacy-ie-matrix;
|
115
|
+
}
|
116
|
+
|
117
|
+
// Change the experimental-support settings in specific contexts.
|
118
|
+
@mixin set-experimental-support(
|
119
|
+
$moz : false,
|
120
|
+
$webkit : false,
|
121
|
+
$o : false,
|
122
|
+
$ms : false,
|
123
|
+
$khtml : false
|
124
|
+
) {
|
125
|
+
$experimental-support-for-mozilla : $moz;
|
126
|
+
$experimental-support-for-webkit : $webkit;
|
127
|
+
$experimental-support-for-opera : $o;
|
128
|
+
$experimental-support-for-microsoft : $ms;
|
129
|
+
$experimental-support-for-khtml : $khtml;
|
130
|
+
}
|
131
|
+
|
132
|
+
@mixin capture-and-set-experimental(
|
133
|
+
$moz : false,
|
134
|
+
$webkit : false,
|
135
|
+
$o : false,
|
136
|
+
$ms : false,
|
137
|
+
$khtml : false
|
138
|
+
) {
|
139
|
+
@include capture-experimental-matrix;
|
140
|
+
@include set-experimental-support($moz, $webkit, $o, $ms, $khtml);
|
141
|
+
}
|
142
|
+
|
143
|
+
@mixin capture-and-adjust-experimental(
|
144
|
+
$moz : $experimental-support-for-mozilla,
|
145
|
+
$webkit : $experimental-support-for-webkit,
|
146
|
+
$o : $experimental-support-for-opera,
|
147
|
+
$ms : $experimental-support-for-microsoft,
|
148
|
+
$khtml : $experimental-support-for-khtml
|
149
|
+
) {
|
150
|
+
@include capture-experimental-matrix;
|
151
|
+
@include set-experimental-support($moz, $webkit, $o, $ms, $khtml);
|
152
|
+
}
|
153
|
+
|
154
|
+
// Change the legacy-support-for-ie* settings in specific contexts.
|
155
|
+
@mixin set-legacy-ie-support(
|
156
|
+
$ie6: false,
|
157
|
+
$ie7: false,
|
158
|
+
$ie8: false
|
159
|
+
) {
|
160
|
+
$legacy-support-for-ie6: $ie6;
|
161
|
+
$legacy-support-for-ie7: $ie7;
|
162
|
+
$legacy-support-for-ie8: $ie8;
|
163
|
+
}
|
164
|
+
|
165
|
+
@mixin capture-and-set-legacy-ie(
|
166
|
+
$ie6: false,
|
167
|
+
$ie7: false,
|
168
|
+
$ie8: false
|
169
|
+
) {
|
170
|
+
@include capture-legacy-ie-matrix;
|
171
|
+
@include set-legacy-ie-support($ie6, $ie7, $ie8);
|
172
|
+
}
|
173
|
+
|
174
|
+
@mixin capture-and-adjust-legacy-ie(
|
175
|
+
$ie6: $legacy-support-for-ie6,
|
176
|
+
$ie7: $legacy-support-for-ie7,
|
177
|
+
$ie8: $legacy-support-for-ie8
|
178
|
+
) {
|
179
|
+
@include capture-and-set-legacy-ie($ie6, $ie7, $ie8);
|
180
|
+
}
|
181
|
+
|
182
|
+
// Capture current browser support matrix, and set a new matrix of support.
|
183
|
+
@mixin capture-and-set-support(
|
184
|
+
$moz : false,
|
185
|
+
$webkit : false,
|
186
|
+
$o : false,
|
187
|
+
$ms : false,
|
188
|
+
$khtml : false,
|
189
|
+
$ie6 : false,
|
190
|
+
$ie7 : false,
|
191
|
+
$ie8 : false
|
192
|
+
) {
|
193
|
+
// Capture the current state
|
194
|
+
@include capture-support-matrix;
|
195
|
+
|
196
|
+
// Change support settings
|
197
|
+
@include set-experimental-support($moz, $webkit, $o, $ms, $khtml);
|
198
|
+
@include set-legacy-ie-support($ie6, $ie7, $ie8);
|
199
|
+
}
|
200
|
+
|
201
|
+
// Capture current browser support matrix, and set a new matrix of support.
|
202
|
+
@mixin capture-and-adjust-support(
|
203
|
+
$moz : $experimental-support-for-mozilla,
|
204
|
+
$webkit : $experimental-support-for-webkit,
|
205
|
+
$o : $experimental-support-for-opera,
|
206
|
+
$ms : $experimental-support-for-microsoft,
|
207
|
+
$khtml : $experimental-support-for-khtml,
|
208
|
+
$ie6 : $legacy-support-for-ie6,
|
209
|
+
$ie7 : $legacy-support-for-ie7,
|
210
|
+
$ie8 : $legacy-support-for-ie8
|
211
|
+
) {
|
212
|
+
@include capture-and-set-support($moz, $webkit, $o, $ms, $khtml, $ie6, $ie7, $ie8);
|
213
|
+
}
|
214
|
+
|
215
|
+
|
216
|
+
// This mixin allows you to change the experimental support settings for
|
217
|
+
// child (@content) styles.
|
218
|
+
@mixin with-only-support-for(
|
219
|
+
$moz : false,
|
220
|
+
$webkit : false,
|
221
|
+
$o : false,
|
222
|
+
$ms : false,
|
223
|
+
$khtml : false,
|
224
|
+
$ie6 : false,
|
225
|
+
$ie7 : false,
|
226
|
+
$ie8 : false
|
227
|
+
) {
|
228
|
+
// Capture current state
|
229
|
+
$wo-experimental-matrix : capture-experimental-matrix();
|
230
|
+
$wo-legacy-ie-matrix : capture-legacy-ie-matrix();
|
231
|
+
|
232
|
+
// Set new states
|
233
|
+
@include set-experimental-support($moz, $webkit, $o, $ms, $khtml);
|
234
|
+
@include set-legacy-ie-support($ie6, $ie7, $ie8);
|
235
|
+
|
236
|
+
// Apply styles
|
237
|
+
@content;
|
238
|
+
|
239
|
+
// Return to original support settings
|
240
|
+
@include set-experimental-support($wo-experimental-matrix...);
|
241
|
+
@include set-legacy-ie-support($wo-legacy-ie-matrix...);
|
242
|
+
}
|
243
|
+
|
244
|
+
// This mixin is a shortcut for making slight adjustments to browser support
|
245
|
+
// for child (@content) styles
|
246
|
+
@mixin adjust-support-for(
|
247
|
+
$moz : $experimental-support-for-mozilla,
|
248
|
+
$webkit : $experimental-support-for-webkit,
|
249
|
+
$o : $experimental-support-for-opera,
|
250
|
+
$ms : $experimental-support-for-microsoft,
|
251
|
+
$khtml : $experimental-support-for-khtml,
|
252
|
+
$ie6 : $legacy-support-for-ie6,
|
253
|
+
$ie7 : $legacy-support-for-ie7,
|
254
|
+
$ie8 : $legacy-support-for-ie8
|
255
|
+
) {
|
256
|
+
@include with-only-support-for($moz, $webkit, $o, $ms, $khtml, $ie6, $ie7, $ie8) {
|
257
|
+
@content;
|
258
|
+
}
|
259
|
+
}
|
260
|
+
|
261
|
+
// Set a default value if the given arglist is empty
|
262
|
+
@function set-arglist-default(
|
263
|
+
$arglist,
|
264
|
+
$default
|
265
|
+
) {
|
266
|
+
$default: if(length($default) > 0, $default, null);
|
267
|
+
$output: compact();
|
268
|
+
@each $layer in $arglist {
|
269
|
+
$output: append($output, if($layer == 'default', $default, $layer));
|
270
|
+
}
|
271
|
+
@return if(length($output) > 0, $output, $default);
|
272
|
+
}
|
273
|
+
|
274
|
+
// @private Returns the legacy value for a given box-model
|
275
|
+
// - Used by background-clip and -origin.
|
276
|
+
@function legacy-box($box) {
|
277
|
+
$box: unquote($box);
|
278
|
+
@if $box == padding-box { $box: padding; }
|
279
|
+
@if $box == border-box { $box: border; }
|
280
|
+
@if $box == content-box { $box: content; }
|
281
|
+
@return $box;
|
282
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/* touch-ui-drawer */
|
2
|
+
|
3
|
+
|
4
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
5
|
+
|
6
|
+
@mixin _touch-ui-drawer($component:null,$header-component:null,
|
7
|
+
$width:null,
|
8
|
+
$header-height:null,
|
9
|
+
$search-margin:null,
|
10
|
+
$search-width:null
|
11
|
+
){
|
12
|
+
|
13
|
+
min-height:100%;
|
14
|
+
height:100%;
|
15
|
+
overflow:hidden;
|
16
|
+
@extend %#{$component}-background !optional;
|
17
|
+
position:relative;
|
18
|
+
display:none;
|
19
|
+
width:$width;
|
20
|
+
&>header{
|
21
|
+
position:fixed;
|
22
|
+
top:0;
|
23
|
+
left:0;
|
24
|
+
height:$header-height;
|
25
|
+
@include invoke-component-default-state($header-component);
|
26
|
+
width:$width;
|
27
|
+
z-index:999;
|
28
|
+
&>.ui-search,&>ui-search{
|
29
|
+
margin:$search-margin ;
|
30
|
+
width:$search-width;
|
31
|
+
position:relative;
|
32
|
+
input{
|
33
|
+
width:100% !important;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
|
40
|
+
/* public ------------------------------------------------------------------------------------------------------------*/
|
41
|
+
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/* touch-ui-dropdown */
|
2
|
+
|
3
|
+
|
4
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
5
|
+
|
6
|
+
|
7
|
+
@mixin _touch-ui-dropdown($component:null,
|
8
|
+
$li-padding:null,
|
9
|
+
$link-font-size:null,
|
10
|
+
$li-border-bottom:null
|
11
|
+
|
12
|
+
){
|
13
|
+
|
14
|
+
list-style: none;
|
15
|
+
@extend %#{$component}-background !optional;
|
16
|
+
height: auto;
|
17
|
+
@extend %#{$component}-box-shadow !optional;
|
18
|
+
display: none;
|
19
|
+
&.show{
|
20
|
+
display:block;
|
21
|
+
z-index:1;
|
22
|
+
}
|
23
|
+
li,menu-item{
|
24
|
+
padding:$li-padding;
|
25
|
+
border:0;
|
26
|
+
border-bottom:$li-border-bottom;
|
27
|
+
@extend %#{$component}-border !optional;
|
28
|
+
display:list-item;
|
29
|
+
&:last-child{
|
30
|
+
border-bottom:0;
|
31
|
+
}
|
32
|
+
@include span-icon(){
|
33
|
+
margin-right:.5em;
|
34
|
+
}
|
35
|
+
a{
|
36
|
+
@extend %#{$component}-font !optional;
|
37
|
+
font-size:$link-font-size;
|
38
|
+
text-transform:none !important;
|
39
|
+
text-decoration:none !important;
|
40
|
+
&:hover,&:focus{
|
41
|
+
@extend %#{$component}-font !optional;
|
42
|
+
text-transform:none !important;
|
43
|
+
text-decoration:none !important;
|
44
|
+
}
|
45
|
+
&:active{
|
46
|
+
text-transform:none !important;
|
47
|
+
text-decoration:none !important;
|
48
|
+
}
|
49
|
+
&.active{
|
50
|
+
text-transform:none !important;
|
51
|
+
text-decoration:none !important;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
&.divider{
|
55
|
+
display:none;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
/* touch-ui-menu */
|
2
|
+
|
3
|
+
|
4
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
5
|
+
|
6
|
+
|
7
|
+
@mixin _touch-ui-menu($component:null,
|
8
|
+
$z-index:null,
|
9
|
+
$padding:null,
|
10
|
+
$li-border-bottom:null,
|
11
|
+
$li-padding:null,
|
12
|
+
$li-link-padding:null,
|
13
|
+
$icon-font-size:null,
|
14
|
+
$icon-padding:null,
|
15
|
+
$icon-expand-top:null,
|
16
|
+
$icon-expand-right:null,
|
17
|
+
$icon-expand-font-size:null
|
18
|
+
|
19
|
+
){
|
20
|
+
|
21
|
+
$_dropdown-margin-left: margin-left($li-padding);
|
22
|
+
$_dropdown-margin-top: margin-top($li-padding);
|
23
|
+
$_dropdown-margin-bottom: margin-bottom($li-padding);
|
24
|
+
|
25
|
+
|
26
|
+
@extend %#{$component}-background !optional;
|
27
|
+
display: block;
|
28
|
+
list-style: none;
|
29
|
+
padding: $padding;
|
30
|
+
width: 100%;
|
31
|
+
|
32
|
+
li,menu-item,menu-item-dropdown {
|
33
|
+
border: 0;
|
34
|
+
border-bottom: $li-border-bottom;
|
35
|
+
@extend %#{$component}-border !optional;
|
36
|
+
padding: $li-padding;
|
37
|
+
margin-right:0;
|
38
|
+
@extend %#{$component}-font !optional;
|
39
|
+
display:list-item;
|
40
|
+
&:last-child {
|
41
|
+
border-bottom: 0;
|
42
|
+
}
|
43
|
+
a {
|
44
|
+
@extend %#{$component}-font !optional;
|
45
|
+
text-transform: none !important;
|
46
|
+
text-decoration: none !important;
|
47
|
+
padding: $li-link-padding;
|
48
|
+
&:hover, &:focus {
|
49
|
+
text-transform: none !important;
|
50
|
+
text-decoration: none !important;
|
51
|
+
}
|
52
|
+
&:active {
|
53
|
+
text-transform: none !important;
|
54
|
+
text-decoration: none !important;
|
55
|
+
}
|
56
|
+
&.active {
|
57
|
+
text-transform: none !important;
|
58
|
+
text-decoration: none !important;
|
59
|
+
}
|
60
|
+
|
61
|
+
}
|
62
|
+
&>span {
|
63
|
+
&.touch,&[class*='icon-'] {
|
64
|
+
font-size: $icon-font-size;
|
65
|
+
padding: $icon-padding;
|
66
|
+
@extend %#{$component}-icon !optional;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
&.has-search {
|
70
|
+
display: none;
|
71
|
+
}
|
72
|
+
&.divider {
|
73
|
+
display: none;
|
74
|
+
}
|
75
|
+
&.label {
|
76
|
+
display: none;
|
77
|
+
}
|
78
|
+
&.has-dropdown {
|
79
|
+
position: relative;
|
80
|
+
&:after {
|
81
|
+
position: absolute;
|
82
|
+
font-family: $global-icon-font-family;
|
83
|
+
content: "#{$global-icon-dropdown}";
|
84
|
+
top: $icon-expand-top;
|
85
|
+
right: $icon-expand-right;
|
86
|
+
font-size: $icon-expand-font-size;
|
87
|
+
@extend %#{$component}-icon !optional;
|
88
|
+
}
|
89
|
+
&.close {
|
90
|
+
&:after {
|
91
|
+
content: "#{$global-icon-hide}";
|
92
|
+
}
|
93
|
+
}
|
94
|
+
&>.ui-dropdown,&>.touch-ui-dropdown,&>ui-dropdown,&>touch-ui-dropdown{
|
95
|
+
height: auto;
|
96
|
+
margin-top:$_dropdown-margin-top !important;
|
97
|
+
margin-left:-#{$_dropdown-margin-left} !important;
|
98
|
+
margin-bottom:-#{$_dropdown-margin-bottom} !important;
|
99
|
+
&>li,&>menu-item{
|
100
|
+
margin-left:$_dropdown-margin-left !important;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
menu-item-dropdown {
|
106
|
+
position: relative;
|
107
|
+
&:after {
|
108
|
+
position: absolute;
|
109
|
+
font-family: $global-icon-font-family;
|
110
|
+
content: "#{$global-icon-dropdown}";
|
111
|
+
top: $icon-expand-top;
|
112
|
+
right: $icon-expand-right;
|
113
|
+
font-size: $icon-expand-font-size;
|
114
|
+
@extend %#{$component}-icon !optional;
|
115
|
+
}
|
116
|
+
&.close {
|
117
|
+
&:after {
|
118
|
+
content: "#{$global-icon-hide}";
|
119
|
+
}
|
120
|
+
}
|
121
|
+
&>ui-dropdown,&>touch-ui-dropdown,&>ui-mega-dropdown{
|
122
|
+
height: auto;
|
123
|
+
margin-top:$_dropdown-margin-top !important;
|
124
|
+
margin-left:-#{$_dropdown-margin-left} !important;
|
125
|
+
margin-bottom:-#{$_dropdown-margin-bottom} !important;
|
126
|
+
&>menu-item{
|
127
|
+
margin-left:$_dropdown-margin-left !important;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|