TokiCLI 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +9 -17
  4. data/.rspec +3 -0
  5. data/.travis.yml +3 -0
  6. data/CHANGELOG.md +4 -0
  7. data/README.md +99 -163
  8. data/Rakefile +5 -0
  9. data/TokiCLI.gemspec +5 -4
  10. data/bin/toki +2 -2
  11. data/lib/API/helpers.rb +27 -170
  12. data/lib/API/toki_api.rb +227 -0
  13. data/lib/API/toki_db.rb +67 -0
  14. data/lib/TokiCLI.rb +270 -5
  15. data/lib/TokiCLI/adnimport.rb +202 -0
  16. data/lib/TokiCLI/fileops.rb +187 -0
  17. data/lib/TokiCLI/status.rb +49 -37
  18. data/lib/TokiCLI/version.rb +1 -1
  19. data/lib/TokiCLI/view.rb +133 -86
  20. data/lib/TokiServer/.bowerrc +3 -0
  21. data/lib/TokiServer/.gitignore +2 -0
  22. data/lib/TokiServer/Gemfile +1 -0
  23. data/lib/TokiServer/bower.json +0 -0
  24. data/lib/TokiServer/bower_components/fastclick/.bower.json +4 -4
  25. data/lib/TokiServer/bower_components/fastclick/bower.json +1 -1
  26. data/lib/TokiServer/bower_components/fastclick/lib/fastclick.js +33 -2
  27. data/lib/TokiServer/bower_components/foundation/.bower.json +5 -4
  28. data/lib/TokiServer/bower_components/foundation/bower.json +2 -1
  29. data/lib/TokiServer/bower_components/foundation/css/foundation.css +2173 -922
  30. data/lib/TokiServer/bower_components/foundation/css/foundation.css.map +7 -0
  31. data/lib/TokiServer/bower_components/foundation/css/normalize.css +53 -16
  32. data/lib/TokiServer/bower_components/foundation/css/normalize.css.map +7 -0
  33. data/lib/TokiServer/bower_components/foundation/js/foundation.js +782 -542
  34. data/lib/TokiServer/bower_components/foundation/js/foundation.min.js +4 -3
  35. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.abide.js +45 -31
  36. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.accordion.js +12 -6
  37. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.alert.js +5 -5
  38. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.clearing.js +34 -10
  39. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.dropdown.js +83 -29
  40. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.equalizer.js +3 -3
  41. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.interchange.js +25 -12
  42. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.joyride.js +112 -40
  43. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.js +19 -5
  44. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.magellan.js +22 -11
  45. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.offcanvas.js +52 -8
  46. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.orbit.js +133 -271
  47. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.reveal.js +27 -20
  48. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.slider.js +73 -33
  49. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.tab.js +88 -31
  50. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.tooltip.js +7 -5
  51. data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.topbar.js +44 -24
  52. data/lib/TokiServer/bower_components/foundation/js/vendor/fastclick.js +2 -2
  53. data/lib/TokiServer/bower_components/foundation/js/vendor/modernizr.js +2 -2
  54. data/lib/TokiServer/bower_components/foundation/scss/foundation.scss +38 -38
  55. data/lib/TokiServer/bower_components/foundation/scss/foundation/_functions.scss +3 -3
  56. data/lib/TokiServer/bower_components/foundation/scss/foundation/_settings.scss +417 -271
  57. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_accordion.scss +110 -6
  58. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_alert-boxes.scss +2 -2
  59. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_block-grid.scss +2 -2
  60. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +8 -3
  61. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_button-groups.scss +99 -9
  62. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_buttons.scss +66 -28
  63. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_clearing.scss +5 -5
  64. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss +4 -4
  65. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_dropdown.scss +48 -35
  66. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_forms.scss +104 -32
  67. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_global.scss +48 -30
  68. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_grid.scss +19 -4
  69. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_icon-bar.scss +293 -0
  70. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_joyride.scss +11 -9
  71. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_keystrokes.scss +4 -4
  72. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_labels.scss +4 -2
  73. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_magellan.scss +1 -1
  74. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_offcanvas.scss +193 -35
  75. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_orbit.scss +92 -147
  76. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_pagination.scss +22 -10
  77. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_panels.scss +10 -7
  78. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_pricing-tables.scss +11 -11
  79. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_progress-bars.scss +2 -2
  80. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_range-slider.scss +29 -9
  81. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_reveal.scss +60 -56
  82. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_side-nav.scss +3 -2
  83. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_split-buttons.scss +2 -2
  84. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_sub-nav.scss +2 -2
  85. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_switches.scss +226 -0
  86. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tables.scss +13 -7
  87. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tabs.scss +22 -8
  88. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_thumbs.scss +2 -4
  89. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_toolbar.scss +70 -0
  90. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tooltips.scss +9 -7
  91. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_top-bar.scss +77 -44
  92. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_type.scss +21 -9
  93. data/lib/TokiServer/bower_components/modernizr/.bower.json +4 -4
  94. data/lib/TokiServer/bower_components/modernizr/feature-detects/workers-blobworkers.js +2 -2
  95. data/lib/TokiServer/bower_components/modernizr/grunt.js +1 -1
  96. data/lib/TokiServer/bower_components/modernizr/modernizr.js +2 -2
  97. data/lib/TokiServer/config.rb +0 -0
  98. data/lib/TokiServer/humans.txt +0 -0
  99. data/lib/TokiServer/{itunesicon.rb → itunesicons.rb} +25 -23
  100. data/lib/TokiServer/js/app.js +0 -0
  101. data/lib/TokiServer/public/stylesheets/app.css +2636 -1610
  102. data/lib/TokiServer/robots.txt +0 -0
  103. data/lib/TokiServer/scss/_settings.scss +0 -0
  104. data/lib/TokiServer/scss/app.scss +7 -1
  105. data/lib/TokiServer/tokiserver.rb +239 -244
  106. data/lib/TokiServer/views/activity.erb +42 -0
  107. data/lib/TokiServer/views/apps_total.erb +8 -2
  108. data/lib/TokiServer/views/error.erb +13 -4
  109. data/lib/TokiServer/views/index.erb +36 -27
  110. data/lib/TokiServer/views/logs_total.erb +34 -0
  111. data/spec/TokiCLI_spec.rb +354 -0
  112. data/spec/mock/mock.sqlite3 +0 -0
  113. data/spec/spec_helper.rb +26 -0
  114. metadata +78 -23
  115. data/lib/API/dbapi.rb +0 -488
  116. data/lib/TokiCLI/app.rb +0 -389
  117. data/lib/TokiCLI/authorize.rb +0 -77
  118. data/lib/TokiCLI/export.rb +0 -81
  119. data/lib/TokiCLI/get_channels.rb +0 -22
  120. data/lib/TokiCLI/get_messages.rb +0 -32
  121. data/lib/TokiCLI/import.rb +0 -122
  122. data/lib/TokiCLI/scan.rb +0 -19
  123. data/lib/TokiCLI/search_messages.rb +0 -23
  124. data/lib/TokiServer/README.md +0 -37
  125. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_reveal-new.scss +0 -0
  126. data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_switch.scss +0 -294
  127. data/lib/TokiServer/views/name_log.erb +0 -50
  128. data/lib/TokiServer/views/name_split.erb +0 -37
  129. data/lib/TokiServer/views/name_total.erb +0 -34
@@ -11,9 +11,6 @@
11
11
  // styles get applied to [data-mysite-plugin], etc
12
12
  $namespace: false !default;
13
13
 
14
- // Control the inclusion of experimental properties
15
- $experimental: true !default;
16
-
17
14
  // The default font-size is set to 100% of the browser style sheet (usually 16px)
18
15
  // for compatibility with browser-based text zoom or user-set defaults.
19
16
 
@@ -23,22 +20,12 @@ $experimental: true !default;
23
20
  $base-font-size: 100% !default;
24
21
 
25
22
  // $base-line-height is 24px while $base-font-size is 16px
26
- $base-line-height: 150% !default;
23
+ $base-line-height: 1.5 !default;
27
24
 
28
25
  //
29
26
  // Global Foundation Mixins
30
27
  //
31
28
 
32
- // @mixins
33
- //
34
- // We use this to optionally include experimental or
35
- // explicitly vendor prefixed properties
36
- @mixin experimental() {
37
- @if $experimental {
38
- @content;
39
- }
40
- }
41
-
42
29
  // @mixins
43
30
  //
44
31
  // We use this to control border radius.
@@ -55,9 +42,13 @@ $base-line-height: 150% !default;
55
42
  // $side - Options: left, right, top, bottom
56
43
  @mixin side-radius($side, $radius:$global-radius) {
57
44
  @if ($side == left or $side == right) {
45
+ -webkit-border-bottom-#{$side}-radius: $radius;
46
+ -webkit-border-top-#{$side}-radius: $radius;
58
47
  border-bottom-#{$side}-radius: $radius;
59
48
  border-top-#{$side}-radius: $radius;
60
49
  } @else {
50
+ -webkit-#{$side}-left-radius: $radius;
51
+ -webkit-#{$side}-right-radius: $radius;
61
52
  border-#{$side}-left-radius: $radius;
62
53
  border-#{$side}-right-radius: $radius;
63
54
  }
@@ -135,12 +126,12 @@ $base-line-height: 150% !default;
135
126
  // $hover-color - icon color during hover
136
127
  // $offcanvas - Set to true of @include in offcanvas
137
128
  @mixin hamburger($width, $left, $top, $thickness, $gap, $color, $hover-color, $offcanvas) {
138
- span:after {
139
- content: '';
129
+ span::after {
130
+ content: "";
140
131
  position: absolute;
141
132
  display: block;
142
133
  height: 0;
143
-
134
+
144
135
  @if $offcanvas {
145
136
  @if $top {
146
137
  top: $top;
@@ -156,7 +147,12 @@ $base-line-height: 150% !default;
156
147
  left: ($tabbar-menu-icon-width - $width)/2;
157
148
  }
158
149
  }
159
-
150
+ @else {
151
+ top: 50%;
152
+ margin-top: -($width/2);
153
+ #{$opposite-direction}: $topbar-link-padding;
154
+ }
155
+
160
156
  box-shadow:
161
157
  0 0px 0 $thickness $color,
162
158
  0 $gap + $thickness 0 $thickness $color,
@@ -224,6 +220,34 @@ $base-line-height: 150% !default;
224
220
  clip: auto;
225
221
  }
226
222
 
223
+ // We use these as default colors throughout
224
+ $primary-color: #008CBA !default; // bondi-blue
225
+ $secondary-color: #e7e7e7 !default; // white-lilac
226
+ $alert-color: #f04124 !default; // cinnabar
227
+ $success-color: #43AC6A !default; // sea-green
228
+ $warning-color: #f08a24 !default; // carrot
229
+ $info-color: #a0d3e8 !default; // cornflower
230
+
231
+ $white : #FFFFFF !default;
232
+ $ghost : #FAFAFA !default;
233
+ $snow : #F9F9F9 !default;
234
+ $vapor : #F6F6F6 !default;
235
+ $white-smoke : #F5F5F5 !default;
236
+ $silver : #EFEFEF !default;
237
+ $smoke : #EEEEEE !default;
238
+ $gainsboro : #DDDDDD !default;
239
+ $iron : #CCCCCC !default;
240
+ $base : #AAAAAA !default;
241
+ $aluminum : #999999 !default;
242
+ $jumbo : #888888 !default;
243
+ $monsoon : #777777 !default;
244
+ $steel : #666666 !default;
245
+ $charcoal : #555555 !default;
246
+ $tuatara : #444444 !default;
247
+ $oil : #333333 !default;
248
+ $jet : #222222 !default;
249
+ $black : #000000 !default;
250
+
227
251
  // We use these to define default font weights
228
252
  $font-weight-normal: normal !default;
229
253
  $font-weight-bold: bold !default;
@@ -249,13 +273,6 @@ $opposite-direction: right !default;
249
273
  $default-float: right;
250
274
  $opposite-direction: left;
251
275
  }
252
- // We use these as default colors throughout
253
- $primary-color: #008CBA !default;
254
- $secondary-color: #e7e7e7 !default;
255
- $alert-color: #f04124 !default;
256
- $success-color: #43AC6A !default;
257
- $warning-color: #f08a24 !default;
258
- $info-color: #a0d3e8 !default;
259
276
 
260
277
  // We use these to make sure border radius matches unless we want it different.
261
278
  $global-radius: 3px !default;
@@ -308,6 +325,7 @@ $large: $large-up;
308
325
 
309
326
 
310
327
  //We use this as cursors values for enabling the option of having custom cursors in the whole site's stylesheet
328
+ $cursor-auto-value: auto !default;
311
329
  $cursor-crosshair-value: crosshair !default;
312
330
  $cursor-default-value: default !default;
313
331
  $cursor-pointer-value: pointer !default;
@@ -320,11 +338,11 @@ $cursor-text-value: text !default;
320
338
  // Meta styles are included in all builds, as they are a dependancy of the Javascript.
321
339
  // Used to provide media query values for javascript components.
322
340
  // Forward slash placed around everything to convince PhantomJS to read the value.
323
-
341
+
324
342
  meta.foundation-version {
325
- font-family: "/5.2.3/";
343
+ font-family: "/5.4.3/";
326
344
  }
327
-
345
+
328
346
  meta.foundation-mq-small {
329
347
  font-family: "/" + unquote($small-up) + "/";
330
348
  width: lower-bound($small-range);
@@ -378,9 +396,9 @@ $cursor-text-value: text !default;
378
396
  font-family: $body-font-family;
379
397
  font-weight: $body-font-weight;
380
398
  font-style: $body-font-style;
381
- line-height: 1; // Set to $base-line-height to take on browser default of 150%
399
+ line-height: $base-line-height; // Set to $base-line-height to take on browser default of 150%
382
400
  position: relative;
383
- cursor: $cursor-default-value;
401
+ cursor: $cursor-auto-value;
384
402
  }
385
403
 
386
404
  a:hover { cursor: $cursor-pointer-value; }
@@ -13,6 +13,8 @@ $include-xl-html-grid-classes: false !default;
13
13
  $row-width: rem-calc(1000) !default;
14
14
  $total-columns: 12 !default;
15
15
 
16
+ $last-child-float: $opposite-direction !default;
17
+
16
18
  //
17
19
  // Grid Functions
18
20
  //
@@ -140,7 +142,7 @@ $total-columns: 12 !default;
140
142
  @if $center {
141
143
  margin-#{$default-float}: auto;
142
144
  margin-#{$opposite-direction}: auto;
143
- float: none !important;
145
+ float: none;
144
146
  }
145
147
 
146
148
  // If offset, calculate appropriate margins
@@ -170,8 +172,6 @@ $total-columns: 12 !default;
170
172
  .#{$size}-#{$i} { @include grid-column($columns:$i,$collapse:null,$float:false); }
171
173
  }
172
174
 
173
- [class*="column"] + [class*="column"]:last-child { float: $opposite-direction; }
174
- [class*="column"] + [class*="column"].end { float: $default-float; }
175
175
 
176
176
 
177
177
  @for $i from 0 through $total-columns - 1 {
@@ -192,7 +192,19 @@ $total-columns: 12 !default;
192
192
  .columns.#{$size}-uncentered {
193
193
  margin-#{$default-float}: 0;
194
194
  margin-#{$opposite-direction}: 0;
195
- float: $default-float !important;
195
+ float: $default-float;
196
+ }
197
+
198
+ // Fighting [class*="column"] + [class*="column"]:last-child
199
+ .column.#{$size}-centered:last-child,
200
+ .columns.#{$size}-centered:last-child{
201
+ float: none;
202
+ }
203
+
204
+ // Fighting .column.<previous-size>-centered:last-child
205
+ .column.#{$size}-uncentered:last-child,
206
+ .columns.#{$size}-uncentered:last-child {
207
+ float: $default-float;
196
208
  }
197
209
 
198
210
  .column.#{$size}-uncentered.opposite,
@@ -221,6 +233,9 @@ $total-columns: 12 !default;
221
233
  .column,
222
234
  .columns { @include grid-column($columns:$total-columns); }
223
235
 
236
+ [class*="column"] + [class*="column"]:last-child { float: $last-child-float; }
237
+ [class*="column"] + [class*="column"].end { float: $default-float; }
238
+
224
239
  @media #{$small-up} {
225
240
  @include grid-html-classes($size:small);
226
241
  }
@@ -0,0 +1,293 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+
8
+ // @name
9
+ // @dependencies _global.scss
10
+
11
+ $include-html-icon-bar-classes: $include-html-classes !default;
12
+
13
+ // @variables
14
+
15
+ // We use these to style the icon-bar and items
16
+ $icon-bar-bg: $oil !default;
17
+ $icon-bar-font-color: $white !default;
18
+ $icon-bar-font-size: 1rem !default;
19
+ $icon-bar-hover-color: $primary-color !default;
20
+ $icon-bar-icon-color: $white !default;
21
+ $icon-bar-icon-size: 1.875rem !default;
22
+ $icon-bar-image-width: 1.875rem !default;
23
+ $icon-bar-image-height: 1.875rem !default;
24
+ $icon-bar-active-color: $primary-color !default;
25
+ $icon-bar-item-padding: 1.25rem !default;
26
+
27
+ //
28
+ // @mixins
29
+ //
30
+
31
+ // We use this mixin to create the base styles for our Icon bar element.
32
+ //
33
+ @mixin icon-bar-base() {
34
+
35
+ width: 100%;
36
+ font-size: 0;
37
+ display: inline-block;
38
+
39
+ & > * {
40
+ text-align: center;
41
+ font-size: $icon-bar-font-size;
42
+ width: 25%;
43
+ margin: 0 auto;
44
+ display: block;
45
+ padding: $icon-bar-item-padding;
46
+ float: left;
47
+
48
+ i, img {
49
+ display: block;
50
+ margin: 0 auto;
51
+
52
+ & + label {
53
+ margin-top: .0625rem;
54
+ }
55
+ }
56
+
57
+ i {
58
+ font-size: $icon-bar-icon-size;
59
+ vertical-align: middle;
60
+ }
61
+
62
+ img {
63
+ width: $icon-bar-image-width;
64
+ height: $icon-bar-image-height;
65
+ }
66
+ }
67
+
68
+ &.label-right > * {
69
+
70
+ i, img {
71
+ margin: 0 .0625rem 0 0;
72
+ display: inline-block;
73
+
74
+ & + label {
75
+ margin-top: 0;
76
+ }
77
+ }
78
+
79
+ label { display: inline-block; }
80
+ }
81
+
82
+ &.vertical.label-right > * {
83
+ text-align: left;
84
+ }
85
+
86
+ &.vertical, &.small-vertical{
87
+ height: 100%;
88
+ width: auto;
89
+
90
+ .item {
91
+ width: auto;
92
+ margin: auto;
93
+ float: none;
94
+ }
95
+ }
96
+
97
+ &.medium-vertical {
98
+ @media #{$medium-up} {
99
+ height: 100%;
100
+ width: auto;
101
+
102
+ .item {
103
+ width: auto;
104
+ margin: auto;
105
+ float: none;
106
+ }
107
+ }
108
+ }
109
+ &.large-vertical {
110
+ @media #{$large-up} {
111
+ height: 100%;
112
+ width: auto;
113
+
114
+ .item {
115
+ width: auto;
116
+ margin: auto;
117
+ float: none;
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ // We use this mixin to create the size styles for icon bars.
124
+ @mixin icon-bar-size(
125
+ $padding: $icon-bar-item-padding,
126
+ $font-size: $icon-bar-font-size,
127
+ $icon-size: $icon-bar-icon-size,
128
+ $image-width: $icon-bar-image-width,
129
+ $image-height: $icon-bar-image-height) {
130
+
131
+ & > * {
132
+ font-size: $font-size;
133
+ padding: $padding;
134
+
135
+ i, img {
136
+
137
+ & + label {
138
+ margin-top: .0625rem;
139
+ }
140
+ }
141
+
142
+ i {
143
+ font-size: $icon-size;
144
+ }
145
+
146
+ img {
147
+ width: $image-width;
148
+ height: $image-height;
149
+ }
150
+ }
151
+
152
+ }
153
+
154
+ @mixin icon-bar-style(
155
+ $bar-bg:$icon-bar-bg,
156
+ $bar-font-color:$icon-bar-font-color,
157
+ $bar-hover-color:$icon-bar-hover-color,
158
+ $bar-icon-color:$icon-bar-icon-color,
159
+ $bar-active-color:$icon-bar-active-color,
160
+ $base-style:true) {
161
+
162
+ @if $base-style {
163
+
164
+ background: $bar-bg;
165
+
166
+ & > * {
167
+
168
+ &:hover { background: $bar-hover-color; }
169
+
170
+ label { color: $bar-font-color; }
171
+
172
+ i {
173
+ color: $bar-icon-color;
174
+ }
175
+ }
176
+ }
177
+
178
+ }
179
+
180
+ // We use this to quickly create icon bars with a single mixin
181
+ // $height - The overall calculated height of the icon bar (horizontal)
182
+ // $bar-bg - the background color of the bar
183
+ // $bar-font-color - the font color
184
+ // $bar-hover-color - okay these are pretty obvious variables
185
+ // $bar-icon-color - maybe we could skip explaining them all? Okay this one does change icon color if you use an icon font
186
+ // $bar-active-color - the color of an active / hover state
187
+ // $base-style - Apply base styles? Default: true.
188
+
189
+ @mixin icon-bar(
190
+ $bar-bg:$icon-bar-bg,
191
+ $bar-font-color:$icon-bar-font-color,
192
+ $bar-hover-color:$icon-bar-hover-color,
193
+ $bar-icon-color:$icon-bar-icon-color,
194
+ $bar-active-color:$icon-bar-active-color,
195
+ $padding: $icon-bar-item-padding,
196
+ $font-size: $icon-bar-font-size,
197
+ $icon-size: $icon-bar-icon-size,
198
+ $image-width: $icon-bar-image-width,
199
+ $image-height: $icon-bar-image-height,
200
+ $base-style:true) {
201
+ @include icon-bar-base();
202
+ @include icon-bar-size($padding, $font-size, $icon-size, $image-width, $image-height);
203
+ @include icon-bar-style($bar-bg, $bar-font-color, $bar-hover-color, $bar-icon-color, $bar-active-color, $base-style);
204
+ }
205
+
206
+ @include exports("icon-bar") {
207
+ @if $include-html-icon-bar-classes {
208
+ .icon-bar {
209
+ @include icon-bar;
210
+ }
211
+ }
212
+ }
213
+
214
+ @if $include-html-icon-bar-classes {
215
+
216
+ // toolbar styles
217
+
218
+ .icon-bar {
219
+
220
+ // Counts
221
+
222
+ &.two-up {
223
+ .item { width: 50%; }
224
+ &.vertical .item, &.small-vertical .item { width: auto; }
225
+ &.medium-vertical .item {
226
+ @media #{$medium-up} {
227
+ width: auto;
228
+ }
229
+ }
230
+ &.large-vertical .item {
231
+ @media #{$large-up} {
232
+ width: auto;
233
+ }
234
+ }
235
+ }
236
+ &.three-up {
237
+ .item { width: 33.3333%; }
238
+ &.vertical .item, &.small-vertical .item { width: auto; }
239
+ &.medium-vertical .item {
240
+ @media #{$medium-up} {
241
+ width: auto;
242
+ }
243
+ }
244
+ &.large-vertical .item {
245
+ @media #{$large-up} {
246
+ width: auto;
247
+ }
248
+ }
249
+ }
250
+ &.four-up {
251
+ .item { width: 25%; }
252
+ &.vertical .item, &.small-vertical .item { width: auto; }
253
+ &.medium-vertical .item {
254
+ @media #{$medium-up} {
255
+ width: auto;
256
+ }
257
+ }
258
+ &.large-vertical .item {
259
+ @media #{$large-up} {
260
+ width: auto;
261
+ }
262
+ }
263
+ }
264
+ &.five-up {
265
+ .item { width: 20%; }
266
+ &.vertical .item, &.small-vertical .item { width: auto; }
267
+ &.medium-vertical .item {
268
+ @media #{$medium-up} {
269
+ width: auto;
270
+ }
271
+ }
272
+ &.large-vertical .item {
273
+ @media #{$large-up} {
274
+ width: auto;
275
+ }
276
+ }
277
+ }
278
+ &.six-up {
279
+ .item { width: 16.66667%; }
280
+ &.vertical .item, &.small-vertical .item { width: auto; }
281
+ &.medium-vertical .item {
282
+ @media #{$medium-up} {
283
+ width: auto;
284
+ }
285
+ }
286
+ &.large-vertical .item {
287
+ @media #{$large-up} {
288
+ width: auto;
289
+ }
290
+ }
291
+ }
292
+ }
293
+ }