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,284 @@
|
|
1
|
+
/* ui-carousel */
|
2
|
+
|
3
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
4
|
+
|
5
|
+
@mixin _ui-carousel($component:null,
|
6
|
+
$padding: null,
|
7
|
+
$margin: null,
|
8
|
+
$container-width: null,
|
9
|
+
$container-margin: null,
|
10
|
+
$li-width: null,
|
11
|
+
$height: null,
|
12
|
+
$button-width: null,
|
13
|
+
$button-top-position: null,
|
14
|
+
$button-left-position: null,
|
15
|
+
$button-right-position: null,
|
16
|
+
$button-prev-icon-left-position: null,
|
17
|
+
$button-next-icon-left-position: null,
|
18
|
+
$icon-size: null,
|
19
|
+
$icon-top-position: null,
|
20
|
+
$z-index: null,
|
21
|
+
$slide-margin-right: null,
|
22
|
+
$constrain-image-to-width: null,
|
23
|
+
$image-border:null,
|
24
|
+
$image-border-active:null,
|
25
|
+
$nav-control-top-position:null,
|
26
|
+
$nav-control-position:null,
|
27
|
+
$nav-control-next-icon:null,
|
28
|
+
$nav-control-prev-icon:null,
|
29
|
+
$nav-control-font-size:null,
|
30
|
+
$nav-control-color:null,
|
31
|
+
$nav-control-focus-opacity:null,
|
32
|
+
$nav-animation:null,
|
33
|
+
$max-height:null,
|
34
|
+
$image-top-position:null
|
35
|
+
) {
|
36
|
+
|
37
|
+
|
38
|
+
height: $height;
|
39
|
+
position: relative;
|
40
|
+
overflow: hidden;
|
41
|
+
&:hover,&:focus{
|
42
|
+
.navigation{
|
43
|
+
opacity:1;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
&.margin,&[data-margin]{
|
48
|
+
margin: $container-margin;
|
49
|
+
}
|
50
|
+
&.hidden{
|
51
|
+
visibility: hidden;
|
52
|
+
}
|
53
|
+
.navigation{
|
54
|
+
position: absolute;
|
55
|
+
top: $nav-control-top-position;
|
56
|
+
z-index: $z-index;
|
57
|
+
height:$nav-control-font-size;
|
58
|
+
width:$nav-control-font-size;
|
59
|
+
opacity:0;
|
60
|
+
@if $nav-animation==true{
|
61
|
+
@include transition(all 0.25s linear);
|
62
|
+
}
|
63
|
+
|
64
|
+
&.disabled,[disabled]{
|
65
|
+
display:none !important;
|
66
|
+
}
|
67
|
+
&.visible{
|
68
|
+
visibility: visible;
|
69
|
+
}
|
70
|
+
&:hover,&:focus{
|
71
|
+
cursor:pointer;
|
72
|
+
opacity:$nav-control-focus-opacity;
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
&.next{
|
77
|
+
right: $nav-control-position;
|
78
|
+
&:after{
|
79
|
+
content:'#{$nav-control-next-icon}';
|
80
|
+
font-family:$global-icon-font-family;
|
81
|
+
font-size:$nav-control-font-size;
|
82
|
+
@extend %#{$component}-font;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
&.prev{
|
86
|
+
left: $nav-control-position;
|
87
|
+
&:after{
|
88
|
+
content:'#{$nav-control-prev-icon}';
|
89
|
+
font-family:$global-icon-font-family;
|
90
|
+
font-size:$nav-control-font-size;
|
91
|
+
@extend %#{$component}-font;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
button {
|
96
|
+
&.ui-button {
|
97
|
+
position: absolute;
|
98
|
+
top: $button-top-position;
|
99
|
+
z-index: $z-index;
|
100
|
+
padding: $padding;
|
101
|
+
width: $button-width;
|
102
|
+
|
103
|
+
&.next {
|
104
|
+
right: $button-right-position;
|
105
|
+
&:after {
|
106
|
+
font-size: $icon-size;
|
107
|
+
left: $button-next-icon-left-position;
|
108
|
+
top: $icon-top-position;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
&.prev {
|
112
|
+
left: $button-left-position;
|
113
|
+
&:after {
|
114
|
+
font-size: $icon-size;
|
115
|
+
left: $button-prev-icon-left-position;
|
116
|
+
top: $icon-top-position;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
[data-role=carousel-inner-container],carousel-inner-container {
|
123
|
+
position: absolute;
|
124
|
+
top:0;
|
125
|
+
left:0;
|
126
|
+
|
127
|
+
//width:100%;
|
128
|
+
|
129
|
+
&.width,&[data-width]{
|
130
|
+
width: $container-width;
|
131
|
+
margin: $margin;
|
132
|
+
}
|
133
|
+
&.hidden{
|
134
|
+
visibility: hidden;
|
135
|
+
}
|
136
|
+
.ui-carousel,ui-carousel {
|
137
|
+
list-style: none;
|
138
|
+
@include flexbox($justification: flex-start, $alignment: flex-start);
|
139
|
+
|
140
|
+
width:100%;
|
141
|
+
padding: 0;
|
142
|
+
&>li,&>carousel-item {
|
143
|
+
width: 100%;
|
144
|
+
height: auto;
|
145
|
+
margin: 0;
|
146
|
+
overflow: hidden;
|
147
|
+
position: relative;
|
148
|
+
img {
|
149
|
+
max-width: 100%;
|
150
|
+
height:auto;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
&.multi-slide,&[data-multi-slide] {
|
155
|
+
width: auto;
|
156
|
+
&>li,&>carousel-item {
|
157
|
+
width: $li-width !important;
|
158
|
+
height: auto;
|
159
|
+
margin-right: $slide-margin-right;
|
160
|
+
overflow: hidden;
|
161
|
+
position: relative;
|
162
|
+
border:$image-border;
|
163
|
+
cursor:pointer;
|
164
|
+
|
165
|
+
&.active{
|
166
|
+
border:$image-border-active;
|
167
|
+
}
|
168
|
+
|
169
|
+
@if$constrain-image-to-width != true{
|
170
|
+
img {
|
171
|
+
max-width: none;
|
172
|
+
position: absolute;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
&.fade-transition,&[data-fade-transition]{
|
178
|
+
display:block;
|
179
|
+
&>li,&>carousel-item {
|
180
|
+
display: none;
|
181
|
+
position: absolute;
|
182
|
+
opacity: 0;
|
183
|
+
float: none;
|
184
|
+
z-index: 1;
|
185
|
+
&:first-child {
|
186
|
+
display: inherit;
|
187
|
+
position: relative;
|
188
|
+
float: left;
|
189
|
+
opacity: 1;
|
190
|
+
z-index: 2;
|
191
|
+
}
|
192
|
+
img {
|
193
|
+
max-width: 100%;
|
194
|
+
height:auto;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
&[data-height]{
|
199
|
+
&>li,&>carousel-item{
|
200
|
+
max-height:$max-height;
|
201
|
+
overflow:hidden;
|
202
|
+
img{
|
203
|
+
margin-top:$image-top-position;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
@media #{$breakpoint-touch}{
|
212
|
+
[data-role=carousel-outer-container],carousel-outer-container {
|
213
|
+
.ui-button,.navigation {
|
214
|
+
display: none;
|
215
|
+
}
|
216
|
+
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
/* Public -----------------------------------------------------------------------------------------------------------*/
|
224
|
+
|
225
|
+
|
226
|
+
@mixin ui-carousel($class:null,$component:null,
|
227
|
+
$padding: 30px 15px 30px 15px,
|
228
|
+
$margin: 0 auto,
|
229
|
+
$container-width: 90%,
|
230
|
+
$container-margin: 0,
|
231
|
+
$li-width: 200px,
|
232
|
+
$height: auto,
|
233
|
+
$button-width:26px,
|
234
|
+
$button-top-position:20%,
|
235
|
+
$button-left-position:0,
|
236
|
+
$button-right-position:0,
|
237
|
+
$button-prev-icon-left-position:0,
|
238
|
+
$button-next-icon-left-position:0,
|
239
|
+
$icon-size:20px,
|
240
|
+
$icon-top-position:20px,
|
241
|
+
$z-index:$global-z-index + 100,
|
242
|
+
$slide-margin-right:8px,
|
243
|
+
$constrain-image-to-width:true,
|
244
|
+
$image-border:0,
|
245
|
+
$image-border-active:0,
|
246
|
+
$nav-control-top-position:40%,
|
247
|
+
$nav-control-position:10px,
|
248
|
+
$nav-control-next-icon:\e179,
|
249
|
+
$nav-control-prev-icon:\e178,
|
250
|
+
$nav-control-font-size:2.5em,
|
251
|
+
$nav-control-color:$white,
|
252
|
+
$nav-control-focus-opacity:.8,
|
253
|
+
$nav-animation:true,
|
254
|
+
$max-height:450px,
|
255
|
+
$image-top-position:0
|
256
|
+
) {
|
257
|
+
|
258
|
+
[data-role=carousel-outer-container],carousel-outer-container {
|
259
|
+
@if $class != null{
|
260
|
+
&.#{$class} {
|
261
|
+
|
262
|
+
@include _ui-carousel($component,$padding,$margin,$container-width,$container-margin,$li-width,$height,
|
263
|
+
$button-width,$button-top-position,$button-left-position,$button-right-position,$button-prev-icon-left-position,
|
264
|
+
$button-next-icon-left-position,$icon-size,$icon-top-position,$z-index,$slide-margin-right,$constrain-image-to-width,
|
265
|
+
$image-border,$image-border-active,$nav-control-top-position,$nav-control-position,$nav-control-next-icon,
|
266
|
+
$nav-control-prev-icon,$nav-control-font-size,$nav-control-color,$nav-control-focus-opacity,$nav-animation,$max-height,$image-top-position
|
267
|
+
);
|
268
|
+
|
269
|
+
@content;
|
270
|
+
}
|
271
|
+
} @else {
|
272
|
+
|
273
|
+
@include _ui-carousel($component,$padding,$margin,$container-width,$container-margin,$li-width,$height,
|
274
|
+
$button-width,$button-top-position,$button-left-position,$button-right-position,$button-prev-icon-left-position,
|
275
|
+
$button-next-icon-left-position,$icon-size,$icon-top-position,$z-index,$slide-margin-right,$constrain-image-to-width,
|
276
|
+
$image-border,$image-border-active,$nav-control-top-position,$nav-control-position,$nav-control-next-icon,
|
277
|
+
$nav-control-prev-icon,$nav-control-font-size,$nav-control-color,$nav-control-focus-opacity,$nav-animation,$max-height,$image-top-position
|
278
|
+
);
|
279
|
+
|
280
|
+
|
281
|
+
@content;
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
/* ui-collapsible */
|
2
|
+
|
3
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
4
|
+
|
5
|
+
@mixin _ui-collapsible($header-component:null,$component:null,
|
6
|
+
$border-radius:null
|
7
|
+
){
|
8
|
+
&>.collapse,&>ui-collapse {
|
9
|
+
list-style: none;
|
10
|
+
margin: 0;
|
11
|
+
padding: 0 0 1em 0;
|
12
|
+
height: 100%;
|
13
|
+
|
14
|
+
& >.header {
|
15
|
+
cursor: pointer;
|
16
|
+
padding: 1em;
|
17
|
+
margin: 0;
|
18
|
+
@extend %#{$header-component}-background;
|
19
|
+
@extend %#{$header-component}-border;
|
20
|
+
@extend %#{$header-component}-box-shadow;
|
21
|
+
@extend %#{$header-component}-font;
|
22
|
+
border-radius:$border-radius;
|
23
|
+
h1, h2, h3, h4, h5 {
|
24
|
+
@extend %#{$header-component}-font;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.body {
|
29
|
+
margin-top: -.625em;
|
30
|
+
padding: 0 1em 0 1em;
|
31
|
+
@extend %#{$component}-background;
|
32
|
+
@extend %#{$component}-border;
|
33
|
+
@extend %#{$component}-box-shadow;
|
34
|
+
@extend %#{$component}-font;
|
35
|
+
border-top:0;
|
36
|
+
border-bottom-right-radius: $border-radius;
|
37
|
+
border-bottom-left-radius: $border-radius;
|
38
|
+
}
|
39
|
+
|
40
|
+
&> .header + .body{
|
41
|
+
height: 0;
|
42
|
+
display:block;
|
43
|
+
overflow: hidden;
|
44
|
+
}
|
45
|
+
&.out > .header + .body{
|
46
|
+
height:auto;
|
47
|
+
overflow: hidden;
|
48
|
+
}
|
49
|
+
&.out{
|
50
|
+
.header {
|
51
|
+
border-bottom-right-radius: 0;
|
52
|
+
border-bottom-left-radius: 0;
|
53
|
+
}
|
54
|
+
.body {
|
55
|
+
padding: 1em 1em 0 1em;
|
56
|
+
border-bottom-width:1px;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
@@ -0,0 +1,297 @@
|
|
1
|
+
/*
|
2
|
+
flex containers: ui-flex-container, ui-flex-list,ui-flex-grid,ui-sticky-footer
|
3
|
+
*/
|
4
|
+
|
5
|
+
/* Private -----------------------------------------------------------------------------------------------------------*/
|
6
|
+
|
7
|
+
@mixin _ui-flex-list(
|
8
|
+
$first-child-max-width:null,
|
9
|
+
$alt-background:null,
|
10
|
+
$justification:null,
|
11
|
+
$alignment:null,
|
12
|
+
$padding:null
|
13
|
+
){
|
14
|
+
list-style: none;
|
15
|
+
&>li,&>ui-model{
|
16
|
+
padding:$padding;
|
17
|
+
@include flexbox($justification:$justification,$alignment:$alignment);
|
18
|
+
a{
|
19
|
+
&:first-child{
|
20
|
+
max-width:$first-child-max-width;
|
21
|
+
}
|
22
|
+
&.ellipsis{
|
23
|
+
white-space:nowrap;
|
24
|
+
text-overflow:ellipsis;
|
25
|
+
overflow:hidden;
|
26
|
+
display:block;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
&:nth-child(even){
|
30
|
+
background:$alt-background;
|
31
|
+
}
|
32
|
+
.right{
|
33
|
+
margin-left:auto;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
@mixin _ui-flex-grid(
|
39
|
+
$columns:null,
|
40
|
+
$grid-contain-columns:null,
|
41
|
+
$tablet-columns:null,
|
42
|
+
$tablet-small-columns:null,
|
43
|
+
$justification:null,
|
44
|
+
$alignment:null,
|
45
|
+
$cell-justification:null,
|
46
|
+
$cell-alignment:null,
|
47
|
+
$cell-padding:null
|
48
|
+
)
|
49
|
+
{
|
50
|
+
width:100%;
|
51
|
+
$_column-percentage: columns-to-percentage($columns);
|
52
|
+
$_grid-contain-column-percentage: columns-to-percentage($grid-contain-columns);
|
53
|
+
$_tablet-column-percentage: columns-to-percentage($tablet-columns);
|
54
|
+
$_tablet-small-column-percentage: columns-to-percentage($tablet-small-columns);
|
55
|
+
@include display-flex();
|
56
|
+
@include justify-content($justification);
|
57
|
+
@include align-items($alignment);
|
58
|
+
@include flex-wrap(wrap);
|
59
|
+
&>li,&>grid-item{
|
60
|
+
width:$_column-percentage;
|
61
|
+
@include display-flex();
|
62
|
+
@include justify-content($cell-justification);
|
63
|
+
@include align-items($cell-alignment);
|
64
|
+
@include flex-direction(column);
|
65
|
+
padding:$cell-padding;
|
66
|
+
@include grid-contain-content(){
|
67
|
+
width:$_grid-contain-column-percentage;
|
68
|
+
}
|
69
|
+
@include tablet-content(){
|
70
|
+
width:$_tablet-column-percentage;
|
71
|
+
}
|
72
|
+
@include tablet-small-content(){
|
73
|
+
width:$_tablet-small-column-percentage;
|
74
|
+
}
|
75
|
+
@include phone-content(){
|
76
|
+
width:100%;
|
77
|
+
}
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
@mixin _ui-flex-form($header-background:null,$header-label:null){
|
84
|
+
list-style: none;
|
85
|
+
@include flexbox($justification:space-between);
|
86
|
+
width:100%;
|
87
|
+
@include flex-wrap(wrap);
|
88
|
+
&>li{
|
89
|
+
width:45%;
|
90
|
+
&.disabled{
|
91
|
+
&>*{
|
92
|
+
@extend %ui-disabled-component;
|
93
|
+
}
|
94
|
+
span:not(.ui-notification),input,label{
|
95
|
+
background:$white !important;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
&.stretch{
|
99
|
+
width:100%;
|
100
|
+
}
|
101
|
+
@include span-icon(){
|
102
|
+
color:$inverse-color;
|
103
|
+
&.large{
|
104
|
+
font-size:8em;
|
105
|
+
}
|
106
|
+
margin-bottom:16px;
|
107
|
+
}
|
108
|
+
&.header{
|
109
|
+
margin:2em 0 2em 0;
|
110
|
+
width:100%;
|
111
|
+
height:3em;
|
112
|
+
background:$header-background;
|
113
|
+
border:1px solid $color-ddd;
|
114
|
+
text-align: center;
|
115
|
+
label{
|
116
|
+
font-size:24px;
|
117
|
+
color:$header-label;
|
118
|
+
padding-top:.3em;
|
119
|
+
}
|
120
|
+
&.inverse{
|
121
|
+
background:$inverse-color;
|
122
|
+
border:1px solid darken($component-inverse-background,1%);
|
123
|
+
label{
|
124
|
+
color:$white;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
&.primary{
|
128
|
+
background:$primary-color;
|
129
|
+
border:1px solid darken($primary-color,1%);
|
130
|
+
label{
|
131
|
+
color:$white;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
&.secondary{
|
135
|
+
background:$secondary-color;
|
136
|
+
border:1px solid darken($secondary-color,1%);
|
137
|
+
label{
|
138
|
+
color:$white;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
}
|
143
|
+
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
/* Public -------------------------------------------------------------------------------------------------------------*/
|
150
|
+
|
151
|
+
.ui-flex-container,ui-flex-container{
|
152
|
+
@include display-flex();
|
153
|
+
@include justify-content(center);
|
154
|
+
@include align-items(center);
|
155
|
+
&.stretch{
|
156
|
+
width:100%;
|
157
|
+
}
|
158
|
+
&.wrap{
|
159
|
+
width: 100%;
|
160
|
+
@include flex-wrap(wrap);
|
161
|
+
}
|
162
|
+
&.left, &.start,&.flex-start{
|
163
|
+
@include justify-content(flex-start);
|
164
|
+
}
|
165
|
+
&.right, &.end,&.flex-end{
|
166
|
+
@include justify-content(flex-end);
|
167
|
+
}
|
168
|
+
&.space-between{
|
169
|
+
@include justify-content(space-between);
|
170
|
+
}
|
171
|
+
&.top{
|
172
|
+
@include align-items(flex-start);
|
173
|
+
}
|
174
|
+
&.space-around{
|
175
|
+
@include justify-content(space-around);
|
176
|
+
}
|
177
|
+
&.column{
|
178
|
+
@include flex-direction(column);
|
179
|
+
@include align-items(center);
|
180
|
+
&.top{
|
181
|
+
@include justify-content(flex-start);
|
182
|
+
}
|
183
|
+
&.bottom{
|
184
|
+
@include justify-content(flex-end);
|
185
|
+
}
|
186
|
+
&.left,&.start,&.flex-start{
|
187
|
+
@include align-items(flex-start);
|
188
|
+
}
|
189
|
+
&.right, &.end,&.flex-end{
|
190
|
+
@include align-items(flex-end);
|
191
|
+
}
|
192
|
+
&.space-around{
|
193
|
+
@include align-items(space-around);
|
194
|
+
}
|
195
|
+
&.space-between{
|
196
|
+
@include align-items(space-between);
|
197
|
+
}
|
198
|
+
}
|
199
|
+
&>.right, &>.end,&>.flex-end{
|
200
|
+
@include align-self(flex-end);
|
201
|
+
margin-left:auto;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
|
206
|
+
@mixin ui-flex-form($class:null,
|
207
|
+
$header-background:#f7f7f7,
|
208
|
+
$header-label:#999
|
209
|
+
|
210
|
+
){
|
211
|
+
|
212
|
+
.ui-flex-form,ui-flex-form {
|
213
|
+
@if $class != null{
|
214
|
+
&.#{$class} {
|
215
|
+
@include _ui-flex-form($header-background,$header-label);
|
216
|
+
@content;
|
217
|
+
}
|
218
|
+
|
219
|
+
} @else {
|
220
|
+
@include _ui-flex-form($header-background,$header-label);
|
221
|
+
@content;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
|
227
|
+
@mixin ui-flex-list($class:null,
|
228
|
+
$first-child-max-width:15em,
|
229
|
+
$alt-background:#fafafa,
|
230
|
+
$justification:space-between,
|
231
|
+
$alignment:center,
|
232
|
+
$padding:.5em 0 .5em 0
|
233
|
+
){
|
234
|
+
|
235
|
+
.ui-flex-list,ui-flex-list {
|
236
|
+
@if $class != null{
|
237
|
+
&.#{$class} {
|
238
|
+
@include _ui-flex-list($first-child-max-width,$alt-background,$justification,$alignment,$padding);
|
239
|
+
@content;
|
240
|
+
}
|
241
|
+
|
242
|
+
} @else {
|
243
|
+
@include _ui-flex-list($first-child-max-width,$alt-background,$justification,$alignment,$padding);
|
244
|
+
@content;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
@mixin ui-flex-grid($class:null,
|
250
|
+
$columns:4,
|
251
|
+
$grid-contain-columns:4,
|
252
|
+
$tablet-columns:3,
|
253
|
+
$tablet-small-columns:2,
|
254
|
+
$justification:flex-start,
|
255
|
+
$alignment:flex-start,
|
256
|
+
$cell-justification:flex-start,
|
257
|
+
$cell-alignment:flex-start,
|
258
|
+
$cell-padding:0 1em 2em 0
|
259
|
+
|
260
|
+
){
|
261
|
+
|
262
|
+
.ui-flex-grid,ui-flex-grid {
|
263
|
+
@if $class != null{
|
264
|
+
&.#{$class} {
|
265
|
+
@include _ui-flex-grid($columns,$grid-contain-columns,$tablet-columns,$tablet-small-columns,
|
266
|
+
$justification,$alignment,$cell-justification,$cell-alignment,$cell-padding);
|
267
|
+
@content;
|
268
|
+
}
|
269
|
+
|
270
|
+
} @else {
|
271
|
+
@include _ui-flex-grid($columns,$grid-contain-columns,$tablet-columns,$tablet-small-columns,
|
272
|
+
$justification,$alignment,$cell-justification,$cell-alignment,$cell-padding);
|
273
|
+
@content;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
}
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
@mixin ui-sticky-footer(){
|
281
|
+
/* sticky bottom footer */
|
282
|
+
.ui-sticky-footer {
|
283
|
+
@include display-flex();
|
284
|
+
min-height: 100vh;
|
285
|
+
height:100%;
|
286
|
+
@include flex-direction(column);
|
287
|
+
& > *:not([data-role=footer]) {
|
288
|
+
//@include flex(1);
|
289
|
+
@include flex(1 0 auto);//ie workaround
|
290
|
+
}
|
291
|
+
&.ns{
|
292
|
+
height:900px;//not supported workaround
|
293
|
+
}
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
|