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,70 @@
|
|
1
|
+
/* ui-loading */
|
2
|
+
|
3
|
+
|
4
|
+
@mixin ui-loading($background:$primary-color,
|
5
|
+
$border-color:$white,
|
6
|
+
$inner-border-color:darken($primary-color,10%),
|
7
|
+
$duration:3s,
|
8
|
+
$inner-duration:1s
|
9
|
+
){
|
10
|
+
.ui-loading,ui-loading{
|
11
|
+
display:block;
|
12
|
+
position: fixed;
|
13
|
+
top: 0;
|
14
|
+
right: 0;
|
15
|
+
width: 18.75em;
|
16
|
+
height: 18.75em;
|
17
|
+
background: $background;
|
18
|
+
z-index:$global-z-index + 999999;
|
19
|
+
-webkit-transition: -webkit-transform 0.3s;
|
20
|
+
transition: transform 0.3s;
|
21
|
+
-webkit-transform: translateX(100%) translateY(-100%) rotate(45deg);
|
22
|
+
transform: translateX(100%) translateY(-100%) rotate(45deg);
|
23
|
+
pointer-events: none;
|
24
|
+
&.animate{
|
25
|
+
-webkit-transform: translateX(50%) translateY(-50%) rotate(45deg);
|
26
|
+
transform: translateX(50%) translateY(-50%) rotate(45deg);
|
27
|
+
}
|
28
|
+
&:before,&:after{
|
29
|
+
position: absolute;
|
30
|
+
bottom: 2em;
|
31
|
+
left: 50%;
|
32
|
+
display: block;
|
33
|
+
border: 5px solid $border-color;
|
34
|
+
border-radius: 50%;
|
35
|
+
content: '';
|
36
|
+
}
|
37
|
+
&:before{
|
38
|
+
margin-left: -2.5em;
|
39
|
+
width: 5em;
|
40
|
+
height: 5em;
|
41
|
+
border-right-color: $inner-border-color;
|
42
|
+
border-left-color: $inner-border-color;
|
43
|
+
-webkit-animation: loading-rotation $duration linear infinite;
|
44
|
+
animation: loading-rotation $duration linear infinite;
|
45
|
+
}
|
46
|
+
&:after{
|
47
|
+
bottom: 3.125em;
|
48
|
+
margin-left: -1.25em;
|
49
|
+
width: 2.5em;
|
50
|
+
height: 2.5em;
|
51
|
+
border-top-color: $inner-border-color;
|
52
|
+
border-bottom-color: $inner-border-color;
|
53
|
+
-webkit-animation: loading-rotation $inner-duration linear infinite;
|
54
|
+
animation: loading-rotation $inner-duration linear infinite;
|
55
|
+
}
|
56
|
+
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
@-webkit-keyframes loading-rotation {
|
61
|
+
0% { -webkit-transform: rotate(0deg); }
|
62
|
+
50% { -webkit-transform: rotate(180deg); }
|
63
|
+
100% { -webkit-transform: rotate(360deg); }
|
64
|
+
}
|
65
|
+
|
66
|
+
@keyframes loading-rotation {
|
67
|
+
0% { transform: rotate(0deg); }
|
68
|
+
50% { transform: rotate(180deg); }
|
69
|
+
100% { transform: rotate(360deg); }
|
70
|
+
}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
/* ui-mediaobject */
|
2
|
+
|
3
|
+
|
4
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
5
|
+
@mixin _ui-media-object(
|
6
|
+
$background:null,
|
7
|
+
$padding:null,
|
8
|
+
$border-radius:null,
|
9
|
+
$media-margin:null,
|
10
|
+
$image-border:null,
|
11
|
+
$header-margin:null,
|
12
|
+
$image-max-width:null,
|
13
|
+
$image-max-height:null
|
14
|
+
){
|
15
|
+
|
16
|
+
@include display-flex();
|
17
|
+
@include align-items(flex-start);
|
18
|
+
padding:$padding;
|
19
|
+
background:$background;
|
20
|
+
border-radius: $border-radius;
|
21
|
+
margin:0 0 1em 0;
|
22
|
+
|
23
|
+
@include phone-content(){
|
24
|
+
border-radius:0;
|
25
|
+
padding-left:1px;
|
26
|
+
background:$white;
|
27
|
+
}
|
28
|
+
&>figure{
|
29
|
+
margin-right: $media-margin;
|
30
|
+
&>div{
|
31
|
+
border:$image-border;
|
32
|
+
max-width:$image-max-width;
|
33
|
+
max-height:$image-max-height;
|
34
|
+
overflow:hidden;
|
35
|
+
@include phone-content(){
|
36
|
+
width:80px;
|
37
|
+
max-height:100px;
|
38
|
+
}
|
39
|
+
&>img{
|
40
|
+
width:100%;
|
41
|
+
height:auto;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
&>img{
|
47
|
+
margin-right: $media-margin;
|
48
|
+
border:$image-border;
|
49
|
+
@include phone-content(){
|
50
|
+
width:80px;
|
51
|
+
height:auto;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
&>section {
|
55
|
+
@include flex(1);
|
56
|
+
h2,h3,h4,h5,h6{
|
57
|
+
&:first-child{
|
58
|
+
margin:$header-margin;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
@include phone-content(){
|
62
|
+
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
&.reverse{
|
67
|
+
&>figure,&>img{
|
68
|
+
@include order(1);
|
69
|
+
margin:0 0 0 $media-margin;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
}
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
/* public -----------------------------------------------------------------------------------------------------------*/
|
81
|
+
|
82
|
+
@mixin ui-media-object($class:null,
|
83
|
+
$background:#eee,
|
84
|
+
$padding:1em,
|
85
|
+
$border-radius:$global-radius,
|
86
|
+
$media-margin:1em,
|
87
|
+
$image-border:0,
|
88
|
+
$header-margin:0 0 1em 0,
|
89
|
+
$image-max-width:200px,
|
90
|
+
$image-max-height:200px
|
91
|
+
){
|
92
|
+
|
93
|
+
.ui-media-object,ui-media-object {
|
94
|
+
@if $class != null{
|
95
|
+
&.#{$class} {
|
96
|
+
@include _ui-media-object($background,$padding,$border-radius,$media-margin,$image-border,
|
97
|
+
$header-margin,$image-max-width,$image-max-height);
|
98
|
+
@content;
|
99
|
+
}
|
100
|
+
} @else {
|
101
|
+
@include _ui-media-object($background,$padding,$border-radius,$media-margin,$image-border,
|
102
|
+
$header-margin,$image-max-width,$image-max-height);
|
103
|
+
@content;
|
104
|
+
}
|
105
|
+
|
106
|
+
}
|
107
|
+
|
108
|
+
}
|
@@ -0,0 +1,287 @@
|
|
1
|
+
/* ui-menu */
|
2
|
+
|
3
|
+
|
4
|
+
/* private -----------------------------------------------------------------------------------------------------------*/
|
5
|
+
@mixin _ui-menu($component:null,$divider:null,
|
6
|
+
$margin:null,
|
7
|
+
$padding:null,
|
8
|
+
$width:null,
|
9
|
+
$height:null,
|
10
|
+
$li-margin:null,
|
11
|
+
$li-padding:null,
|
12
|
+
$li-divider-border:null,
|
13
|
+
$li-divider-padding:null,
|
14
|
+
$li-divider-margin:null,
|
15
|
+
$li-divider-height:null,
|
16
|
+
$li-label-font-size:null,
|
17
|
+
$li-label-padding:null,
|
18
|
+
$li-search-padding:null,
|
19
|
+
$z-index:null,
|
20
|
+
$top:null,
|
21
|
+
$left:null,
|
22
|
+
$li-stacked-padding:null
|
23
|
+
|
24
|
+
){
|
25
|
+
|
26
|
+
@include flexbox($alignment:center,$justification:flex-start);
|
27
|
+
list-style: none;
|
28
|
+
margin: $margin;
|
29
|
+
padding:$padding;
|
30
|
+
width:$width;
|
31
|
+
height:$height;
|
32
|
+
@extend %#{$component}-background !optional;
|
33
|
+
|
34
|
+
|
35
|
+
&.stacked{
|
36
|
+
@include flexbox-column();
|
37
|
+
&>li{
|
38
|
+
height:auto;
|
39
|
+
padding:$li-stacked-padding;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
&>li,&>menu-item{
|
43
|
+
@include flexbox($alignment:center,$justification:flex-start);
|
44
|
+
margin:$li-margin;
|
45
|
+
//padding:$li-padding;
|
46
|
+
height:100%;
|
47
|
+
position:relative;
|
48
|
+
&:hover,&:focus{
|
49
|
+
cursor:pointer;
|
50
|
+
@extend %#{$component}-background-hover !optional;
|
51
|
+
&>a{
|
52
|
+
@extend %#{$component}-font-hover !optional;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
&.label{
|
56
|
+
@extend %#{$component}-font-active !optional;
|
57
|
+
font-size:$li-label-font-size;
|
58
|
+
padding:$li-label-padding;
|
59
|
+
}
|
60
|
+
&.divider{
|
61
|
+
width:0;
|
62
|
+
height:$li-divider-height;
|
63
|
+
border:0;
|
64
|
+
border-right: $li-divider-border;
|
65
|
+
padding: $li-divider-padding;
|
66
|
+
margin:$li-divider-margin;
|
67
|
+
@if $divider != null{
|
68
|
+
@extend %#{$divider}-border !optional;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
&>a{
|
72
|
+
@extend %#{$component}-font !optional;
|
73
|
+
font-size:1em;
|
74
|
+
padding:$li-padding;
|
75
|
+
}
|
76
|
+
&.active{
|
77
|
+
@extend %#{$component}-background-active !optional;
|
78
|
+
&>a{
|
79
|
+
@extend %#{$component}-font-active !optional;
|
80
|
+
}
|
81
|
+
&:hover{
|
82
|
+
@extend %#{$component}-background-active !optional;
|
83
|
+
&>a{
|
84
|
+
@extend %#{$component}-font-active !optional;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
&.has-dropdown{
|
89
|
+
position:relative;
|
90
|
+
&>.ui-dropdown,ui-dropdown{
|
91
|
+
display:none;
|
92
|
+
}
|
93
|
+
&:hover,&:focus{
|
94
|
+
&>.ui-dropdown,ui-dropdown{
|
95
|
+
display:block !important;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
&.has-search {
|
100
|
+
padding:$li-search-padding;
|
101
|
+
margin-left:auto;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
&>menu-divider{
|
105
|
+
width:0;
|
106
|
+
height:$li-divider-height;
|
107
|
+
border:0;
|
108
|
+
border-right: $li-divider-border;
|
109
|
+
padding: $li-divider-padding;
|
110
|
+
margin:$li-divider-margin;
|
111
|
+
@if $divider != null{
|
112
|
+
@extend %#{$divider}-border !optional;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
&>menu-item-dropdown{
|
116
|
+
@include flexbox($alignment:center,$justification:flex-start);
|
117
|
+
position:relative;
|
118
|
+
margin:$li-margin;
|
119
|
+
padding:$li-padding;
|
120
|
+
height:100%;
|
121
|
+
&>.ui-dropdown,ui-dropdown,ui-mega-dropdown{
|
122
|
+
display:none;
|
123
|
+
}
|
124
|
+
&>a{
|
125
|
+
@extend %#{$component}-font !optional;
|
126
|
+
font-size:1em;
|
127
|
+
}
|
128
|
+
&:hover,&:focus{
|
129
|
+
cursor:pointer;
|
130
|
+
@extend %#{$component}-background-hover !optional;
|
131
|
+
&>a{
|
132
|
+
@extend %#{$component}-font-hover !optional;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
&>menu-item-search{
|
137
|
+
padding:$li-search-padding;
|
138
|
+
margin-left:auto;
|
139
|
+
}
|
140
|
+
&.flex-start,&.left{
|
141
|
+
margin-right:auto;
|
142
|
+
|
143
|
+
}
|
144
|
+
&.flex-end,&.right{
|
145
|
+
margin-left:auto;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
/* public ------------------------------------------------------------------------------------------------------------*/
|
151
|
+
|
152
|
+
@mixin ui-menu($class:null,$component:null,$divider:null,
|
153
|
+
$margin:0,
|
154
|
+
$padding:0,
|
155
|
+
$width:auto,
|
156
|
+
$height:inherit,
|
157
|
+
$li-margin:0,
|
158
|
+
$li-padding:1em,
|
159
|
+
$li-divider-border:1px solid,
|
160
|
+
$li-divider-padding:0,
|
161
|
+
$li-divider-margin:0,
|
162
|
+
$li-divider-height:100%,
|
163
|
+
$li-label-font-size:1em,
|
164
|
+
$li-label-padding:$li-padding,
|
165
|
+
$li-search-padding:$li-padding,
|
166
|
+
$z-index:$global-z-index + 4,
|
167
|
+
$top:0,
|
168
|
+
$left:0,
|
169
|
+
$li-stacked-padding:.5em 0 .5em 0
|
170
|
+
|
171
|
+
){
|
172
|
+
|
173
|
+
.ui-menu,ui-menu {
|
174
|
+
@if $class != null{
|
175
|
+
&.#{$class} {
|
176
|
+
@include _ui-menu($component,$divider,
|
177
|
+
$margin,
|
178
|
+
$padding,
|
179
|
+
$width,
|
180
|
+
$height,
|
181
|
+
$li-margin,
|
182
|
+
$li-padding,
|
183
|
+
$li-divider-border,
|
184
|
+
$li-divider-padding,
|
185
|
+
$li-divider-margin,
|
186
|
+
$li-divider-height,
|
187
|
+
$li-label-font-size,
|
188
|
+
$li-label-padding,
|
189
|
+
$li-search-padding,
|
190
|
+
$z-index,
|
191
|
+
$top,
|
192
|
+
$left,
|
193
|
+
$li-stacked-padding
|
194
|
+
);
|
195
|
+
@content;
|
196
|
+
}
|
197
|
+
} @else {
|
198
|
+
@include _ui-menu($component,$divider,
|
199
|
+
$margin,
|
200
|
+
$padding,
|
201
|
+
$width,
|
202
|
+
$height,
|
203
|
+
$li-margin,
|
204
|
+
$li-padding,
|
205
|
+
$li-divider-border,
|
206
|
+
$li-divider-padding,
|
207
|
+
$li-divider-margin,
|
208
|
+
$li-divider-height,
|
209
|
+
$li-label-font-size,
|
210
|
+
$li-label-padding,
|
211
|
+
$li-search-padding,
|
212
|
+
$z-index,
|
213
|
+
$top,
|
214
|
+
$left,
|
215
|
+
$li-stacked-padding
|
216
|
+
);
|
217
|
+
@content;
|
218
|
+
}
|
219
|
+
|
220
|
+
}
|
221
|
+
|
222
|
+
@media #{$breakpoint-touch}{
|
223
|
+
.ui-menu,ui-menu{
|
224
|
+
display:none;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
|
228
|
+
}
|
229
|
+
|
230
|
+
|
231
|
+
@mixin touch-ui-menu($class:null,$component:css-touch-menu,
|
232
|
+
$z-index:$global-z-index + 98,
|
233
|
+
$padding:58px 0 0 0,
|
234
|
+
$li-border-bottom:1px solid,
|
235
|
+
$li-padding:20px 0 20px 20px,
|
236
|
+
$li-link-padding:0,
|
237
|
+
$icon-font-size:1.5em,
|
238
|
+
$icon-padding:0 10px 0 0,
|
239
|
+
$icon-expand-top:20px,
|
240
|
+
$icon-expand-right:20px,
|
241
|
+
$icon-expand-font-size:1em
|
242
|
+
|
243
|
+
){
|
244
|
+
|
245
|
+
@media #{$breakpoint-touch}{
|
246
|
+
.touch-ui-menu,touch-ui-menu{
|
247
|
+
@if $class != null{
|
248
|
+
&.#{$class} {
|
249
|
+
@include _touch-ui-menu($component,
|
250
|
+
$z-index,
|
251
|
+
$padding,
|
252
|
+
$li-border-bottom,
|
253
|
+
$li-padding,
|
254
|
+
$li-link-padding,
|
255
|
+
$icon-font-size,
|
256
|
+
$icon-padding,
|
257
|
+
$icon-expand-top,
|
258
|
+
$icon-expand-right,
|
259
|
+
$icon-expand-font-size
|
260
|
+
);
|
261
|
+
@content;
|
262
|
+
}
|
263
|
+
}@else{
|
264
|
+
@include _touch-ui-menu($component,
|
265
|
+
$z-index,
|
266
|
+
$padding,
|
267
|
+
$li-border-bottom,
|
268
|
+
$li-padding,
|
269
|
+
$li-link-padding,
|
270
|
+
$icon-font-size,
|
271
|
+
$icon-padding,
|
272
|
+
$icon-expand-top,
|
273
|
+
$icon-expand-right,
|
274
|
+
$icon-expand-font-size
|
275
|
+
);
|
276
|
+
@content;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
}
|
280
|
+
|
281
|
+
@media #{$breakpoint-desktop}{
|
282
|
+
.touch-ui-menu,touch-ui-menu{
|
283
|
+
display:none;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
287
|
+
|