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,49 @@
1
+ /* ui-toggle */
2
+
3
+ /* public ------------------------------------------------------------------------------------------------------------*/
4
+ @mixin ui-toggle($class:null,$component:css-toggle-black,
5
+ $height: 59px,
6
+ $width: 60px,
7
+ $border-right:1px solid,
8
+ $icon-size:16px,
9
+ $icon-left:10px,
10
+ $icon-top:16px
11
+
12
+ ){
13
+ .ui-toggle,ui-toggle{
14
+ display:none;
15
+ }
16
+ @media #{$breakpoint-touch}{
17
+
18
+ .ui-toggle,ui-toggle{
19
+ display:inherit;
20
+ @if $class != null{
21
+ &.#{$class} {
22
+ @include _touch-ui-toggle($component,
23
+ $height,
24
+ $width,
25
+ $border-right,
26
+ $icon-size,
27
+ $icon-left,
28
+ $icon-top
29
+ );
30
+ @content;
31
+ }
32
+ }@else{
33
+ @include _touch-ui-toggle($component,
34
+ $height,
35
+ $width,
36
+ $border-right,
37
+ $icon-size,
38
+ $icon-left,
39
+ $icon-top
40
+ );
41
+ @content;
42
+ }
43
+
44
+ }
45
+ }
46
+
47
+ }
48
+
49
+
@@ -0,0 +1,57 @@
1
+ /* ui-tooltip */
2
+
3
+ /* Private -----------------------------------------------------------------------------------------------------------*/
4
+
5
+ @mixin _ui-tooltip($component: null,
6
+ $border-radius: null,
7
+ $padding:null,
8
+ $font-size:null,
9
+ $z-index:null,
10
+ $tip-color:null
11
+ ) {
12
+ position:absolute;
13
+ font-size:$font-size;
14
+ padding:$padding;
15
+ border-radius:$border-radius;
16
+ z-index:$z-index;
17
+ @extend %#{$component}-background !optional;
18
+ @extend %#{$component}-font !optional;
19
+ @extend %#{$component}-border !optional;
20
+ @extend %#{$component}-box-shadow !optional;
21
+ canvas{
22
+ position:absolute;
23
+ left:0px;
24
+ color:$tip-color;
25
+ }
26
+ display:none;
27
+
28
+ }
29
+
30
+
31
+ /* Public ------------------------------------------------------------------------------------------------------------*/
32
+
33
+ @mixin ui-tooltip($class: null, $component:primary,
34
+ $border-radius: $global-radius,
35
+ $padding:.2em .5em .2em .5em,
36
+ $font-size:.8em,
37
+ $z-index:9999,
38
+ $tip-color:$primary-color
39
+ ) {
40
+
41
+ .data-tooltip {
42
+ @if $class != null{
43
+ &.#{$class} {
44
+ @include _ui-tooltip($component, $border-radius, $padding,$font-size,$z-index,$tip-color);
45
+ @content;
46
+ }
47
+ } @else {
48
+ @include _ui-tooltip($component,$border-radius,$padding,$font-size,$z-index,$tip-color);
49
+ @content;
50
+ }
51
+
52
+ }
53
+
54
+ .ui-tooltip{
55
+ cursor:pointer;
56
+ }
57
+ }
@@ -0,0 +1,210 @@
1
+ /* ui-topbar */
2
+
3
+ /* private -----------------------------------------------------------------------------------------------------------*/
4
+
5
+ @mixin _ui-topbar($component: null,
6
+ $position: null,
7
+ $padding: null,
8
+ $height: null,
9
+ $z-index: null,
10
+ $brand-font-size: null,
11
+ $line-height: null,
12
+ $justification:null,
13
+ $alignment:null,
14
+ $brand-justification:null,
15
+ $brand-alignment:null,
16
+ $brand-min-width:null,
17
+ $brand-padding:null,
18
+ $section-justification:null,
19
+ $menu-justification:null) {
20
+
21
+ $_ui-topbar-contained-to-grid: $grid-width - $grid-column-gutter;
22
+
23
+ position: $position;
24
+ width: 100%;
25
+ padding: $padding;
26
+ @include invoke-component-default-state($component);
27
+ border-right: 0;
28
+ border-left: 0;
29
+ height: $height;
30
+ @include flexbox($justification: $justification, $alignment: $alignment);
31
+
32
+ @if $position == absolute or $position == fixed {
33
+ top: 0;
34
+ left: 0;
35
+ z-index: $z-index;
36
+
37
+ }
38
+ @if $position==relative{
39
+ max-height:$height;
40
+ }
41
+ .brand,ui-brand {
42
+ cursor:pointer;
43
+ padding: $brand-padding;
44
+ height:100%;
45
+ min-width:$brand-min-width;
46
+ a{
47
+ font-size:1em;
48
+ @extend %#{$component}-font !optional;
49
+ //display:block;
50
+ @include flexbox($justification: $brand-justification, $alignment: $brand-alignment);
51
+ &:hover{
52
+ @extend %#{$component}-font-hover !optional;
53
+ }
54
+
55
+ }
56
+ @include flexbox($justification: $brand-justification, $alignment: $brand-alignment);
57
+ @extend %#{$component}-font !optional;
58
+ font-size:$brand-font-size;
59
+ &.left{
60
+ position:absolute;
61
+ left:0;
62
+ top:0;
63
+ }
64
+ }
65
+
66
+ * {
67
+ list-style: none;
68
+ &.right,&.flex-end {
69
+ margin-left:auto;
70
+ height:100%;
71
+ @include flexbox($justification: $menu-justification, $alignment: $alignment);
72
+ }
73
+ &.left,&.flex-start{
74
+ margin-right:auto;
75
+ height:100%;
76
+ @include flexbox($justification: $menu-justification, $alignment:$alignment);
77
+ }
78
+ }
79
+ & > section {
80
+ height: $height;
81
+ width: $_ui-topbar-contained-to-grid;
82
+ position:relative;
83
+ background:none;
84
+ @include flexbox($justification: $section-justification, $alignment: $alignment);
85
+ &.center {
86
+ margin-left:auto;
87
+ margin-right:auto;
88
+ align-self:center;
89
+ .ui-menu,ui-menu {
90
+ @include flexbox($justification: $menu-justification, $alignment: $alignment);
91
+ &.left,&.flex-start{
92
+ margin-right:auto;
93
+ }
94
+ }
95
+ }
96
+
97
+ }
98
+ &.fixed {
99
+ position: fixed;
100
+ top: 0;
101
+ left: 0;
102
+ z-index: $z-index;
103
+
104
+ }
105
+ //when the screen width matches grid width, we must further subtract gutter width from the max-width and use gutter width as the margin
106
+ @include grid-contain-content() {
107
+ & > section {
108
+ left: 0;
109
+ margin: 0;
110
+ max-width: $grid-width - $grid-column-gutter - $grid-column-gutter;
111
+ }
112
+ }
113
+
114
+ }
115
+
116
+ /* public ------------------------------------------------------------------------------------------------------------*/
117
+
118
+ @mixin ui-topbar($class: null, $component: css-bar, $touch-component: css-touch-black,
119
+ $position: fixed,
120
+ $padding: 0,
121
+ $height: 50px,
122
+ $z-index: $global-z-index + 999,
123
+ $brand-font-size: 1.5em,
124
+ $line-height: .5,
125
+ $justification:center,
126
+ $alignment:center,
127
+ $brand-justification:flex-start,
128
+ $brand-alignment:center,
129
+ $brand-min-width:6em,
130
+ $brand-padding:0 0 0 1em,
131
+ $section-justification:flex-start,
132
+ $menu-justification:center,
133
+ $touch-position: fixed,
134
+ $touch-height: 60px,
135
+ $touch-z-index: $global-z-index + 999,
136
+ $touch-brand-font-size:1.75em
137
+ ) {
138
+
139
+
140
+
141
+ .ui-topbar,ui-topbar {
142
+ @if $class != null {
143
+ &.#{$class} {
144
+ @include desktop-content() {
145
+ @include _ui-topbar($component, $position, $padding, $height, $z-index, $brand-font-size, $line-height,
146
+ $justification,$alignment,$brand-justification,$brand-alignment,$brand-min-width,$brand-padding,$section-justification,$menu-justification);
147
+ }
148
+ @content
149
+ }
150
+ } @else {
151
+ @include desktop-content() {
152
+ @include _ui-topbar($component, $position, $padding, $height, $z-index, $brand-font-size, $line-height,
153
+ $justification,$alignment,$brand-justification,$brand-alignment,$brand-min-width,$brand-padding,$section-justification,$menu-justification);
154
+ }
155
+ @content;
156
+ }
157
+ }
158
+
159
+ /* if fixed position, margin of next element =topbar height + 1em */
160
+ @if $position != relative {
161
+ @if $class != null {
162
+ .ui-topbar.#{$class} + *,ui-topbar.#{$class} + * {
163
+ margin-top: $height;
164
+ }
165
+ } @else {
166
+ .ui-topbar + *,ui-topbar + * {
167
+ margin-top: $height;
168
+ }
169
+ }
170
+ }
171
+
172
+ @media #{$breakpoint-touch}{
173
+ .ui-topbar,ui-topbar{
174
+ @if $class != null {
175
+ &.#{$class} {
176
+ @include _touch-ui-topbar($touch-component, $touch-position, $touch-height, $touch-z-index,$touch-brand-font-size);
177
+ }
178
+ } @else {
179
+ @include _touch-ui-topbar($touch-component, $touch-position, $touch-height, $touch-z-index,$touch-brand-font-size);
180
+ }
181
+ /* for touch, if fixed position, padding of next element =topbar height */
182
+ @if $touch-position != relative {
183
+ @if $class != null {
184
+ .ui-topbar.#{$class} + *, ui-topbar.#{$class} + *{
185
+ padding-top: $touch-height;
186
+ }
187
+ } @else {
188
+ .ui-topbar + *, ui-topbar + * {
189
+ padding-top: $touch-height;
190
+ }
191
+ }
192
+ }
193
+ }
194
+ }
195
+ }
196
+
197
+ @mixin ui-topbar-brand() {
198
+ .brand {
199
+ @content;
200
+ }
201
+ }
202
+
203
+ @mixin touch-ui-topbar-brand() {
204
+ @include touch-content() {
205
+ .brand {
206
+ @content;
207
+ }
208
+ }
209
+
210
+ }
@@ -0,0 +1,3 @@
1
+ /* ui-tree */
2
+
3
+ // TODO
@@ -0,0 +1,205 @@
1
+ /* ui-window */
2
+
3
+ /* Private ------------------------------------------------------------------------------------------------------------*/
4
+
5
+
6
+ @mixin _ui-window($component:null,$header-component:null,$close-component:null,$footer-component:null,
7
+ $border-radius:null,
8
+ $z-index:null,
9
+ $width:null,
10
+ $height:null,
11
+ $top:null
12
+
13
+ ) {
14
+
15
+
16
+ $_window-margin-left:$width/2;
17
+
18
+ width: $width;
19
+ height: $height;
20
+ border-radius: $border-radius;
21
+ @extend %#{$component}-background !optional;
22
+ @extend %#{$component}-border !optional;
23
+ @extend %#{$component}-box-shadow !optional;
24
+ border-bottom:0 !important;
25
+ border-left:0 !important;
26
+ border-right:0 !important;
27
+ background-clip: padding-box;
28
+ position: fixed;
29
+ top: $top;
30
+ left: 50%;
31
+ margin-left: -#{$_window-margin-left};
32
+ z-index: $z-index;
33
+ outline: none;
34
+ display: none;
35
+ overflow: hidden;
36
+ &.no-shadow {
37
+ box-shadow:none;
38
+ }
39
+ header {
40
+ width: 100%;
41
+ height: 35px;
42
+ border-top-left-radius: $border-radius;
43
+ border-top-right-radius: $border-radius;
44
+ @extend %#{$header-component}-background !optional;
45
+ @extend %#{$header-component}-border !optional;
46
+ border-top:0 !important;
47
+ border-left:0 !important;
48
+ border-right:0 !important;
49
+ margin: 0;
50
+ position: relative;
51
+
52
+ h3 {
53
+ font-size: 14px;
54
+ text-align: center;
55
+ margin: 0px;
56
+ padding-top: 10px;
57
+ @extend %#{$header-component}-font !optional;
58
+
59
+ }
60
+ .close {
61
+ position: absolute;
62
+ right: 0;
63
+ top: 0;
64
+ @extend %#{$close-component}-box-shadow !optional;
65
+ @extend %#{$close-component}-font !optional;
66
+ @extend %#{$close-component}-border !optional;
67
+ border-top:0 !important;
68
+ border-bottom:0 !important;
69
+ border-right:0 !important;
70
+ border-top-right-radius: $border-radius;
71
+ width: 35px;
72
+ height: 35px;
73
+ font-size: 1.1rem;
74
+ padding: 8px 11px;
75
+ &:hover {
76
+ @include single-transition(0.15s, background, linear);
77
+ @include single-transition(0.15s, color, linear);
78
+ @extend %#{$close-component}-background-hover !optional;
79
+ cursor: pointer;
80
+ @extend %#{$close-component}-font-hover !optional;
81
+ }
82
+ }
83
+ }
84
+ section {
85
+ position: relative;
86
+ overflow-y: auto;
87
+ padding: 15px;
88
+ width: 100%;
89
+ height: 90%;
90
+ padding-bottom: 80px;
91
+ @extend %#{$component}-background !optional;
92
+ @extend %#{$component}-font !optional;
93
+ h2,h3,h4,h5{
94
+ @extend %#{$component}-font !optional;
95
+ }
96
+ h5{
97
+ font-weight:bold;
98
+ }
99
+
100
+ }
101
+ footer {
102
+ padding: 14px 15px 15px;
103
+ margin-bottom: 0;
104
+ text-align: right;
105
+ @extend %#{$footer-component}-background !optional;
106
+ @extend %#{$footer-component}-border !optional;
107
+ @extend %#{$footer-component}-box-shadow !optional;
108
+ border-bottom:0 !important;
109
+ border-left: 0 !important;
110
+ border-right:0 !important;
111
+ border-bottom-left-radius: $border-radius;
112
+ border-bottom-right-radius: $border-radius;
113
+ position: absolute;
114
+ left: 0;
115
+ bottom: 0;
116
+ width: 100%;
117
+ min-height: 40px;
118
+ .ui-button + .ui-button {
119
+ margin-left: 5px;
120
+ margin-bottom: 0;
121
+
122
+ }
123
+ }
124
+
125
+
126
+
127
+
128
+ }
129
+
130
+ /* Public -------------------------------------------------------------------------------------------------------------*/
131
+
132
+ @mixin ui-window($class: null,$component:css-window,$header-component:css-window-header,$close-component:css-window-close,$footer-component:css-window-footer,
133
+ $border-radius:$global-radius,
134
+ $z-index:$global-z-index + 99999999,
135
+ $width:560px ,
136
+ $height:520px,
137
+ $top:100px
138
+
139
+ ) {
140
+
141
+ .ui-window,ui-window {
142
+ @if $class != null{
143
+ &.#{$class} {
144
+ @include _ui-window($component,$header-component,$close-component,$footer-component,
145
+ $border-radius,$z-index,$width,$height,$top);
146
+
147
+ @content;
148
+
149
+ }
150
+ } @else {
151
+ @include _ui-window($component,$header-component,$close-component,$footer-component,
152
+ $border-radius,$z-index,$width,$height,$top);
153
+
154
+ @content;
155
+ }
156
+
157
+ }
158
+ @media #{$breakpoint-phone}{
159
+ .ui-window,ui-window {
160
+ width: 300px;
161
+ height: 380px;
162
+ top: 5px;
163
+ left: 10px;
164
+ margin-left: 0;
165
+ header {
166
+ width: 100%;
167
+ height: 30px;
168
+ margin: 0;
169
+ position: relative;
170
+
171
+ h3 {
172
+ font-size: 12px;
173
+ text-align: center;
174
+ margin: 0px;
175
+ padding-top: 2px;
176
+ }
177
+ .close {
178
+ font-size: 1rem;
179
+ padding: 5px 8px;
180
+
181
+ }
182
+ }
183
+ section {
184
+ padding: 10px;
185
+ height: 70%;
186
+ padding-bottom: 30px;
187
+
188
+ }
189
+ footer {
190
+ padding: 6px 9px 9px;
191
+ margin-bottom: 0;
192
+ text-align: right;
193
+ min-height: 20px;
194
+ .ui-button {
195
+ padding: $ui-button-tiny-padding;
196
+ }
197
+ .ui-button + .ui-button {
198
+ margin-left: 5px;
199
+ margin-bottom: 0;
200
+ padding: $ui-button-tiny-padding;
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }