ellipsis-compass 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,218 @@
|
|
1
|
+
/* ui-datepicker */
|
2
|
+
|
3
|
+
/* Private -----------------------------------------------------------------------------------------------------------*/
|
4
|
+
|
5
|
+
@mixin _ui-datepicker($component:null,$button-component:null,$today-component:null,
|
6
|
+
$border-radius:null,
|
7
|
+
$button-border-radius:null,
|
8
|
+
$button-font-weight:null,
|
9
|
+
$button-padding:null,
|
10
|
+
$z-index:null
|
11
|
+
){
|
12
|
+
|
13
|
+
z-index: $z-index;
|
14
|
+
display: block;
|
15
|
+
position: relative;
|
16
|
+
min-width:15em;
|
17
|
+
padding: .5em;
|
18
|
+
@extend %#{$component}-font !optional;
|
19
|
+
@extend %#{$component}-background !optional;
|
20
|
+
@extend %#{$component}-box-shadow !optional;
|
21
|
+
@extend %#{$component}-border !optional;
|
22
|
+
border-radius:$border-radius;
|
23
|
+
|
24
|
+
button{
|
25
|
+
margin-top:0px !important;
|
26
|
+
}
|
27
|
+
|
28
|
+
&.contained{
|
29
|
+
width:100%;
|
30
|
+
position:absolute;
|
31
|
+
top:100%;
|
32
|
+
left:0;
|
33
|
+
|
34
|
+
}
|
35
|
+
&.is-hidden{
|
36
|
+
display:none;
|
37
|
+
}
|
38
|
+
&.is-bound{
|
39
|
+
position: absolute;
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
.title {
|
44
|
+
position: relative;
|
45
|
+
text-align: center;
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
abbr{
|
50
|
+
font-size:1.25em;
|
51
|
+
font-weight:$button-font-weight;
|
52
|
+
@extend %#{$component}-icon !optional;
|
53
|
+
border:0;
|
54
|
+
}
|
55
|
+
|
56
|
+
.label {
|
57
|
+
display: inline-block;
|
58
|
+
*display: inline;
|
59
|
+
position: relative;
|
60
|
+
z-index: $z-index;
|
61
|
+
overflow: hidden;
|
62
|
+
margin: 0;
|
63
|
+
padding: .3em .1875em;
|
64
|
+
font-weight: $button-font-weight;
|
65
|
+
font-size:1.25em;
|
66
|
+
@extend %#{$component}-font !optional;
|
67
|
+
}
|
68
|
+
.title select {
|
69
|
+
cursor: pointer;
|
70
|
+
position: absolute;
|
71
|
+
z-index: $z-index -1;
|
72
|
+
margin: 0;
|
73
|
+
left: 0;
|
74
|
+
top: .3em;
|
75
|
+
filter: alpha(opacity=0);
|
76
|
+
opacity: 0;
|
77
|
+
}
|
78
|
+
|
79
|
+
.prev,
|
80
|
+
.next {
|
81
|
+
display: block;
|
82
|
+
cursor: pointer;
|
83
|
+
position: relative;
|
84
|
+
outline: none;
|
85
|
+
border: 0;
|
86
|
+
padding: 0;
|
87
|
+
width: 1.25em;
|
88
|
+
height: 1.875em;
|
89
|
+
background-color: transparent;
|
90
|
+
background-position: center center;
|
91
|
+
background-repeat: no-repeat;
|
92
|
+
background-size: 75% 75%;
|
93
|
+
white-space: nowrap;
|
94
|
+
text-indent: 100%;
|
95
|
+
overflow: hidden;
|
96
|
+
opacity: .5;
|
97
|
+
*position: absolute;
|
98
|
+
*top: 0;
|
99
|
+
}
|
100
|
+
|
101
|
+
.prev:hover,
|
102
|
+
.next:hover {
|
103
|
+
opacity: 1;
|
104
|
+
}
|
105
|
+
|
106
|
+
.prev,
|
107
|
+
.is-rtl .next {
|
108
|
+
float: left;
|
109
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');
|
110
|
+
*left: 0;
|
111
|
+
|
112
|
+
}
|
113
|
+
|
114
|
+
.next,
|
115
|
+
.is-rtl .prev {
|
116
|
+
float: right;
|
117
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
|
118
|
+
*right: 0;
|
119
|
+
|
120
|
+
}
|
121
|
+
|
122
|
+
.prev.is-disabled,
|
123
|
+
.next.is-disabled {
|
124
|
+
cursor: default;
|
125
|
+
opacity: .2;
|
126
|
+
}
|
127
|
+
|
128
|
+
.select {
|
129
|
+
display: inline-block;
|
130
|
+
*display: inline;
|
131
|
+
}
|
132
|
+
|
133
|
+
.table {
|
134
|
+
width: 100%;
|
135
|
+
border-collapse: collapse;
|
136
|
+
border-spacing: 0;
|
137
|
+
border: 0;
|
138
|
+
}
|
139
|
+
|
140
|
+
.table th,
|
141
|
+
.table td {
|
142
|
+
width: 14.285714285714286%;
|
143
|
+
|
144
|
+
}
|
145
|
+
|
146
|
+
.table th {
|
147
|
+
font-size: .75em;
|
148
|
+
line-height: 1.5;
|
149
|
+
font-weight: bold;
|
150
|
+
text-align: center;
|
151
|
+
}
|
152
|
+
|
153
|
+
.button {
|
154
|
+
cursor: pointer;
|
155
|
+
display: block;
|
156
|
+
outline: none;
|
157
|
+
border: 0;
|
158
|
+
margin: 0;
|
159
|
+
width: 100%;
|
160
|
+
padding: $button-padding;
|
161
|
+
@extend %#{$button-component}-font !optional;
|
162
|
+
font-size: .75em;
|
163
|
+
line-height: 1;
|
164
|
+
@extend %#{$button-component}-background !optional;
|
165
|
+
text-align: center;
|
166
|
+
}
|
167
|
+
|
168
|
+
.is-today .button {
|
169
|
+
@extend %#{$today-component}-font !optional;
|
170
|
+
@extend %#{$today-component}-background !optional;
|
171
|
+
font-weight: $button-font-weight;
|
172
|
+
border-radius: $button-border-radius;
|
173
|
+
}
|
174
|
+
|
175
|
+
.is-selected .button {
|
176
|
+
@extend %#{$button-component}-font-active !optional;
|
177
|
+
font-weight: $button-font-weight;
|
178
|
+
@extend %#{$button-component}-background-active !optional;
|
179
|
+
border-radius: $button-border-radius;
|
180
|
+
}
|
181
|
+
|
182
|
+
.is-disabled .button {
|
183
|
+
pointer-events: none;
|
184
|
+
cursor: default;
|
185
|
+
opacity:.2;
|
186
|
+
|
187
|
+
}
|
188
|
+
|
189
|
+
.button:hover {
|
190
|
+
@extend %#{$button-component}-font-hover !optional;
|
191
|
+
@extend %#{$button-component}-background-hover !optional;
|
192
|
+
border-radius: $button-border-radius;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
/* Public -----------------------------------------------------------------------------------------------------------*/
|
197
|
+
|
198
|
+
@mixin ui-datepicker($class:null, $component:css-datepicker,$button-component:css-datepicker-button,$today-component:css-datepicker-today-button,
|
199
|
+
$border-radius:$global-radius,
|
200
|
+
$button-border-radius:3px,
|
201
|
+
$button-font-weight:bold,
|
202
|
+
$button-padding:.5em .75em,
|
203
|
+
$z-index:$global-z-index
|
204
|
+
){
|
205
|
+
.ui-datepicker{
|
206
|
+
@if $class != null{
|
207
|
+
&.#{$class} {
|
208
|
+
@include _ui-datepicker($component,$button-component,$today-component,$border-radius,$button-border-radius,
|
209
|
+
$button-font-weight,$button-padding,$z-index);
|
210
|
+
@content;
|
211
|
+
}
|
212
|
+
} @else {
|
213
|
+
@include _ui-datepicker($component,$button-component,$today-component,$border-radius,$button-border-radius,
|
214
|
+
$button-font-weight,$button-padding,$z-index);
|
215
|
+
@content;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
/* ui-drawer */
|
2
|
+
|
3
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
4
|
+
@mixin _ui-drawer(
|
5
|
+
$width:null,
|
6
|
+
$header-height:null,
|
7
|
+
$header-position:null,
|
8
|
+
$z-index:null,
|
9
|
+
$background:null
|
10
|
+
){
|
11
|
+
|
12
|
+
min-height:100%;
|
13
|
+
height:100%;
|
14
|
+
overflow-x:hidden;
|
15
|
+
position:relative;
|
16
|
+
display:none;
|
17
|
+
width:$width;
|
18
|
+
background:$background;
|
19
|
+
|
20
|
+
&>header{
|
21
|
+
position:$header-position;
|
22
|
+
@if $header-position != relative{
|
23
|
+
top:0;
|
24
|
+
left:0;
|
25
|
+
}
|
26
|
+
z-index:$z-index;
|
27
|
+
width:$width;
|
28
|
+
height:$header-height;
|
29
|
+
}
|
30
|
+
|
31
|
+
@media #{$breakpoint-touch}{
|
32
|
+
background:#fff;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
/* public ------------------------------------------------------------------------------------------------------------*/
|
37
|
+
@mixin touch-ui-drawer($class:null,$component:css-touch-drawer-black,$header-component:css-touch-drawer-header-black,
|
38
|
+
$width:265px,
|
39
|
+
$header-height:60px,
|
40
|
+
$search-margin:12px 0 1px 7px,
|
41
|
+
$search-width:80%
|
42
|
+
){
|
43
|
+
|
44
|
+
@media #{$breakpoint-desktop}{
|
45
|
+
.touch-ui-drawer,touch-ui-drawer{
|
46
|
+
display:none;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
@media #{$breakpoint-touch}{
|
50
|
+
.touch-ui-drawer,touch-ui-drawer{
|
51
|
+
@if $class != null{
|
52
|
+
&.#{$class} {
|
53
|
+
@include _touch-ui-drawer($component,$header-component,$width,$header-height,$search-margin,$search-width);
|
54
|
+
|
55
|
+
}
|
56
|
+
}@else{
|
57
|
+
@include _touch-ui-drawer($component,$header-component,$width,$header-height,$search-margin,$search-width);
|
58
|
+
|
59
|
+
}
|
60
|
+
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.touch-ui-drawer,touch-ui-drawer{
|
65
|
+
@if $class != null{
|
66
|
+
&.#{$class} {
|
67
|
+
@content;
|
68
|
+
}
|
69
|
+
}@else{
|
70
|
+
@content;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
@mixin ui-drawer($class:null,
|
77
|
+
$width:800px,
|
78
|
+
$header-height:auto,
|
79
|
+
$header-position:fixed,
|
80
|
+
$z-index:$global-z-index + 99,
|
81
|
+
$background:#f8f9fa
|
82
|
+
){
|
83
|
+
|
84
|
+
.ui-drawer,ui-drawer{
|
85
|
+
@if $class != null{
|
86
|
+
&.#{$class} {
|
87
|
+
@include _ui-drawer($width,$header-height,$header-position,$z-index,$background);
|
88
|
+
@content;
|
89
|
+
}
|
90
|
+
}@else{
|
91
|
+
@include _ui-drawer($width,$header-height,$header-position,$z-index,$background);
|
92
|
+
@content;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
}
|
@@ -0,0 +1,394 @@
|
|
1
|
+
/* ui-dropdown */
|
2
|
+
|
3
|
+
|
4
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
5
|
+
|
6
|
+
@mixin _ui-dropdown($component:null, $divider: null,
|
7
|
+
$width:null,
|
8
|
+
$min-width:null,
|
9
|
+
$top:null,
|
10
|
+
$margin: null,
|
11
|
+
$padding:null,
|
12
|
+
$float: null,
|
13
|
+
$z-index: null,
|
14
|
+
$font-size: null,
|
15
|
+
$border: null,
|
16
|
+
$li-padding: null,
|
17
|
+
$li-divider-padding: null,
|
18
|
+
$li-divider-border: null,
|
19
|
+
$column-count: null,
|
20
|
+
$column-gap: null,
|
21
|
+
$column-width: null,
|
22
|
+
$column-padding: null,
|
23
|
+
$height: null,
|
24
|
+
$border-radius: null,
|
25
|
+
$span-icon-margin:null
|
26
|
+
) {
|
27
|
+
|
28
|
+
left: 0;
|
29
|
+
@if $width != null {
|
30
|
+
width:$width;
|
31
|
+
}
|
32
|
+
|
33
|
+
min-width:$min-width;
|
34
|
+
list-style: none;
|
35
|
+
margin: $margin;
|
36
|
+
padding:$padding;
|
37
|
+
position: absolute;
|
38
|
+
top: $top;
|
39
|
+
float: $float;
|
40
|
+
z-index: $z-index;
|
41
|
+
border-radius: $border-radius;
|
42
|
+
@extend %#{$component}-background !optional;
|
43
|
+
@extend %#{$component}-box-shadow !optional;
|
44
|
+
@extend %#{$component}-border !optional;
|
45
|
+
display: none;
|
46
|
+
font-size:$font-size;
|
47
|
+
|
48
|
+
&>li,&>menu-item {
|
49
|
+
text-align: left;
|
50
|
+
display:list-item;
|
51
|
+
&:first-child {
|
52
|
+
border-top-right-radius: $border-radius;
|
53
|
+
border-top-left-radius: $border-radius;
|
54
|
+
}
|
55
|
+
&:last-child {
|
56
|
+
border-bottom-right-radius: $border-radius;
|
57
|
+
border-bottom-left-radius: $border-radius;
|
58
|
+
}
|
59
|
+
&:hover, &:focus {
|
60
|
+
@extend %#{$component}-background-hover !optional;
|
61
|
+
@extend %#{$component}-font-hover !optional;
|
62
|
+
&>a{
|
63
|
+
@extend %#{$component}-font-hover !optional;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
&.active{
|
67
|
+
@extend %#{$component}-background-hover !optional;
|
68
|
+
@extend %#{$component}-font-hover !optional;
|
69
|
+
}
|
70
|
+
&:focus{
|
71
|
+
display:inherit;
|
72
|
+
@include tab-focus();
|
73
|
+
}
|
74
|
+
&.divider {
|
75
|
+
width: 100%;
|
76
|
+
height: 0;
|
77
|
+
border: 0;
|
78
|
+
border-bottom: $li-divider-border;
|
79
|
+
padding: $li-divider-padding;
|
80
|
+
@extend %#{$divider}-border !optional;
|
81
|
+
}
|
82
|
+
&.disabled, &[disabled] {
|
83
|
+
cursor: default !important;
|
84
|
+
@extend %#{$component}-disabled !optional;
|
85
|
+
&:hover {
|
86
|
+
@extend %#{$component}-disabled !optional;
|
87
|
+
}
|
88
|
+
&>a{
|
89
|
+
@extend %#{$component}-disabled !optional;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
&>a {
|
93
|
+
text-align: left;
|
94
|
+
font-size: 1em;
|
95
|
+
@extend %#{$component}-font !optional;
|
96
|
+
white-space: nowrap;
|
97
|
+
display:block;
|
98
|
+
padding: $li-padding;
|
99
|
+
&:hover, &:focus {
|
100
|
+
@extend %#{$component}-font-hover !optional;
|
101
|
+
}
|
102
|
+
&>span[class*='icon-']{
|
103
|
+
margin:$span-icon-margin;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
&>menu-divider {
|
108
|
+
width: 100%;
|
109
|
+
height: 0;
|
110
|
+
border: 0;
|
111
|
+
border-bottom: $li-divider-border;
|
112
|
+
padding: $li-divider-padding;
|
113
|
+
@extend %#{$divider}-border !optional;
|
114
|
+
display:list-item;
|
115
|
+
}
|
116
|
+
&.show {
|
117
|
+
display: block;
|
118
|
+
}
|
119
|
+
&.visible{
|
120
|
+
visibility: visible !important;
|
121
|
+
}
|
122
|
+
&.multi-column,&.mega {
|
123
|
+
@include column-count($column-count);
|
124
|
+
@include column-gap($column-gap);
|
125
|
+
min-width: $column-width * $column-count;
|
126
|
+
height: $height;
|
127
|
+
width: auto;
|
128
|
+
&>li {
|
129
|
+
background: none;
|
130
|
+
padding: $column-padding;
|
131
|
+
&:hover, &:focus {
|
132
|
+
background: none;
|
133
|
+
}
|
134
|
+
&.divider {
|
135
|
+
border: 0;
|
136
|
+
border-bottom: $li-divider-border;
|
137
|
+
@extend %#{$divider}-border !optional;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
}
|
143
|
+
|
144
|
+
@mixin _ui-mega-dropdown($component:null, $divider: null,
|
145
|
+
$width:null,
|
146
|
+
$min-width:null,
|
147
|
+
$top:null,
|
148
|
+
$margin: null,
|
149
|
+
$padding:null,
|
150
|
+
$float: null,
|
151
|
+
$z-index: null,
|
152
|
+
$font-size: null,
|
153
|
+
$border: null,
|
154
|
+
$li-padding: null,
|
155
|
+
$li-divider-padding: null,
|
156
|
+
$li-divider-border: null,
|
157
|
+
$column-count: null,
|
158
|
+
$column-gap: null,
|
159
|
+
$column-width: null,
|
160
|
+
$column-padding: null,
|
161
|
+
$height: null,
|
162
|
+
$border-radius: null,
|
163
|
+
$span-icon-margin:null
|
164
|
+
) {
|
165
|
+
|
166
|
+
left: 0;
|
167
|
+
@if $width != null {
|
168
|
+
width:$width;
|
169
|
+
}
|
170
|
+
list-style: none;
|
171
|
+
margin: $margin;
|
172
|
+
padding:$padding;
|
173
|
+
position: absolute;
|
174
|
+
top: $top;
|
175
|
+
float: $float;
|
176
|
+
z-index: $z-index;
|
177
|
+
border-radius: $border-radius;
|
178
|
+
@extend %#{$component}-background !optional;
|
179
|
+
@extend %#{$component}-box-shadow !optional;
|
180
|
+
@extend %#{$component}-border !optional;
|
181
|
+
display: none;
|
182
|
+
font-size:$font-size;
|
183
|
+
@include column-count($column-count);
|
184
|
+
@include column-gap($column-gap);
|
185
|
+
min-width: $column-width * $column-count;
|
186
|
+
height: $height;
|
187
|
+
width: auto;
|
188
|
+
&>menu-item {
|
189
|
+
background: none;
|
190
|
+
padding: $column-padding;
|
191
|
+
display:block;
|
192
|
+
&:hover, &:focus {
|
193
|
+
background: none;
|
194
|
+
}
|
195
|
+
&.divider {
|
196
|
+
border: 0;
|
197
|
+
border-bottom: $li-divider-border;
|
198
|
+
@extend %#{$divider}-border !optional;
|
199
|
+
}
|
200
|
+
&>a {
|
201
|
+
text-align: left;
|
202
|
+
font-size: 1em;
|
203
|
+
@extend %#{$component}-font !optional;
|
204
|
+
white-space: nowrap;
|
205
|
+
display:block;
|
206
|
+
padding: $li-padding;
|
207
|
+
&:hover, &:focus {
|
208
|
+
@extend %#{$component}-font-hover !optional;
|
209
|
+
}
|
210
|
+
&>span[class*='icon-']{
|
211
|
+
margin:$span-icon-margin;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
&.active{
|
215
|
+
@extend %#{$component}-background-hover !optional;
|
216
|
+
@extend %#{$component}-font-hover !optional;
|
217
|
+
}
|
218
|
+
&:focus{
|
219
|
+
display:inherit;
|
220
|
+
@include tab-focus();
|
221
|
+
}
|
222
|
+
&.disabled, &[disabled] {
|
223
|
+
cursor: default !important;
|
224
|
+
@extend %#{$component}-disabled !optional;
|
225
|
+
&:hover {
|
226
|
+
@extend %#{$component}-disabled !optional;
|
227
|
+
}
|
228
|
+
&>a{
|
229
|
+
@extend %#{$component}-disabled !optional;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
&>menu-divider {
|
235
|
+
width: 100%;
|
236
|
+
height: 0;
|
237
|
+
border: 0;
|
238
|
+
border-bottom: $li-divider-border;
|
239
|
+
padding: $li-divider-padding;
|
240
|
+
@extend %#{$divider}-border !optional;
|
241
|
+
}
|
242
|
+
&.show {
|
243
|
+
display: block;
|
244
|
+
}
|
245
|
+
&.visible{
|
246
|
+
visibility: visible !important;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
|
250
|
+
@mixin _ui-dropdown-extend(
|
251
|
+
$column-count: null,
|
252
|
+
$column-gap: null,
|
253
|
+
$column-width: null,
|
254
|
+
$column-padding: null,
|
255
|
+
$height:null
|
256
|
+
|
257
|
+
){
|
258
|
+
|
259
|
+
@include column-count($column-count);
|
260
|
+
@include column-gap($column-gap);
|
261
|
+
min-width: $column-width * $column-count;
|
262
|
+
height: $height;
|
263
|
+
&>li,&>menu-item{
|
264
|
+
padding: $column-padding;
|
265
|
+
}
|
266
|
+
|
267
|
+
}
|
268
|
+
|
269
|
+
|
270
|
+
/* public ------------------------------------------------------------------------------------------------------------*/
|
271
|
+
|
272
|
+
@mixin ui-dropdown($class: null, $component: css-dropdown, $divider: css-divider,
|
273
|
+
$width:null,
|
274
|
+
$min-width:12em,
|
275
|
+
$top:100%,
|
276
|
+
$margin:0,
|
277
|
+
$padding:0 0 .5em 0,
|
278
|
+
$float:left,
|
279
|
+
$z-index: $global-z-index + 9999,
|
280
|
+
$font-size: 1em,
|
281
|
+
$border: 1px solid,
|
282
|
+
$li-padding: .5em 1em,
|
283
|
+
$li-divider-padding: 0,
|
284
|
+
$li-divider-border: 1px solid,
|
285
|
+
$column-count: 2,
|
286
|
+
$column-gap: 1.25em,
|
287
|
+
$column-width: 12.5em,
|
288
|
+
$column-padding: .3125em .3125em .3125em 1.875em,
|
289
|
+
$height: 12.5em,
|
290
|
+
$border-radius: $global-radius,
|
291
|
+
$span-icon-margin:0 .5em 0 0
|
292
|
+
) {
|
293
|
+
|
294
|
+
.ui-dropdown,ui-dropdown {
|
295
|
+
@if $class != null{
|
296
|
+
&.#{$class} {
|
297
|
+
@include _ui-dropdown($component, $divider, $width,$min-width, $top, $margin,$padding, $float, $z-index, $font-size, $border, $li-padding,
|
298
|
+
$li-divider-padding, $li-divider-border, $column-count, $column-gap, $column-width, $column-padding,
|
299
|
+
$height, $border-radius, $span-icon-margin
|
300
|
+
);
|
301
|
+
@content;
|
302
|
+
}
|
303
|
+
} @else {
|
304
|
+
@include _ui-dropdown($component, $divider, $width,$min-width, $top, $margin,$padding,$float, $z-index, $font-size, $border, $li-padding,
|
305
|
+
$li-divider-padding, $li-divider-border, $column-count, $column-gap, $column-width, $column-padding,
|
306
|
+
$height, $border-radius, $span-icon-margin
|
307
|
+
);
|
308
|
+
@content;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
@-moz-document url-prefix() {
|
312
|
+
.ui-dropdown,ui-dropdown{
|
313
|
+
&>li,&>menu-item{
|
314
|
+
padding: $li-padding;
|
315
|
+
&>a{
|
316
|
+
min-width:$min-width;
|
317
|
+
padding:0 !important;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
ui-mega-dropdown {
|
323
|
+
@if $class != null{
|
324
|
+
&.#{$class} {
|
325
|
+
@include _ui-mega-dropdown($component, $divider, $width,$min-width, $top, $margin,$padding, $float, $z-index, $font-size, $border, $li-padding,
|
326
|
+
$li-divider-padding, $li-divider-border, $column-count, $column-gap, $column-width, $column-padding,
|
327
|
+
$height, $border-radius, $span-icon-margin
|
328
|
+
);
|
329
|
+
@content;
|
330
|
+
}
|
331
|
+
} @else {
|
332
|
+
@include _ui-mega-dropdown($component, $divider, $width,$min-width, $top, $margin,$padding,$float, $z-index, $font-size, $border, $li-padding,
|
333
|
+
$li-divider-padding, $li-divider-border, $column-count, $column-gap, $column-width, $column-padding,
|
334
|
+
$height, $border-radius, $span-icon-margin
|
335
|
+
);
|
336
|
+
@content;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
}
|
340
|
+
|
341
|
+
@mixin ui-dropdown-extend($class:null,$sub-class:null,
|
342
|
+
$column-count:2,
|
343
|
+
$column-gap:20px,
|
344
|
+
$column-width:200px,
|
345
|
+
$column-padding:5px 5px 5px 10px,
|
346
|
+
$height:200px
|
347
|
+
|
348
|
+
){
|
349
|
+
|
350
|
+
.ui-dropdown,ui-dropdown{
|
351
|
+
@if $class != null{
|
352
|
+
&.#{$class}{
|
353
|
+
@if $sub-class != null{
|
354
|
+
&.multi-column,&.mega{
|
355
|
+
&.#{$sub-class}{
|
356
|
+
@include _ui-dropdown-extend($column-count,$column-gap,$column-width,$column-padding,$height);
|
357
|
+
}
|
358
|
+
}
|
359
|
+
}
|
360
|
+
}
|
361
|
+
|
362
|
+
}@else{
|
363
|
+
@if $sub-class != null{
|
364
|
+
&.multi-column,&.mega{
|
365
|
+
&.#{$sub-class}{
|
366
|
+
@include _ui-dropdown-extend($column-count,$column-gap,$column-width,$column-padding,$height);
|
367
|
+
}
|
368
|
+
}
|
369
|
+
}
|
370
|
+
}
|
371
|
+
}
|
372
|
+
|
373
|
+
}
|
374
|
+
|
375
|
+
@mixin touch-ui-dropdown($class:null,$component:css-touch-dropdown,
|
376
|
+
$li-padding:20px 0 20px 20px,
|
377
|
+
$link-font-size:14px,
|
378
|
+
$li-border-bottom:1px dashed
|
379
|
+
|
380
|
+
){
|
381
|
+
|
382
|
+
@media #{$breakpoint-touch}{
|
383
|
+
.touch-ui-dropdown,touch-ui-dropdown{
|
384
|
+
@if $class != null{
|
385
|
+
&.#{$class} {
|
386
|
+
@include _touch-ui-dropdown($component,$li-padding,$link-font-size,$li-border-bottom);
|
387
|
+
}
|
388
|
+
}@else{
|
389
|
+
@include _touch-ui-dropdown($component,$li-padding,$link-font-size,$li-border-bottom);
|
390
|
+
}
|
391
|
+
}
|
392
|
+
}
|
393
|
+
|
394
|
+
}
|