ellipsis-compass 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +15 -0
  2. data/lib/ellipsis-compass.rb +4 -0
  3. data/stylesheets/animation/_animate.scss +1206 -0
  4. data/stylesheets/animation/_animation.scss +121 -0
  5. data/stylesheets/animation/_animations.scss +771 -0
  6. data/stylesheets/animation/_transit.scss +425 -0
  7. data/stylesheets/animation/_transitions.scss +320 -0
  8. data/stylesheets/base/_breakpoints.scss +64 -0
  9. data/stylesheets/base/_document.scss +219 -0
  10. data/stylesheets/base/_global.scss +88 -0
  11. data/stylesheets/base/_normalize.scss +406 -0
  12. data/stylesheets/component/_component.scss +939 -0
  13. data/stylesheets/component/_ui.scss +955 -0
  14. data/stylesheets/flexbox/_flexbox.scss +305 -0
  15. data/stylesheets/font/_icons.scss +1492 -0
  16. data/stylesheets/font/_ubuntu.scss +38 -0
  17. data/stylesheets/form/_form.scss +836 -0
  18. data/stylesheets/grid/_grid.scss +312 -0
  19. data/stylesheets/helpers/_all.scss +8 -0
  20. data/stylesheets/helpers/_component.scss +177 -0
  21. data/stylesheets/helpers/_convenience.scss +277 -0
  22. data/stylesheets/helpers/_functions.scss +427 -0
  23. data/stylesheets/helpers/_grid.scss +39 -0
  24. data/stylesheets/helpers/_hardware-acceleration.scss +22 -0
  25. data/stylesheets/helpers/_mixins.scss +207 -0
  26. data/stylesheets/helpers/_touch.scss +107 -0
  27. data/stylesheets/helpers/_visibility.scss +138 -0
  28. data/stylesheets/image/_images.scss +19 -0
  29. data/stylesheets/imports/elements/_autosearch.scss +11 -0
  30. data/stylesheets/imports/elements/_badge.scss +23 -0
  31. data/stylesheets/imports/elements/_barchart.scss +254 -0
  32. data/stylesheets/imports/elements/_form.scss +8 -0
  33. data/stylesheets/imports/elements/_loginform.scss +6 -0
  34. data/stylesheets/imports/elements/_modellist.scss +14 -0
  35. data/stylesheets/imports/elements/_pluralize.scss +8 -0
  36. data/stylesheets/imports/elements/_signupform.scss +6 -0
  37. data/stylesheets/imports/elements/_slidenotification.scss +65 -0
  38. data/stylesheets/imports/elements/_stickyreveal.scss +44 -0
  39. data/stylesheets/imports/elements/_template.scss +7 -0
  40. data/stylesheets/imports/elements/_veneer.scss +36 -0
  41. data/stylesheets/shared/_shared.scss +282 -0
  42. data/stylesheets/touch/ui/_drawer.scss +41 -0
  43. data/stylesheets/touch/ui/_dropdown.scss +58 -0
  44. data/stylesheets/touch/ui/_menu.scss +131 -0
  45. data/stylesheets/touch/ui/_navbar.scss +44 -0
  46. data/stylesheets/touch/ui/_toggle.scss +127 -0
  47. data/stylesheets/touch/ui/_topbar.scss +48 -0
  48. data/stylesheets/typography/_typography.scss +746 -0
  49. data/stylesheets/ui/_autocomplete.scss +117 -0
  50. data/stylesheets/ui/_badge.scss +73 -0
  51. data/stylesheets/ui/_box.scss +78 -0
  52. data/stylesheets/ui/_breadcrumb.scss +64 -0
  53. data/stylesheets/ui/_button.scss +395 -0
  54. data/stylesheets/ui/_carousel.scss +284 -0
  55. data/stylesheets/ui/_collapsible.scss +61 -0
  56. data/stylesheets/ui/_container.scss +297 -0
  57. data/stylesheets/ui/_datepicker.scss +218 -0
  58. data/stylesheets/ui/_drawer.scss +96 -0
  59. data/stylesheets/ui/_dropdown.scss +394 -0
  60. data/stylesheets/ui/_file.scss +147 -0
  61. data/stylesheets/ui/_gallery.scss +219 -0
  62. data/stylesheets/ui/_label.scss +167 -0
  63. data/stylesheets/ui/_loading.scss +70 -0
  64. data/stylesheets/ui/_mediaobject.scss +108 -0
  65. data/stylesheets/ui/_menu.scss +287 -0
  66. data/stylesheets/ui/_menutab.scss +175 -0
  67. data/stylesheets/ui/_modal.scss +47 -0
  68. data/stylesheets/ui/_navbar.scss +315 -0
  69. data/stylesheets/ui/_notification.scss +154 -0
  70. data/stylesheets/ui/_pagination.scss +137 -0
  71. data/stylesheets/ui/_parallax.scss +233 -0
  72. data/stylesheets/ui/_popover.scss +3 -0
  73. data/stylesheets/ui/_rating.scss +106 -0
  74. data/stylesheets/ui/_sidebar.scss +110 -0
  75. data/stylesheets/ui/_slidingpanel.scss +57 -0
  76. data/stylesheets/ui/_social.scss +213 -0
  77. data/stylesheets/ui/_sticky.scss +9 -0
  78. data/stylesheets/ui/_table.scss +423 -0
  79. data/stylesheets/ui/_tabs.scss +242 -0
  80. data/stylesheets/ui/_toggle.scss +49 -0
  81. data/stylesheets/ui/_tooltip.scss +57 -0
  82. data/stylesheets/ui/_topbar.scss +210 -0
  83. data/stylesheets/ui/_tree.scss +3 -0
  84. data/stylesheets/ui/_window.scss +205 -0
  85. metadata +140 -0
@@ -0,0 +1,312 @@
1
+ /* grid
2
+
3
+ this is more or less a port of the Foundation grid
4
+
5
+ media-queries are not hard-coded,instead obeying the breakpoint-settings
6
+ default,tablet,desktop replace small, medium,large, although the latter are left in for compatibility reasons
7
+ custom tags grid-row,grid-column can be used instead of .row, .columns as class attributes of the div tag
8
+ no flag setting for semantic inclusion...must be called via a mixin
9
+ flag setting to prevent any touch horizontal screen scroll for content width greater than device width
10
+ */
11
+
12
+ /* public -----------------------------------------------------------------------------------------------------------*/
13
+
14
+ /* grid row */
15
+ @mixin grid-row($type: null,
16
+ $row-width: $grid-width,
17
+ $column-gutter: $grid-column-gutter) {
18
+
19
+ @if $type == nest {
20
+ margin-left: -($column-gutter/2);
21
+ margin-right: -($column-gutter/2);
22
+ max-width: none;
23
+ width: auto;
24
+ } @else if $type == collapse {
25
+ margin-left: 0;
26
+ margin-right: 0;
27
+ max-width: $row-width;
28
+ width: 100%;
29
+ } @else if $type == nest-collapse {
30
+ margin-left: 0;
31
+ margin-right: 0;
32
+ max-width: none;
33
+ width: auto;
34
+ } @else {
35
+ margin-left: auto;
36
+ margin-right: auto;
37
+ margin-top: 0;
38
+ margin-bottom: 0;
39
+ max-width: $row-width;
40
+ width: 100%;
41
+ }
42
+
43
+ @include clearfix();
44
+ }
45
+
46
+ /* grid column */
47
+ @mixin grid-column($columns: false,
48
+ $last-column: false,
49
+ $center: false,
50
+ $offset: false,
51
+ $push: false,
52
+ $pull: false,
53
+ $collapse: false,
54
+ $float: true,
55
+ $column-gutter: $grid-column-gutter,
56
+ $total-columns: $grid-columns) {
57
+
58
+ position: relative;
59
+
60
+ @if $collapse {
61
+ padding-left: 0;
62
+ padding-right: 0;
63
+ } @else if $collapse == false {
64
+ padding-left: $column-gutter / 2;
65
+ padding-right: $column-gutter / 2;
66
+ }
67
+
68
+ @if $columns {
69
+ width: grid-calc($columns, $total-columns);
70
+ @if $last-column {
71
+ float: right;
72
+ }
73
+ }
74
+
75
+ @if $offset {
76
+ margin-left: grid-calc($offset, $total-columns);
77
+ }
78
+
79
+ @if $push {
80
+ left: grid-calc($push, $total-columns);
81
+ right: auto;
82
+ }
83
+ @if $pull {
84
+ right: grid-calc($pull, $total-columns);
85
+ left: auto;
86
+ }
87
+
88
+ @if $center {
89
+ margin-left: auto;
90
+ margin-right: auto;
91
+ float: none !important;
92
+ }
93
+ @if $float {
94
+ @if $float == left or $float == true {
95
+ float: left;
96
+ } @else if $float == right {
97
+ float: right;
98
+ } @else {
99
+ float: none;
100
+ }
101
+ }
102
+
103
+ }
104
+
105
+
106
+ @mixin grid($row-width: null,
107
+ $column-gutter: null,
108
+ $total-columns: null,
109
+ $touch-horizontal-constrain: true) {
110
+
111
+ $grid-width: 1200px !default;
112
+ $grid-column-gutter: 30px !default;
113
+ $grid-width: em-calc($grid-width);
114
+ $grid-column-gutter: em-calc($grid-column-gutter);
115
+ $grid-columns: 12 !default;
116
+
117
+ @if $row-width !=null{
118
+ $grid-row-width: em-calc($row-width);
119
+ }
120
+ @if $column-gutter !=null{
121
+ $grid-column-gutter: em-calc($column-gutter);
122
+ }
123
+ @if $total-columns !=null{
124
+ $grid-columns: $total-columns;
125
+ }
126
+ grid-row,grid-columns{
127
+ display:block;
128
+ }
129
+ .row,grid-row {
130
+ @include grid-row($row-width: $grid-width, $column-gutter: $grid-column-gutter);
131
+
132
+ &.collapse {
133
+ .column,
134
+ .columns,
135
+ grid-columns{
136
+ @include grid-column($collapse: true, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
137
+ }
138
+ }
139
+
140
+ .row,grid-row {
141
+ @include grid-row($type: nest, $row-width: $grid-width, $column-gutter: $grid-column-gutter);
142
+ &.collapse {
143
+ @include grid-row($type: nest-collapse, $row-width: $grid-width, $column-gutter: $grid-column-gutter);
144
+ }
145
+ }
146
+ }
147
+
148
+ .column,
149
+ .columns,grid-columns {
150
+ @include grid-column($columns: $total-columns, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
151
+ }
152
+
153
+ /* default screen */
154
+ @media only screen {
155
+
156
+ @for $i from 1 through $grid-columns {
157
+ .default-#{$i},
158
+ .small-#{$i} {
159
+ @include grid-column($columns: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
160
+ }
161
+ }
162
+
163
+ @for $i from 0 through $grid-columns - 2 {
164
+ .default-offset-#{$i},
165
+ .small-offset-#{$i} {
166
+ @include grid-column($offset: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
167
+ }
168
+ }
169
+
170
+ [class*="column"] + [class*="column"]:last-child {
171
+ float: right;
172
+ }
173
+ [class*="column"] + [class*="column"].end {
174
+ float: left;
175
+ }
176
+ grid-columns{
177
+ &:last-child{
178
+ float: right;
179
+ }
180
+ }
181
+ grid-columns{
182
+ &.end{
183
+ float:left;
184
+ }
185
+ }
186
+
187
+ .column.default-centered,
188
+ .columns.default-centered,
189
+ .column.small-centered,
190
+ .columns.small-centered,
191
+ grid-columns.default-centered,
192
+ grid-columns.small-centered{
193
+ @include grid-column($center: true, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
194
+ }
195
+ }
196
+
197
+ /* tablet(or medium) */
198
+ @media #{$breakpoint-grid-tablet} {
199
+
200
+ @for $i from 1 through $grid-columns {
201
+ .tablet-#{$i},
202
+ .medium-#{$i} {
203
+ @include grid-column($columns: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
204
+ }
205
+ }
206
+
207
+ @for $i from 0 through $grid-columns - 1 {
208
+ .tablet-offset-#{$i},
209
+ .medium-offset-#{$i} {
210
+ @include grid-column($offset: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
211
+ }
212
+ }
213
+
214
+ @for $i from 1 through $grid-columns - 1 {
215
+ .tablet-push-#{$i},
216
+ .medium-push-#{$i} {
217
+ @include grid-column($push: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
218
+ }
219
+ .tablet-pull-#{$i},
220
+ .medium-pull-#{$i} {
221
+ @include grid-column($pull: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
222
+ }
223
+ }
224
+
225
+ .column.tablet-centered,
226
+ .columns.tablet-centered,
227
+ .column.medium-centered,
228
+ .columns.medium-centered,
229
+ grid-columns.tablet-centered,
230
+ grid-columns.medium-centered{
231
+ @include grid-column($center: true, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
232
+ }
233
+
234
+ .column.tablet-uncentered,
235
+ .columns.tablet-uncentered,
236
+ .column.medium-uncentered,
237
+ .columns.medium-uncentered,
238
+ grid-columns.tablet-uncentered,
239
+ grid-columns.medium-uncentered{
240
+ margin-left: 0;
241
+ margin-right: 0;
242
+ float: left !important;
243
+ }
244
+
245
+ }
246
+
247
+ /* desktop(or large) */
248
+ @media #{$breakpoint-grid-desktop} {
249
+
250
+ @for $i from 1 through $grid-columns {
251
+ .desktop-#{$i},
252
+ .large-#{$i} {
253
+ @include grid-column($columns: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
254
+ }
255
+ }
256
+
257
+ @for $i from 0 through $grid-columns - 1 {
258
+ .desktop-offset-#{$i},
259
+ .large-offset-#{$i} {
260
+ @include grid-column($offset: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
261
+ }
262
+ }
263
+
264
+ @for $i from 1 through $grid-columns - 1 {
265
+ .desktop-push-#{$i},
266
+ .large-push-#{$i} {
267
+ @include grid-column($push: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
268
+ }
269
+ .desktop-pull-#{$i},
270
+ .large-pull-#{$i} {
271
+ @include grid-column($pull: $i, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
272
+ }
273
+ }
274
+
275
+ .column.desktop-centered,
276
+ .columns.desktop-centered,
277
+ .column.large-centered,
278
+ .columns.large-centered,
279
+ grid-columns.desktop-centered,
280
+ grid-columns.large-centered{
281
+ @include grid-column($center: true, $collapse: null, $float: false, $column-gutter: $grid-column-gutter, $total-columns: $grid-columns);
282
+ }
283
+
284
+ .column.desktop-uncentered,
285
+ .columns.desktop-uncentered,
286
+ .column.large-uncentered,
287
+ .columns.large-uncentered,
288
+ grid-columns.desktop-uncentered,
289
+ grid-columns.large-uncentered{
290
+ margin-left: 0;
291
+ margin-right: 0;
292
+ float: left !important;
293
+ }
294
+
295
+ }
296
+
297
+ /* enforce no screen horizontal scrolling */
298
+ @if $touch-horizontal-constrain {
299
+ @media #{$breakpoint-touch}{
300
+ .row,grid-row {
301
+ overflow: hidden;
302
+ &.overflow {
303
+ /* re-enable on per row basis, if needed */
304
+ overflow: visible;
305
+ }
306
+ }
307
+ }
308
+ }
309
+
310
+ @content;
311
+ }
312
+
@@ -0,0 +1,8 @@
1
+ @import "component";
2
+ @import "convenience";
3
+ @import "grid";
4
+ @import "hardware-acceleration";
5
+ @import "touch";
6
+ @import "functions";
7
+ @import "mixins";
8
+ @import "visibility";
@@ -0,0 +1,177 @@
1
+ @mixin helpers-component() {
2
+ $helpers-component-box-shadow:rgba(0, 0, 0, .2) -1px -2px 20px 1px !default;
3
+ // box shadow
4
+ .ui-left-box-shadow {
5
+ box-shadow: $helpers-component-box-shadow;
6
+ }
7
+
8
+ ui-container,ui-drawer,touch-ui-drawer{
9
+ display:block;
10
+ }
11
+
12
+ //overlay
13
+ [data-role=overlay],ui-overlay {
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ z-index: $global-z-index + 999999;
20
+ display:none;
21
+ &.show{
22
+ display:block;
23
+ }
24
+ }
25
+
26
+ //toggle-container
27
+ .ui-fixed-toggle-container {
28
+ z-index: $global-z-index + 9999;
29
+ top: 0;
30
+ bottom: 0;
31
+ width: 100%;
32
+ background:$global-background;
33
+ position: fixed;
34
+ overflow: hidden;
35
+ *{
36
+ &:focus{
37
+ @include disable-focus();
38
+ }
39
+ }
40
+ }
41
+
42
+ .ui-overflow-container {
43
+ width: 100%;
44
+ overflow-x: hidden;
45
+ }
46
+
47
+ /* ul lists */
48
+ %ui-list {
49
+ list-style: none;
50
+ padding: 0;
51
+ margin: 0;
52
+ display: block;
53
+ }
54
+
55
+ // disabled component state
56
+ %ui-disabled-component {
57
+ text-shadow: none !important;
58
+ outline: none !important;
59
+ box-shadow: none !important;
60
+ border: 0 !important;
61
+ cursor: default !important;
62
+ color:$component-font-color-disabled !important;
63
+ &>*{
64
+ color:$component-font-color-disabled !important;
65
+ &:after{
66
+ background:none !important;
67
+ color:$component-font-color-disabled !important;
68
+ }
69
+ &:before{
70
+ background:none !important;
71
+ color:$component-font-color-disabled !important;
72
+ }
73
+ &:hover{
74
+ background:transparent;
75
+ color:$component-font-color-disabled !important;
76
+ }
77
+ }
78
+ &:after{
79
+ background:none !important;
80
+ color:$component-font-color-disabled !important;
81
+ }
82
+ &:before{
83
+ background:none !important;
84
+ color:$component-font-color-disabled !important;
85
+ }
86
+ &:hover{
87
+ background:transparent;
88
+ color:$component-font-color-disabled !important;
89
+ }
90
+
91
+ }
92
+
93
+
94
+ // disabled touch component state
95
+ %touch-ui-disabled-component {
96
+ @media #{$breakpoint-touch}{
97
+ background: $component-background-disabled !important;
98
+ text-shadow: none !important;
99
+ outline: none !important;
100
+ box-shadow: none !important;
101
+ border: 0 !important;
102
+ cursor: default !important;
103
+ color:$component-font-color-disabled !important;
104
+ &:after{
105
+ background:none !important;
106
+ color:$component-font-color-disabled !important;
107
+ }
108
+ &:before{
109
+ background:none !important;
110
+ color:$component-font-color-disabled !important;
111
+ }
112
+ }
113
+ }
114
+
115
+ .ui-focus{
116
+ @include tab-focus();
117
+ &:focus{
118
+ @include tab-focus();
119
+ }
120
+ }
121
+
122
+ //caret,dropdown arrow
123
+ span{
124
+ &.caret{
125
+ font-size:14px;
126
+ padding:0 .1rem 0 1rem;
127
+ @extend .icon-ui-arrow-down;
128
+ }
129
+ }
130
+
131
+ .ui-static{
132
+ position:static;
133
+ }
134
+
135
+ .ui-hide{
136
+ visibility: hidden;
137
+ }
138
+
139
+ .ui-absolute{
140
+ position:absolute;
141
+ }
142
+
143
+ .ui-flex-start{
144
+ margin-right:auto;
145
+
146
+ }
147
+ .box-shadow-none{
148
+ &:not(:active) {
149
+ box-shadow: none;
150
+ }
151
+
152
+ }
153
+
154
+ span{
155
+ &.disabled{
156
+ color:#eee;
157
+ }
158
+ &.large-icon{
159
+ font-size:2em;
160
+ }
161
+ &.medium-icon{
162
+ font-size:1.5em;
163
+ }
164
+ }
165
+
166
+ .ui-inset-shadow{
167
+ opacity: 1;
168
+ text-shadow: rgba(0, 0, 0, 0.8) 0 -1px 0;
169
+ }
170
+ .ui-inset-shadow-important{
171
+ opacity: 1 !important;
172
+ text-shadow: rgba(0, 0, 0, 0.8) 0 -1px 0 !important;
173
+ }
174
+
175
+
176
+ }
177
+