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,117 @@
1
+
2
+
3
+ //ui-autocomplete
4
+
5
+
6
+
7
+
8
+ //private --------------------------------------------------------------------------------------------------------
9
+ @mixin _ui-autocomplete($component:null,$divider:null,
10
+ $border-radius:$global-radius,
11
+ $z-index:null,
12
+ $height:null
13
+ ){
14
+ width:100%;
15
+ height:$height;
16
+ position:absolute;
17
+ top:100%;
18
+ left:0;
19
+ display:none;
20
+ overflow-x: hidden;
21
+ overflow-y: auto;
22
+ list-style: none;
23
+ margin: 0;
24
+ padding: 0;
25
+ border-radius:$global-radius;
26
+ @extend %#{$component}-background !optional;
27
+ @extend %#{$component}-border !optional;
28
+ @extend %#{$component}-box-shadow !optional;
29
+ font-size:1em;
30
+ z-index:$z-index;
31
+
32
+ li {
33
+ width: 100%;
34
+ cursor: pointer;
35
+ padding: 0;
36
+ min-height: 1.1em;
37
+ line-height: 1.1em;
38
+ margin: 0;
39
+ white-space: nowrap;
40
+ list-style: none;
41
+ a {
42
+ display: block;
43
+ @extend %#{$component}-font !optional;
44
+ padding: .7em .9em;
45
+ text-align: left;
46
+ }
47
+ &:hover,&.hover, &:focus, &:active {
48
+ @extend %#{$component}-background-hover !optional;
49
+
50
+
51
+ &:first-child{
52
+ border-top-right-radius: $border-radius;
53
+ border-top-left-radius: $border-radius;
54
+ }
55
+ &:last-child{
56
+ border-bottom-right-radius: $border-radius;
57
+ border-bottom-left-radius: $border-radius;
58
+ }
59
+ a{
60
+ @extend %#{$component}-font-hover !optional;
61
+ }
62
+ }
63
+
64
+ &.divider {
65
+ min-height: 0;
66
+ padding: 0;
67
+ height: 1px;
68
+ margin:0;
69
+ @extend %#{$divider}-background-hover !optional;
70
+ &:last-child{
71
+ display:none;
72
+ }
73
+ }
74
+ &.last:hover {
75
+ border-bottom-right-radius: $border-radius;
76
+ border-bottom-left-radius: $border-radius;
77
+ }
78
+ }
79
+
80
+ }
81
+
82
+
83
+ //public --------------------------------------------------------------------------------------------------------
84
+
85
+ @mixin ui-autocomplete($class:null,$component:css-autocomplete,$divider:css-divider-3,
86
+ $border-radius:$global-radius,$z-index:999,$height:20em,$container-width:100%
87
+
88
+ ){
89
+
90
+ .ui-autocomplete {
91
+ @if $class != null{
92
+ &.#{$class} {
93
+ @include _ui-autocomplete($component,$divider,$border-radius,$z-index,$height);
94
+ @content;
95
+ }
96
+
97
+ } @else {
98
+ @include _ui-autocomplete($component,$divider,$border-radius,$z-index,$height);
99
+ @content;
100
+ }
101
+
102
+ }
103
+ .ui-autocomplete-container{
104
+ display:block;
105
+ position:relative;
106
+ width:$container-width;
107
+ @content;
108
+ &>.ui-search,&>ui-search{
109
+ width:100%;
110
+ }
111
+ }
112
+ }
113
+
114
+
115
+
116
+
117
+
@@ -0,0 +1,73 @@
1
+ /* ui-badge */
2
+
3
+
4
+ /* private -----------------------------------------------------------------------------------------------------------*/
5
+
6
+ @mixin _ui-badge($component:inverse,
7
+ $padding:null,
8
+ $margin:null,
9
+ $line-height:null,
10
+ $border-radius:null,
11
+ $font:null,
12
+ $font-size:null
13
+ ){
14
+
15
+
16
+ display: inline-block;
17
+ min-width: .75em;
18
+ padding: $padding;
19
+ @extend %#{$component}-background !optional;
20
+ @extend %#{$component}-font !optional;
21
+ @extend %#{$component}-border !optional;
22
+ @extend %#{$component}-box-shadow !optional;
23
+ line-height: $line-height;
24
+ vertical-align: baseline;
25
+ white-space: nowrap;
26
+ text-align: center;
27
+ border-radius: $border-radius;
28
+ margin:$margin;
29
+ font-size:$font-size;
30
+
31
+ &:empty {
32
+ display: none;
33
+ }
34
+
35
+ }
36
+
37
+
38
+ /* public ------------------------------------------------------------------------------------------------------------*/
39
+
40
+ @mixin ui-badge($class:null,$component:inverse,
41
+ $padding:.2em .5em,
42
+ $margin:0,
43
+ $line-height:1,
44
+ $border-radius:$global-radius,
45
+ $font-size:1em
46
+ ){
47
+
48
+ .ui-badge,ui-badge {
49
+ @if $class != null{
50
+ &.#{$class} {
51
+ @include _ui-badge($component,$padding,$margin,$line-height,$border-radius,$font-size);
52
+ @content;
53
+ }
54
+
55
+ } @else {
56
+ @include _ui-badge($component,$padding,$margin,$line-height,$border-radius,$font-size);
57
+ @content;
58
+ }
59
+
60
+ }
61
+ a.ui-badge{
62
+ @if $class != null{
63
+ &.#{$class} {
64
+ &:hover,&:focus{
65
+ @extend %#{$component}-font-hover !optional;
66
+ }
67
+ }
68
+ } @else {
69
+ @extend %#{$component}-font-hover !optional;
70
+ }
71
+ }
72
+
73
+ }
@@ -0,0 +1,78 @@
1
+ /* ui-box */
2
+
3
+ /* private -----------------------------------------------------------------------------------------------------------*/
4
+
5
+ @mixin _ui-box($component:null,
6
+ $border:null,
7
+ $border-radius:null,
8
+ $justification:null, /* vertical */
9
+ $alignment:null, /* horizontal */
10
+ $min-height:null,
11
+ $width:null,
12
+ $padding:null,
13
+ $background:null
14
+ ){
15
+ @include display-flex();
16
+ @include flex-direction(column);
17
+ @include justify-content($justification);
18
+ @include align-items($alignment);
19
+
20
+ min-height:$min-height;
21
+ padding:$padding;
22
+ width:$width;
23
+
24
+ @if $component != null{
25
+ @extend %#{$component}-background !optional;
26
+ @extend %#{$component}-font !optional;
27
+ @extend %#{$component}-border !optional;
28
+ @extend %#{$component}-box-shadow !optional;
29
+ }@else{
30
+ @if $background !=null {
31
+ background:$background;
32
+ }
33
+ @if $border != null{
34
+ border:$border;
35
+ }
36
+ }
37
+
38
+ @if $border-radius != null{
39
+ border-radius:$border-radius;
40
+ }@else{
41
+ border-radius:$global-radius;
42
+ }
43
+
44
+ .bottom{
45
+ margin-top:auto;
46
+ }
47
+
48
+ @include phone-content(){
49
+ max-width:100%;
50
+ }
51
+ }
52
+
53
+ /* public -----------------------------------------------------------------------------------------------------------*/
54
+
55
+ @mixin ui-box($class:null,$component:null,
56
+ $border:null,
57
+ $border-radius:null,
58
+ $justification:flex-start,
59
+ $alignment:center,
60
+ $min-height:18.75em,
61
+ $width:18.75em,
62
+ $padding:.5em,
63
+ $background:null
64
+ ){
65
+
66
+ .ui-box,ui-box{
67
+ @if $class != null{
68
+ &.#{$class}{
69
+ @include _ui-box($component,$border,$border-radius,$justification,$alignment,$min-height,$width,$padding,$background);
70
+ @content;
71
+ }
72
+ }@else{
73
+ @include _ui-box($component,$border,$border-radius,$justification,$alignment,$min-height,$width,$padding,$background);
74
+ @content;
75
+ }
76
+ }
77
+
78
+ }
@@ -0,0 +1,64 @@
1
+ /* ui-breadcrumb */
2
+
3
+ /* Private -----------------------------------------------------------------------------------------------------------*/
4
+
5
+ @mixin _ui-breadcrumb($component: null,
6
+ $font-size: null,
7
+ $padding: null,
8
+ $font-weight: null,
9
+ $link-font-weight: null
10
+
11
+ ) {
12
+
13
+ display: inline-block;
14
+ list-style: none;
15
+ padding-bottom: 0 !important;
16
+ & > li, &>breadcrumb-item {
17
+ float: left;
18
+ padding: $padding;
19
+ font-size: $font-size;
20
+ font-weight: $font-weight;
21
+ a {
22
+ @if $component != null{
23
+ @extend %#{$component}-font !optional;
24
+ }
25
+ font-size: $font-size;
26
+ &:hover, &:focus {
27
+ @if $component != null{
28
+ @extend %#{$component}-font-hover !optional;
29
+ }
30
+ }
31
+ }
32
+ &:first-child {
33
+ padding-left: 0;
34
+ }
35
+ &:last-child {
36
+ padding-right: 0;
37
+ }
38
+ }
39
+ }
40
+
41
+ /* Public -----------------------------------------------------------------------------------------------------------*/
42
+
43
+ @mixin ui-breadcrumb($class: null, $component: null,
44
+ $font-size: 1em,
45
+ $padding: 0 .3em 0 .3em,
46
+ $font-weight: normal,
47
+ $link-font-weight: normal
48
+
49
+ ) {
50
+
51
+ .ui-breadcrumb,ui-breadcrumb {
52
+ @if $class != null{
53
+ &.#{$class} {
54
+ @include _ui-breadcrumb($component, $font-size, $padding, $font-weight, $link-font-weight);
55
+ @content;
56
+ }
57
+ } @else {
58
+ @include _ui-breadcrumb($component, $font-size, $padding, $font-weight, $link-font-weight);
59
+ @content;
60
+ }
61
+
62
+ }
63
+
64
+ }
@@ -0,0 +1,395 @@
1
+ /* ui-button */
2
+
3
+ /* Variables ---------------------------------------------------------------------------------------------------*/
4
+ $ui-button-radius: $global-radius !default;
5
+ $ui-button-tiny-radius: tiny-radius() !default;
6
+ $ui-button-font-family: inherit !default;
7
+ $ui-button-font-size: 1em !default;
8
+ $ui-button-font-weight: normal !default;
9
+ $ui-button-line-height: $global-button-line-height !default;
10
+ $ui-button-margin: .5em 0 0 0 !default;
11
+ $ui-button-padding: .7em 1em .7em 1em !default;
12
+ $ui-button-font-size: 1em !default;
13
+ $ui-button-icon-padding: 1.5em !default;
14
+ $ui-button-large-padding: .8em 1.15em .8em 1.15em !default;
15
+ $ui-button-large-font-size: 1.15em !default;
16
+ $ui-button-small-padding: .6em .8em .6em .8em !default;
17
+ $ui-button-small-font-size: .9em !default;
18
+ $ui-button-tiny-padding: .5em .7em .5em .7em !default;
19
+ $ui-button-tiny-font-size: .8em !default;
20
+ $ui-button-jumbo-padding: 1.15em 1.5em 1.15em 1.5em !default;
21
+ $ui-button-jumbo-font-size: 1.5em !default;
22
+ $ui-button-transparent-opacity: .8 !default;
23
+
24
+ /* Private --------------------------------------------------------------------------------------------------------*/
25
+
26
+ @mixin _button-size($font-size, $padding, $icon-padding) {
27
+ padding: $padding;
28
+ font-size: $font-size;
29
+ &.icon {
30
+ &.left {
31
+ float: none !important;
32
+ padding-right: convert-to-decimal($icon-padding + margin-right($padding));
33
+ span {
34
+ font-size: $font-size;
35
+ margin-right: .5em;
36
+ margin-left: 0;
37
+ }
38
+ }
39
+ span {
40
+ font-size: $font-size;
41
+ margin-left: $icon-padding;
42
+ }
43
+ }
44
+ &.next {
45
+ padding-right: convert-to-decimal($icon-padding + margin-right($padding));
46
+ &:after {
47
+ font-size: $font-size;
48
+ content: '#{$global-icon-next}';
49
+ right: icon-position-right($font-size);
50
+ top: icon-position($padding, $font-size);
51
+ line-height: component-line-height($font-size, $ui-button-line-height);
52
+ }
53
+ }
54
+ &.down, &[data-ui=dropdown] {
55
+ padding-right: convert-to-decimal($icon-padding + margin-right($padding));
56
+ &:after {
57
+ font-size: $font-size;
58
+ content: '#{$global-icon-down}';
59
+ right: icon-position-right($font-size);
60
+ top: icon-position($padding, $font-size);
61
+ line-height: component-line-height($font-size, $ui-button-line-height);
62
+ }
63
+ }
64
+ &.up {
65
+ padding-right: convert-to-decimal($icon-padding + margin-right($padding));
66
+ &:after {
67
+ font-size: $font-size;
68
+ content: '#{$global-icon-up}';
69
+ right: icon-position-right($font-size);
70
+ top: icon-position($padding, $font-size);
71
+ line-height: component-line-height($font-size, $ui-button-line-height);
72
+ }
73
+ }
74
+ &.prev {
75
+ padding-left: convert-to-decimal($icon-padding + margin-left($padding));
76
+ &:after {
77
+ font-size: $font-size;
78
+ content: '#{$global-icon-prev}';
79
+ left: icon-position-left($font-size);
80
+ top: icon-position($padding, $font-size);
81
+ line-height: component-line-height($font-size, $ui-button-line-height);
82
+ }
83
+ }
84
+ }
85
+
86
+ @mixin _button-dropdown($font-size, $padding, $icon-padding){
87
+ padding-right: convert-to-decimal($icon-padding + margin-right($padding));
88
+ &:after {
89
+ font-family: $global-icon-font-family;
90
+ font-size: $font-size;
91
+ content: '#{$global-icon-down}';
92
+ right: icon-position-right($font-size);
93
+ top: icon-position($padding, $font-size);
94
+ line-height: component-line-height($font-size, $ui-button-line-height);
95
+ position:absolute;
96
+ }
97
+ }
98
+
99
+ @mixin _button-base() {
100
+ @include _button-size($ui-button-font-size, $ui-button-padding, $ui-button-icon-padding);
101
+ margin: $ui-button-margin;
102
+ border-radius: $ui-button-radius;
103
+ font-family: $ui-button-font-family;
104
+ font-weight: $ui-button-font-weight;
105
+ text-align: center;
106
+ line-height: $ui-button-line-height !important;
107
+ position: relative;
108
+ cursor: pointer !important;
109
+ display: inline-block;
110
+ outline: 0;
111
+ &.next, &.prev, &.down, &[data-ui=dropdown], &.up {
112
+ &:after {
113
+ font-family: $global-icon-font-family;
114
+ position: absolute;
115
+ }
116
+ }
117
+ ui-dropdown-button{
118
+ &:after {
119
+ font-family: $global-icon-font-family;
120
+ position: absolute;
121
+ }
122
+ }
123
+ }
124
+
125
+ @mixin _button-states($component) {
126
+ @extend %#{$component}-background !optional;
127
+ @extend %#{$component}-font !optional;
128
+ @extend %#{$component}-border !optional;
129
+ @extend %#{$component}-box-shadow !optional;
130
+ &:hover {
131
+ @extend %#{$component}-background-hover !optional;
132
+ @extend %#{$component}-font-hover !optional;
133
+ @extend %#{$component}-border-hover !optional;
134
+ @extend %#{$component}-box-shadow-hover !optional;
135
+ cursor: pointer;
136
+ }
137
+ &:focus {
138
+ @include tab-focus();
139
+ }
140
+ &:active {
141
+ @extend %#{$component}-background-active !optional;
142
+ @extend %#{$component}-font-active !optional;
143
+ @extend %#{$component}-border-active !optional;
144
+ @extend %#{$component}-box-shadow-active !optional;
145
+ outline: 0;
146
+
147
+ }
148
+ &.active {
149
+ @extend %#{$component}-background-active !optional;
150
+ @extend %#{$component}-font-active !optional;
151
+ @extend %#{$component}-border-active !optional;
152
+ @extend %#{$component}-box-shadow-active !optional;
153
+ cursor: default !important;
154
+ outline: 0;
155
+
156
+ }
157
+ }
158
+
159
+ @mixin _button-sizes() {
160
+ &.jumbo {
161
+ @include _button-size($ui-button-jumbo-font-size, $ui-button-jumbo-padding, $ui-button-icon-padding);
162
+ }
163
+ &.large {
164
+ @include _button-size($ui-button-large-font-size, $ui-button-large-padding, $ui-button-icon-padding);
165
+ }
166
+ &.small {
167
+ @include _button-size($ui-button-small-font-size, $ui-button-small-padding, $ui-button-icon-padding);
168
+ }
169
+ &.tiny {
170
+ @include _button-size($ui-button-tiny-font-size, $ui-button-tiny-padding, $ui-button-icon-padding);
171
+ }
172
+ &.expand {
173
+ width: 100%;
174
+ text-align: center;
175
+ padding-left: 0px !important;
176
+ padding-right: 0px !important;
177
+ }
178
+ &.radius {
179
+ @include border-radius($ui-button-radius);
180
+ }
181
+ &.round {
182
+ @include border-radius(1000px);
183
+ }
184
+ &.transparent {
185
+ opacity: $ui-button-transparent-opacity;
186
+
187
+ }
188
+ &.left-align {
189
+ text-align: left;
190
+ text-indent: .75em;
191
+ }
192
+ }
193
+
194
+ @mixin _button-disabled-state($component) {
195
+ &.disabled, &[disabled] {
196
+ cursor: default !important;
197
+ @extend %#{$component}-disabled !optional;
198
+ &:hover {
199
+ @extend %#{$component}-disabled !optional;
200
+ }
201
+ }
202
+ }
203
+
204
+ @mixin _ui-button-group($component: default, $active-component: null) {
205
+ $left:left;
206
+ $right:right;
207
+ $_active-component: null;
208
+
209
+ list-style: none;
210
+ padding: 0;
211
+ margin: 0 0 .75em;
212
+ @include display-flex();
213
+ & > li, &>button-item {
214
+ padding: 0;
215
+ margin: 0 0 0 -1px;
216
+ .ui-button,ui-button {
217
+ @include border-radius(0px);
218
+ @include phone-content() {
219
+ font-size: .8em;
220
+ }
221
+ }
222
+ &:first-child {
223
+ margin-left: 0;
224
+ .ui-button, .ui-button.radius,ui-button,ui-button.radius {
225
+ @include border-corner-radius(top, $left, $ui-button-radius);
226
+ @include border-corner-radius(bottom, $left, $ui-button-radius);
227
+ }
228
+
229
+ .ui-button.round,ui-button.round {
230
+ @include border-corner-radius(top, $left, 1000px);
231
+ @include border-corner-radius(bottom, $left, 1000px);
232
+ }
233
+ }
234
+ &:last-child {
235
+ .ui-button, .ui-button.radius,ui-button,ui-button.radius {
236
+ @include border-corner-radius(top, $right, $ui-button-radius);
237
+ @include border-corner-radius(bottom, $right, $ui-button-radius);
238
+ }
239
+ .ui-button.round,ui-button.round {
240
+ @include border-corner-radius(top, $right, 1000px);
241
+ @include border-corner-radius(bottom, $right, 1000px);
242
+ }
243
+ }
244
+ }
245
+
246
+ @if $active-component != null {
247
+ $_active-component: $active-component;
248
+ } @else {
249
+ $_active-component: $component;
250
+ }
251
+
252
+ .ui-button {
253
+ &.active {
254
+ @extend %#{$_active-component}-background-active !optional;
255
+ @extend %#{$_active-component}-font-active !optional;
256
+ @extend %#{$_active-component}-border-active !optional;
257
+ @extend %#{$_active-component}-box-shadow-active !optional;
258
+ cursor: default;
259
+ }
260
+ }
261
+
262
+ &.large {
263
+ span, [class*='icon-'] {
264
+ font-size: 2em;
265
+ }
266
+ }
267
+ &.flex {
268
+ & > li, &>button-item {
269
+ @include flex(1 1 0);
270
+ .ui-button,ui-button {
271
+ width: 100%;
272
+ padding-left: 1px;
273
+ padding-right: 1px;
274
+ }
275
+ }
276
+
277
+ }
278
+ }
279
+
280
+ /* Public ------------------------------------------------------------------------------------------------------------*/
281
+
282
+ @mixin ui-button($component) {
283
+ .ui-button,ui-button {
284
+ @if($component == default){
285
+ @include _button-base();
286
+ @if $include-component-animation == true{
287
+ @include transition($component-animation);
288
+ }
289
+ @include _button-states($component);
290
+ @include _button-sizes();
291
+ @include _button-disabled-state($component);
292
+
293
+ @content
294
+
295
+ } @else {
296
+ &.#{$component} {
297
+ @include _button-states($component);
298
+ @include _button-disabled-state($component);
299
+
300
+ @content
301
+ }
302
+ }
303
+
304
+ }
305
+
306
+
307
+
308
+ }
309
+
310
+ @mixin ui-button-group($class: null, $component: default, $active-component: null) {
311
+
312
+ .ui-button-group,ui-button-group {
313
+ @if $class != null{
314
+ &.#{$class} {
315
+ @include _ui-button-group($component, $active-component);
316
+ @content;
317
+ }
318
+ } @else {
319
+ @include _ui-button-group($component, $active-component);
320
+ @content;
321
+ }
322
+ }
323
+
324
+ }
325
+
326
+ @mixin ui-button-bar($touch-font-size:.8em) {
327
+ .ui-button-bar,ui-button-bar {
328
+ @include display-flex();
329
+ @include justify-content(space-between);
330
+
331
+ @include grid-contain-content() {
332
+ & > .ui-button-group,&> ui-button-group {
333
+ margin-right:1em;
334
+ &:last-child{
335
+ margin-right:0;
336
+ }
337
+ @include flex(1 1 0);
338
+ & > li, &>button-item {
339
+ @include flex(1 1 0);
340
+ .ui-button,ui-button {
341
+ width: 100%;
342
+ padding-left: 1px;
343
+ padding-right: 1px;
344
+ font-size:$touch-font-size;
345
+ }
346
+ }
347
+ }
348
+ }
349
+
350
+ @include small-tablet-down-content(){
351
+ @include flex-direction(column);
352
+ @include justify-content(flex-start);
353
+ &> .ui-button-group,&>ui-button-group{
354
+ margin-right:0;
355
+ }
356
+ }
357
+ }
358
+
359
+ }
360
+ /* set a smaller font-size for ui-dropdown if a button dropdown */
361
+ @mixin ui-dropdown-button{
362
+ [data-ui=dropdown],ui-dropdown-button{
363
+ position:relative;
364
+ .ui-dropdown,ui-dropdown{
365
+ font-size:14px;
366
+ }
367
+ }
368
+ ui-dropdown-button.ui-button{
369
+ @include _button-dropdown($ui-button-font-size, $ui-button-padding, $ui-button-icon-padding);
370
+ &.jumbo {
371
+ @include _button-dropdown($ui-button-jumbo-font-size, $ui-button-jumbo-padding, $ui-button-icon-padding);
372
+ }
373
+ &.large {
374
+ @include _button-dropdown($ui-button-large-font-size, $ui-button-large-padding, $ui-button-icon-padding);
375
+ }
376
+ &.small {
377
+ @include _button-dropdown($ui-button-small-font-size, $ui-button-small-padding, $ui-button-icon-padding);
378
+ }
379
+ &.tiny {
380
+ @include _button-dropdown($ui-button-tiny-font-size, $ui-button-tiny-padding, $ui-button-icon-padding);
381
+ }
382
+ }
383
+ }
384
+
385
+ /* Shortcut: Create Framework Base Buttons --------------------------------------------------------------------------- */
386
+ @mixin ui-buttons() {
387
+ @include ui-button(default);
388
+ @include ui-button(primary);
389
+ @include ui-button(inverse);
390
+ @include ui-button(secondary);
391
+ @include ui-dropdown-button();
392
+ }
393
+
394
+
395
+