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,147 @@
1
+ /* ui-file */
2
+
3
+ /* private -----------------------------------------------------------------------------------------------------------*/
4
+
5
+ @mixin _ui-file($component:null,
6
+ $min-height:null,
7
+ $border:null,
8
+ $z-index:null,
9
+ $drop-zone-padding:null,
10
+ $font-size:null,
11
+ $header-font-size:null,
12
+ $position:null,
13
+ $button-margin:null,
14
+ $p-margin:null,
15
+ $preview-columns:null
16
+
17
+ ) {
18
+
19
+ $_ui-file-column-percentage:columns-to-percentage($preview-columns);
20
+
21
+ input[type=file] {
22
+ display: none;
23
+ }
24
+
25
+ position: relative;
26
+ &.active{
27
+ min-height:$min-height;
28
+ @extend %#{$component}-border !optional;
29
+ @if $border != null {
30
+ border:$border;
31
+ }
32
+ &:hover, &:focus {
33
+ @extend %#{$component}-border-hover !optional;
34
+ }
35
+ }
36
+
37
+
38
+ .ui-upload-overlay {
39
+ position: absolute;
40
+ top: $position;
41
+ left: $position;
42
+ z-index: $z-index;
43
+ @extend %#{$component}-background !optional;
44
+ right: $position;
45
+ bottom: $position;
46
+ & > .ui-drop-zone {
47
+ padding: $drop-zone-padding;
48
+ h2 {
49
+ font-size: $header-font-size;
50
+ @extend %#{$component}-font !optional;
51
+ }
52
+ p {
53
+ font-size: $font-size;
54
+ @extend %#{$component}-font !optional;
55
+ margin: $p-margin;
56
+ }
57
+ .ui-button {
58
+ margin: $button-margin;
59
+ }
60
+ }
61
+ & > progress {
62
+ position: absolute;
63
+ left: 0px;
64
+ bottom: 0px;
65
+ width: 100%;
66
+ }
67
+ .ui-preview{
68
+ padding:40px 20px 40px 20px;
69
+ &>ul{
70
+ list-style: none;
71
+ &>li{
72
+ display:inline-block;
73
+ width:$_ui-file-column-percentage - 2;
74
+ padding:10px;
75
+ &>img{
76
+ width:100%;
77
+ height:auto;
78
+ }
79
+ &>div{
80
+ margin:5px 0 0 0;
81
+ font-size:12px;
82
+ @extend %#{$component}-font-active !optional;
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+
89
+ }
90
+
91
+ /* public -----------------------------------------------------------------------------------------------------------*/
92
+
93
+ @mixin ui-file($class:null,$component:css-input-file,
94
+ $min-height:550px,
95
+ $border:null,
96
+ $z-index:$global-z-index + 999,
97
+ $drop-zone-padding:100px 0 0 100px,
98
+ $font-size:1em,
99
+ $header-font-size:2.25em,
100
+ $position:0,
101
+ $button-margin:0 0 0 5.625em,
102
+ $p-margin:.3125em 0 .625em 8em,
103
+ $preview-columns:3,
104
+ $hide-for-touch:true
105
+
106
+
107
+ ) {
108
+
109
+ .ui-file {
110
+ @if $class != null{
111
+ &.#{$class} {
112
+ @include _ui-file($component, $min-height,$border,$z-index,$drop-zone-padding,
113
+ $font-size,
114
+ $header-font-size,
115
+ $position,
116
+ $button-margin,
117
+ $p-margin,
118
+ $preview-columns
119
+ );
120
+ @content;
121
+ }
122
+ } @else {
123
+ @include _ui-file($component, $min-height, $border,$z-index,$drop-zone-padding,
124
+ $font-size,
125
+ $header-font-size,
126
+ $position,
127
+ $button-margin,
128
+ $p-margin,
129
+ $preview-columns
130
+ );
131
+ @content;
132
+ }
133
+ }
134
+
135
+ @if $hide-for-touch == true{
136
+ @media #{$breakpoint-touch}{
137
+ .ui-file,[data-ui=file] {
138
+ border:none;
139
+ .ui-upload-overlay {
140
+ display:none;
141
+ }
142
+ }
143
+ }
144
+ }
145
+
146
+
147
+ }
@@ -0,0 +1,219 @@
1
+ /* ui-flex-gallery --------------------------------------------------------------------------------------------- */
2
+
3
+ @mixin ui-flex-gallery(
4
+ $columns:3,
5
+ $justification:space-between,
6
+ $grid-contain-columns:3,
7
+ $tablet-columns:2,
8
+ $container-width:80%,
9
+ $cell-height:250px,
10
+ $max-img-height:175px,
11
+ $line-height:1.5,
12
+ $img-justify:center,
13
+ $img-align:center,
14
+ $descriptions-margin:auto 0 1em 0,
15
+ $descriptions-justify:flex-start,
16
+ $descriptions-align:center,
17
+ $descriptions-child-justify:center,
18
+ $descriptions-child-align:center,
19
+ $tablet-cell-height:250px,
20
+ $tablet-max-img-height:175px,
21
+ $tablet-container-width:$container-width,
22
+ $tablet-portrait-cell-height:250px,
23
+ $tablet-portrait-max-img-height:175px,
24
+ $tablet-portrait-container-width:$container-width,
25
+ $small-tablet-breakpoint:false,
26
+ $phone-cell-height:200px,
27
+ $phone-max-img-height:150px,
28
+ $phone-img-container-margin:0 1em 0 0,
29
+ $phone-border-bottom:1px solid #ddd,
30
+ $phone-cell-margin:1em 0 0 0,
31
+ $phone-line-height:1.3,
32
+ $phone-descriptions-margin:.5em 0 1em 0,
33
+ $include-gutter-bleed:false
34
+
35
+
36
+ ) {
37
+ $_flex-gallery-column-percentage: columns-to-percentage($columns);
38
+
39
+ .ui-flex-gallery {
40
+ @include display-flex();
41
+ @include justify-content($justification);
42
+ @include align-items(center);
43
+ width: 100%;
44
+ @include flex-wrap(wrap);
45
+ & > .item {
46
+ @include display-flex();
47
+ @include justify-content(center);
48
+ @include align-items(center);
49
+ @include flex-direction(column);
50
+ width: $_flex-gallery-column-percentage;
51
+ overflow: hidden;
52
+ max-height:$cell-height;
53
+ & > .img-container {
54
+ width: $container-width;
55
+ height: $max-img-height;
56
+ overflow: hidden;
57
+ @include display-flex();
58
+ @include justify-content($img-justify);
59
+ @include align-items($img-align);
60
+ & > img {
61
+ max-width: 100% !important;
62
+ height: auto !important;
63
+ }
64
+ }
65
+ & > .descriptions {
66
+ width: $container-width;
67
+ line-height: $line-height;
68
+ @include display-flex();
69
+ @include justify-content($descriptions-justify);
70
+ @include align-items($descriptions-align);
71
+ @include flex-direction(column);
72
+ margin:$descriptions-margin;
73
+ &>*{
74
+ width:100%;
75
+ @include display-flex();
76
+ @include justify-content($descriptions-child-justify);
77
+ @include align-items($descriptions-child-align);
78
+ }
79
+ }
80
+ }
81
+ @content;
82
+ }
83
+
84
+ @include grid-contain-content() {
85
+ $_grid-contain_flex-gallery-column-percentage: columns-to-percentage($grid-contain-columns);
86
+ .ui-flex-gallery {
87
+ & > .item {
88
+ width: $_grid-contain_flex-gallery-column-percentage;
89
+ }
90
+ }
91
+ }
92
+
93
+ @include tablet-content(){
94
+ $_tablet_flex-gallery-column-percentage: columns-to-percentage($tablet-columns);
95
+ .ui-flex-gallery {
96
+ & > .item {
97
+ width: $_tablet_flex-gallery-column-percentage;
98
+ max-height:$tablet-cell-height;
99
+ & > .img-container {
100
+ width: $tablet-container-width;
101
+ height: $tablet-max-img-height;
102
+ }
103
+ & > .descriptions{
104
+ width: $tablet-container-width;
105
+ }
106
+ }
107
+ }
108
+ }
109
+
110
+ @include tablet-portrait-content(){
111
+ $_tablet_flex-gallery-column-percentage: columns-to-percentage($tablet-columns);
112
+ .ui-flex-gallery {
113
+ & > .item {
114
+ width: $_tablet_flex-gallery-column-percentage;
115
+ max-height:$tablet-portrait-cell-height;
116
+ & > .img-container {
117
+ width: $tablet-portrait-container-width;
118
+ height: $tablet-portrait-max-img-height;
119
+ }
120
+ & > .descriptions{
121
+ width: $tablet-portrait-container-width;
122
+ }
123
+ }
124
+ }
125
+ }
126
+
127
+ @if $small-tablet-breakpoint ==true {
128
+ @include tablet-small-content() {
129
+ .ui-flex-gallery {
130
+ @if $include-gutter-bleed==true{
131
+ @include gutter-bleed();
132
+ }
133
+ & > .item {
134
+ width: 100%;
135
+ height:$phone-cell-height;
136
+ flex-direction:row;
137
+ justify-content: flex-start;
138
+ border-bottom:$phone-border-bottom;
139
+ margin:$phone-cell-margin;
140
+ &:first-child{
141
+ margin-top:0;
142
+ }
143
+ &:last-child{
144
+ border-bottom:0;
145
+ }
146
+ & > .img-container {
147
+ max-width: 50%;
148
+ height: $phone-max-img-height;
149
+ flex-grow:1;
150
+ margin:$phone-img-container-margin;
151
+ justify-content: flex-start;
152
+ align-self:flex-start;
153
+ & > img {
154
+ align-self: flex-start;
155
+ }
156
+ }
157
+ & > .descriptions {
158
+ height:100%;
159
+ width:50%;
160
+ flex-grow:1;
161
+ line-height: $phone-line-height;
162
+ margin:$phone-descriptions-margin;
163
+ justify-content: flex-start !important;
164
+ &>*{
165
+
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+
172
+ }
173
+
174
+ @include phone-content() {
175
+ .ui-flex-gallery {
176
+ @if $include-gutter-bleed==true{
177
+ @include gutter-bleed();
178
+ }
179
+ & > .item {
180
+ width: 100%;
181
+ height:$phone-cell-height;
182
+ flex-direction:row;
183
+ justify-content: flex-start;
184
+ border-bottom:$phone-border-bottom;
185
+ margin:$phone-cell-margin;
186
+ &:first-child{
187
+ margin-top:0;
188
+ }
189
+ &:last-child{
190
+ border-bottom:0;
191
+ }
192
+ & > .img-container {
193
+ max-width: 50%;
194
+ height: $phone-max-img-height;
195
+ flex-grow:1;
196
+ margin:$phone-img-container-margin;
197
+ justify-content: flex-start;
198
+ align-self:flex-start;
199
+ & > img {
200
+ align-self: flex-start;
201
+ }
202
+ }
203
+ & > .descriptions {
204
+ height:100%;
205
+ width:50%;
206
+ flex-grow:1;
207
+ line-height: $phone-line-height;
208
+ margin:$phone-descriptions-margin;
209
+ justify-content: flex-start !important;
210
+ &>*{
211
+
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+
218
+ }
219
+
@@ -0,0 +1,167 @@
1
+ /* Variables ----------------------------------------------------------------------------------------------------------*/
2
+
3
+ $ui-label-padding:2px 4px 2px !default;
4
+ $ui-label-background:$inverse-color !default;
5
+ $ui-label-font-color: $white !default;
6
+ $ui-label-font-size:.8em !default;
7
+ $ui-label-font-weight:bold !default;
8
+ $ui-label-text-transform:none !default;
9
+ $ui-label-text-decoration:none !default;
10
+ $ui-label-text-align:center !default;
11
+ $ui-label-line-height:1 !default;
12
+ $ui-label-radius:$global-radius !default;
13
+ $ui-label-round-padding:1px 7px 2px !default;
14
+
15
+ $ui-semantic-label-margin: 1em 0 !default;
16
+ $ui-semantic-label-padding:.6em 0 .6em 2em !default;
17
+ $ui-semantic-label-font-size:1em !default;
18
+ $ui-semantic-label-border-radius:$global-radius !default;
19
+
20
+ /* Mixins -------------------------------------------------------------------------------------------------------------*/
21
+
22
+ %ui-semantic-label{
23
+ margin:$ui-semantic-label-margin;
24
+ padding:$ui-semantic-label-padding;
25
+ width:100%;
26
+ opacity:0;
27
+ font-size:$ui-semantic-label-font-size;
28
+ cursor:default;
29
+ position:relative;
30
+ border-radius:$ui-semantic-label-border-radius;
31
+ @include flexbox($alignment:center,$justification:center);
32
+ font-weight:normal;
33
+ &.hidden{
34
+ visibility: hidden;
35
+ }
36
+ &.visible{
37
+ visibility: visible !important;
38
+ opacity:1;
39
+ }
40
+ border:1px solid;
41
+ &>button,ui-close{
42
+ margin-left:auto;
43
+ padding-right:.6em;
44
+ background:none;
45
+ border:none;
46
+ font-size:1.5em;
47
+ opacity:.2 !important;
48
+ font-weight:bold;
49
+ cursor:pointer;
50
+ }
51
+ }
52
+ @mixin _semantic-label($component) {
53
+
54
+ .ui-semantic-label,ui-semantic-label{
55
+ @extend %ui-semantic-label;
56
+ &.#{$component}{
57
+ @include invoke-component-default-state($component);
58
+ box-shadow:none !important;
59
+ &>button{
60
+ @extend %#{$component}-font !optional;
61
+ &:hover,&:focus{
62
+ opacity: .8 !important;
63
+ }
64
+ }
65
+ }
66
+
67
+ }
68
+
69
+ span{
70
+ &.warning{
71
+ color:$component-warning-font-color;
72
+ }
73
+ &.success{
74
+ color:$component-success-font-color;
75
+ }
76
+ &.info{
77
+ color:$component-info-font-color;
78
+ }
79
+ &.error{
80
+ color:$component-error-font-color;
81
+ }
82
+ }
83
+
84
+ }
85
+
86
+ @mixin ui-label($component:default){
87
+ .ui-label {
88
+ @include invoke-component-default-state($component);
89
+ padding: $ui-label-padding;
90
+ font-size: $ui-label-font-size;
91
+ font-weight: $ui-label-font-weight;
92
+ text-transform: $ui-label-text-transform;
93
+ text-align: $ui-label-text-align;
94
+ text-decoration: $ui-label-text-decoration;
95
+ line-height: $ui-label-line-height;
96
+ white-space: nowrap;
97
+ display: inline;
98
+ position: relative;
99
+ cursor:default;
100
+ &.radius {
101
+ @include border-radius($ui-label-radius);
102
+ }
103
+ &.round {
104
+ padding: $ui-label-round-padding;
105
+ @include border-radius(1000px);
106
+
107
+ }
108
+ }
109
+
110
+ }
111
+
112
+ @mixin ui-semantic-checkboxes($padding:1em,$border-radius:$global-radius){
113
+ .ui-semantic-checkbox,ui-semantic-checkbox{
114
+ box-shadow:none !important;
115
+ border-radius:$border-radius;
116
+ padding:$padding;
117
+ position:relative;
118
+ &.success{
119
+ @include invoke-component-default-state(success);
120
+ input[type="checkbox"] + label.ui-checkbox {
121
+ color:$component-success-font-color;
122
+ &:before{
123
+ border-color:lighten($component-success-font-color,20%) !important;
124
+ color:$component-success-font-color;
125
+ }
126
+ }
127
+ }
128
+ &.error{
129
+ @include invoke-component-default-state(error);
130
+ input[type="checkbox"] + label.ui-checkbox {
131
+ color:$component-error-font-color;
132
+ &:before{
133
+ border-color:lighten($component-error-font-color,20%) !important;
134
+ color:$component-error-font-color;
135
+ }
136
+ }
137
+ }
138
+ &.warning{
139
+ @include invoke-component-default-state(warning);
140
+ input[type="checkbox"] + label.ui-checkbox {
141
+ color:$component-warning-font-color;
142
+ &:before{
143
+ border-color:lighten($component-warning-font-color,20%) !important;
144
+ color:$component-warning-font-color;
145
+ }
146
+ }
147
+ }
148
+ &.info{
149
+ @include invoke-component-default-state(info);
150
+ input[type="checkbox"] + label.ui-checkbox {
151
+ color:$component-info-font-color;
152
+ &:before{
153
+ border-color:lighten($component-info-font-color,20%) !important;
154
+ color:$component-info-font-color;
155
+ }
156
+ }
157
+ }
158
+ }
159
+
160
+ }
161
+
162
+ @mixin ui-semantic-label(){
163
+ @include _semantic-label(error);
164
+ @include _semantic-label(info);
165
+ @include _semantic-label(warning);
166
+ @include _semantic-label(success);
167
+ }