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
@@ -10,50 +10,50 @@
10
10
  $include-html-pricing-classes: $include-html-classes !default;
11
11
 
12
12
  // We use this to control the border color
13
- $price-table-border: solid 1px #ddd !default;
13
+ $price-table-border: solid 1px $gainsboro !default;
14
14
 
15
15
  // We use this to control the bottom margin of the pricing table
16
16
  $price-table-margin-bottom: rem-calc(20) !default;
17
17
 
18
18
  // We use these to control the title styles
19
- $price-title-bg: #333 !default;
19
+ $price-title-bg: $oil !default;
20
20
  $price-title-padding: rem-calc(15 20) !default;
21
21
  $price-title-align: center !default;
22
- $price-title-color: #eee !default;
22
+ $price-title-color: $smoke !default;
23
23
  $price-title-weight: $font-weight-normal !default;
24
24
  $price-title-size: rem-calc(16) !default;
25
25
  $price-title-font-family: $body-font-family !default;
26
26
 
27
27
  // We use these to control the price styles
28
- $price-money-bg: #f6f6f6 !default;
28
+ $price-money-bg: $vapor !default;
29
29
  $price-money-padding: rem-calc(15 20) !default;
30
30
  $price-money-align: center !default;
31
- $price-money-color: #333 !default;
31
+ $price-money-color: $oil !default;
32
32
  $price-money-weight: $font-weight-normal !default;
33
33
  $price-money-size: rem-calc(32) !default;
34
34
  $price-money-font-family: $body-font-family !default;
35
35
 
36
36
 
37
37
  // We use these to control the description styles
38
- $price-bg: #fff !default;
39
- $price-desc-color: #777 !default;
38
+ $price-bg: $white !default;
39
+ $price-desc-color: $monsoon !default;
40
40
  $price-desc-padding: rem-calc(15) !default;
41
41
  $price-desc-align: center !default;
42
42
  $price-desc-font-size: rem-calc(12) !default;
43
43
  $price-desc-weight: $font-weight-normal !default;
44
44
  $price-desc-line-height: 1.4 !default;
45
- $price-desc-bottom-border: dotted 1px #ddd !default;
45
+ $price-desc-bottom-border: dotted 1px $gainsboro !default;
46
46
 
47
47
  // We use these to control the list item styles
48
- $price-item-color: #333 !default;
48
+ $price-item-color: $oil !default;
49
49
  $price-item-padding: rem-calc(15) !default;
50
50
  $price-item-align: center !default;
51
51
  $price-item-font-size: rem-calc(14) !default;
52
52
  $price-item-weight: $font-weight-normal !default;
53
- $price-item-bottom-border: dotted 1px #ddd !default;
53
+ $price-item-bottom-border: dotted 1px $gainsboro !default;
54
54
 
55
55
  // We use these to control the CTA area styles
56
- $price-cta-bg: #fff !default;
56
+ $price-cta-bg: $white !default;
57
57
  $price-cta-align: center !default;
58
58
  $price-cta-padding: rem-calc(20 20 0) !default;
59
59
 
@@ -11,10 +11,10 @@ $include-html-media-classes: $include-html-classes !default;
11
11
 
12
12
  // We use this to set the progress bar height
13
13
  $progress-bar-height: rem-calc(25) !default;
14
- $progress-bar-color: #f6f6f6 !default;
14
+ $progress-bar-color: $vapor !default;
15
15
 
16
16
  // We use these to control the border styles
17
- $progress-bar-border-color: scale-color(#fff, $lightness: 20%) !default;
17
+ $progress-bar-border-color: scale-color($white, $lightness: 20%) !default;
18
18
  $progress-bar-border-size: 1px !default;
19
19
  $progress-bar-border-style: solid !default;
20
20
  $progress-bar-border-radius: $global-radius !default;
@@ -21,10 +21,11 @@ $range-slider-bar-height: rem-calc(16) !default;
21
21
 
22
22
  $range-slider-bar-border-width: 1px !default;
23
23
  $range-slider-bar-border-style: solid !default;
24
- $range-slider-bar-border-color: #ddd !default;
24
+ $range-slider-bar-border-color: $gainsboro !default;
25
25
  $range-slider-radius: $global-radius !default;
26
26
  $range-slider-round: $global-rounded !default;
27
- $range-slider-bar-bg-color: #fafafa !default;
27
+ $range-slider-bar-bg-color: $ghost !default;
28
+ $range-slider-active-segment-bg-color: scale-color($secondary-color, $lightness: -1%) !default;
28
29
 
29
30
  // Vertical bar styles
30
31
  $range-slider-vertical-bar-width: rem-calc(16) !default;
@@ -43,6 +44,7 @@ $range-slider-handle-round: $global-rounded !default;
43
44
  $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%) !default;
44
45
  $range-slider-handle-cursor: pointer !default;
45
46
 
47
+ $range-slider-disabled-opacity: 0.7 !default;
46
48
 
47
49
  //
48
50
  // @mixins
@@ -66,14 +68,19 @@ $range-slider-handle-cursor: pointer !default;
66
68
  @mixin range-slider-bar-style(
67
69
  $bg: true,
68
70
  $radius: false,
69
- $round: false) {
70
- @if $bg == true { background: $range-slider-bar-bg-color; }
71
- @if $radius == true { @include radius($range-slider-radius); }
72
- @if $round == true { @include radius($range-slider-round); }
71
+ $round: false,
72
+ $disabled: false) {
73
+ @if $bg == true { background: $range-slider-bar-bg-color; }
74
+ @if $radius == true { @include radius($range-slider-radius); }
75
+ @if $round == true { @include radius($range-slider-round); }
76
+ @if $disabled == true {
77
+ cursor: $cursor-default-value;
78
+ opacity: $range-slider-disabled-opacity;
73
79
  }
80
+ }
74
81
 
75
82
  @mixin range-slider-bar(
76
- $bg: $range-slider-bar-bg-color,
83
+ $bg: $range-slider-bar-bg-color,
77
84
  $radius:false) {
78
85
  @include range-slider-bar-base;
79
86
  @include range-slider-bar-style;
@@ -88,14 +95,23 @@ $range-slider-handle-cursor: pointer !default;
88
95
  height: $range-slider-handle-height;
89
96
  border: $range-slider-handle-border-width $range-slider-handle-border-style $range-slider-handle-border-color;
90
97
  cursor: $range-slider-handle-cursor;
98
+
99
+ // This removes the 300ms touch delay on Windows 8
100
+ -ms-touch-action: manipulation;
101
+ touch-action: manipulation;
91
102
  }
92
103
  @mixin range-slider-handle-style(
93
104
  $bg: true,
94
105
  $radius: false,
95
- $round: false) {
106
+ $round: false,
107
+ $disabled: false) {
96
108
  @if $bg == true { background: $range-slider-handle-bg-color; }
97
109
  @if $radius == true { @include radius($range-slider-radius); }
98
110
  @if $round == true { @include radius($range-slider-round); }
111
+ @if $disabled == true {
112
+ cursor: $cursor-default-value;
113
+ opacity: $range-slider-disabled-opacity;
114
+ }
99
115
  &:hover {
100
116
  background: $range-slider-handle-bg-hover-color;
101
117
  }
@@ -133,12 +149,16 @@ $range-slider-handle-cursor: pointer !default;
133
149
  @include range-slider-bar-style($round:true);
134
150
  .range-slider-handle { @include range-slider-handle-style($round: true); }
135
151
  }
152
+ &.disabled, &[disabled] {
153
+ @include range-slider-bar-style($disabled:true);
154
+ .range-slider-handle { @include range-slider-handle-style($disabled: true); }
155
+ }
136
156
  }
137
157
  .range-slider-active-segment {
138
158
  display: inline-block;
139
159
  position: absolute;
140
160
  height: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
141
- background: scale-color($secondary-color, $lightness: -1%);
161
+ background: $range-slider-active-segment-bg-color;
142
162
  }
143
163
  .range-slider-handle {
144
164
  @include range-slider-handle-base;
@@ -12,21 +12,22 @@
12
12
  $include-html-reveal-classes: $include-html-classes !default;
13
13
 
14
14
  // We use these to control the style of the reveal overlay.
15
- $reveal-overlay-bg: rgba(#000, .45) !default;
16
- $reveal-overlay-bg-old: #000 !default;
15
+ $reveal-overlay-bg: rgba($black, .45) !default;
16
+ $reveal-overlay-bg-old: $black !default;
17
17
 
18
18
  // We use these to control the style of the modal itself.
19
- $reveal-modal-bg: #fff !default;
19
+ $reveal-modal-bg: $white !default;
20
20
  $reveal-position-top: rem-calc(100) !default;
21
21
  $reveal-default-width: 80% !default;
22
+ $reveal-max-width: $row-width !default;
22
23
  $reveal-modal-padding: rem-calc(20) !default;
23
- $reveal-box-shadow: 0 0 10px rgba(#000,.4) !default;
24
+ $reveal-box-shadow: 0 0 10px rgba($black,.4) !default;
24
25
 
25
26
  // We use these to style the reveal close button
26
27
  $reveal-close-font-size: rem-calc(40) !default;
27
28
  $reveal-close-top: rem-calc(8) !default;
28
29
  $reveal-close-side: rem-calc(11) !default;
29
- $reveal-close-color: #aaa !default;
30
+ $reveal-close-color: $base !default;
30
31
  $reveal-close-weight: $font-weight-bold !default;
31
32
 
32
33
  // We use this to set the default radius used throughout the core.
@@ -36,7 +37,7 @@ $reveal-round: $global-rounded !default;
36
37
  // We use these to control the modal border
37
38
  $reveal-border-style: solid !default;
38
39
  $reveal-border-width: 1px !default;
39
- $reveal-border-color: #666 !default;
40
+ $reveal-border-color: $steel !default;
40
41
 
41
42
  $reveal-modal-class: "reveal-modal" !default;
42
43
  $close-reveal-modal-class: "close-reveal-modal" !default;
@@ -46,15 +47,16 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
46
47
  //
47
48
 
48
49
  // We use this to create the reveal background overlay styles
49
- @mixin reveal-bg {
50
+ @mixin reveal-bg( $include-z-index-value: true ) {
50
51
  position: fixed;
51
- height: 100%;
52
- width: 100%;
53
- background: $reveal-overlay-bg-old;
52
+ top: 0;
53
+ bottom: 0;
54
+ left: 0;
55
+ right: 0;
56
+ background: $reveal-overlay-bg-old; // Autoprefixer should be used to avoid such variables needed when Foundation for Sites can do so in the near future.
54
57
  background: $reveal-overlay-bg;
55
- z-index: 99;
58
+ z-index: if( $include-z-index-value, 1004, null );
56
59
  display: none;
57
- top: 0;
58
60
  #{$default-float}: 0;
59
61
  }
60
62
 
@@ -63,44 +65,44 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
63
65
  // $base-style - Provides reveal base styles, can be set to false to override. Default: true, Options: false
64
66
  // $width - Sets reveal width Default: $reveal-default-width || 80%
65
67
  //
66
- @mixin reveal-modal-base(
67
- $base-style:true,
68
- $width:$reveal-default-width) {
68
+ @mixin reveal-modal-base( $base-style: true, $width:$reveal-default-width, $max-width:$reveal-max-width, $border-radius: $reveal-radius) {
69
69
  @if $base-style {
70
70
  visibility: hidden;
71
71
  display: none;
72
72
  position: absolute;
73
- z-index: 100;
73
+ z-index: 1005;
74
74
  width: 100vw;
75
75
  top:0;
76
+ border-radius: $border-radius;
76
77
  #{$default-float}: 0;
78
+
77
79
  @media #{$small-only} {
78
80
  min-height:100vh;
79
81
  }
80
- @media #{$medium-up} {
81
- #{$default-float}: 50%;
82
- }
83
82
 
84
83
  // Make sure rows don't have a min-width on them
85
- .column,
86
- .columns { min-width: 0; }
84
+ .column, .columns { min-width: 0; }
87
85
 
88
86
  // Get rid of margin from first and last element inside modal
89
87
  & > :first-child { margin-top: 0; }
88
+
90
89
  & > :last-child { margin-bottom: 0; }
91
90
  }
92
91
 
93
92
  @if $width {
94
93
  @media #{$medium-up} {
95
- margin-#{$default-float}: -($width / 2);
96
94
  width: $width;
95
+ max-width: $max-width;
96
+ left: 0;
97
+ right: 0;
98
+ margin: 0 auto;
97
99
  }
98
100
  }
99
101
  }
100
102
 
101
103
  // We use this to style the reveal modal defaults
102
104
  //
103
- // $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || #fff
105
+ // $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || $white
104
106
  // $padding - Padding to apply to reveal modal. Default: $reveal-modal-padding.
105
107
  // $border - Choose whether reveal uses a border. Default: true, Options: false
106
108
  // $border-style - Set reveal border style. Default: $reveal-border-style || solid
@@ -143,7 +145,7 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
143
145
 
144
146
  // We use this to create a close button for the reveal modal
145
147
  //
146
- // $color - Default: $reveal-close-color || #aaa
148
+ // $color - Default: $reveal-close-color || $base
147
149
  @mixin reveal-close($color:$reveal-close-color) {
148
150
  font-size: $reveal-close-font-size;
149
151
  line-height: 1;
@@ -161,7 +163,7 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
161
163
  // Reveal Modals
162
164
  .reveal-modal-bg { @include reveal-bg; }
163
165
 
164
- dialog, .#{$reveal-modal-class} {
166
+ .#{$reveal-modal-class} {
165
167
  @include reveal-modal-base;
166
168
  @include reveal-modal-style(
167
169
  $bg:$reveal-modal-bg,
@@ -169,48 +171,50 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
169
171
  $border:true,
170
172
  $box-shadow:true,
171
173
  $radius:false,
172
- $top-offset:$reveal-position-top);
174
+ $top-offset:$reveal-position-top
175
+ );
176
+ @include reveal-modal-style($padding:$reveal-modal-padding * 1.5);
177
+
178
+ &.radius { @include reveal-modal-style($radius:true); }
179
+ &.round { @include reveal-modal-style($radius:$reveal-round); }
180
+ &.collapse { @include reveal-modal-style($padding:0); }
181
+ &.tiny { @include reveal-modal-base(false, 30%); }
182
+ &.small { @include reveal-modal-base(false, 40%); }
183
+ &.medium { @include reveal-modal-base(false, 60%); }
184
+ &.large { @include reveal-modal-base(false, 70%); }
185
+ &.xlarge { @include reveal-modal-base(false, 95%); }
186
+ &.full {
187
+ @include reveal-modal-base(false, 100vw);
188
+ top:0;
189
+ left:0;
190
+ height:100%;
191
+ height: 100vh;
192
+ min-height:100vh;
193
+ margin-left: 0 !important;
194
+ }
173
195
 
174
196
  .#{$close-reveal-modal-class} { @include reveal-close; }
175
197
  }
176
198
 
177
- dialog[open] {
178
- display:block;
179
- visibility: visible;
180
- }
181
-
182
- @media #{$medium-up} {
199
+ dialog {
200
+ @extend .#{$reveal-modal-class};
201
+ display: none;
183
202
 
184
- dialog, .#{$reveal-modal-class} {
185
- @include reveal-modal-style($padding:$reveal-modal-padding * 1.5);
186
-
187
- &.radius { @include reveal-modal-style($radius:true); }
188
- &.round { @include reveal-modal-style($radius:$reveal-round); }
189
-
190
- &.collapse { @include reveal-modal-style($padding:0); }
191
-
192
- &.tiny { @include reveal-modal-base(false, 30%); }
193
- &.small { @include reveal-modal-base(false, 40%); }
194
- &.medium { @include reveal-modal-base(false, 60%); }
195
- &.large { @include reveal-modal-base(false, 70%); }
196
- &.xlarge { @include reveal-modal-base(false, 95%); }
203
+ &::backdrop, & + .backdrop {
204
+ @include reveal-bg(false);
197
205
  }
198
206
 
199
- dialog, .#{$reveal-modal-class} {
200
- &.full {
201
- @include reveal-modal-base(false, 100vw);
202
- top:0;
203
- left:0;
204
- height: 100vh;
205
- min-height:100vh;
206
- margin-left: 0 !important;
207
- }
207
+ &[open]{
208
+ display: block;
208
209
  }
209
210
  }
210
211
 
211
- // Reveal Print Styles
212
+ // Reveal Print Styles: It should be invislbe, adds no value being printed.
212
213
  @media print {
213
- dialog, .#{$reveal-modal-class} {background: #fff !important;}
214
+ dialog, .#{$reveal-modal-class} {
215
+ display: none;
216
+ background: $white !important;
217
+ }
214
218
  }
215
219
  }
216
220
  }
@@ -15,7 +15,7 @@ $side-nav-padding: rem-calc(14 0) !default;
15
15
 
16
16
  // We use these to control list styles.
17
17
  $side-nav-list-type: none !default;
18
- $side-nav-list-position: inside !default;
18
+ $side-nav-list-position: outside !default;
19
19
  $side-nav-list-margin: rem-calc(0 0 7 0) !default;
20
20
 
21
21
  // We use these to control link styles.
@@ -40,7 +40,7 @@ $side-nav-heading-text-transform: uppercase !default;
40
40
  // We use these to control border styles
41
41
  $side-nav-divider-size: 1px !default;
42
42
  $side-nav-divider-style: solid !default;
43
- $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
43
+ $side-nav-divider-color: scale-color($white, $lightness: 10%) !default;
44
44
 
45
45
 
46
46
  //
@@ -70,6 +70,7 @@ $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
70
70
  li {
71
71
  margin: $side-nav-list-margin;
72
72
  font-size: $font-size;
73
+ font-weight: $side-nav-font-weight;
73
74
 
74
75
  a:not(.button) {
75
76
  display: block;
@@ -19,8 +19,8 @@ $include-html-button-classes: $include-html-classes !default;
19
19
 
20
20
  // We use these to control different shared styles for Split Buttons
21
21
  $split-button-function-factor: 10% !default;
22
- $split-button-pip-color: #fff !default;
23
- $split-button-pip-color-alt: #333 !default;
22
+ $split-button-pip-color: $white !default;
23
+ $split-button-pip-color-alt: $oil !default;
24
24
  $split-button-active-bg-tint: rgba(0,0,0,0.1) !default;
25
25
 
26
26
  // We use these to control tiny split buttons
@@ -22,7 +22,7 @@ $sub-nav-list-padding-top: rem-calc(4) !default;
22
22
  // We use this to control the definition
23
23
  $sub-nav-font-family: $body-font-family !default;
24
24
  $sub-nav-font-size: rem-calc(14) !default;
25
- $sub-nav-font-color: #999 !default;
25
+ $sub-nav-font-color: $aluminum !default;
26
26
  $sub-nav-font-weight: $font-weight-normal !default;
27
27
  $sub-nav-text-decoration: none !default;
28
28
  $sub-nav-padding: rem-calc(3 16) !default;
@@ -35,7 +35,7 @@ $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !d
35
35
  $sub-nav-active-font-weight: $font-weight-normal !default;
36
36
  $sub-nav-active-bg: $primary-color !default;
37
37
  $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
38
- $sub-nav-active-color: #fff !default;
38
+ $sub-nav-active-color: $white !default;
39
39
  $sub-nav-active-padding: $sub-nav-padding !default;
40
40
  $sub-nav-active-cursor: default !default;
41
41
 
@@ -0,0 +1,226 @@
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
+
12
+ //
13
+ // @variables
14
+ //
15
+
16
+ $include-html-form-classes: $include-html-classes !default;
17
+
18
+ // Controlling background color for the switch container
19
+ $switch-bg: $gainsboro !default;
20
+
21
+ // We use these to control the switch heights for our default classes
22
+ $switch-height-tny: 1.5rem !default;
23
+ $switch-height-sml: 1.75rem !default;
24
+ $switch-height-med: 2rem !default;
25
+ $switch-height-lrg: 2.5rem !default;
26
+ $switch-bottom-margin: 1.5rem !default;
27
+
28
+ // We use these to style the switch-paddle
29
+ $switch-paddle-bg: $white !default;
30
+ $switch-paddle-transition-speed: .15s !default;
31
+ $switch-paddle-transition-ease: ease-out !default;
32
+ $switch-active-color: $primary-color !default;
33
+
34
+
35
+ //
36
+ // @mixins
37
+ //
38
+
39
+ // We use this mixin to create the base styles for our switch element.
40
+ //
41
+ // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
42
+ // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
43
+ @mixin switch-base(
44
+ $transition-speed:$switch-paddle-transition-speed,
45
+ $transition-ease:$switch-paddle-transition-ease) {
46
+
47
+
48
+ // Default label styles for type and transition
49
+ label {
50
+ display: block;
51
+ margin-bottom: $switch-height-med / 2;
52
+ position: relative;
53
+ color: transparent;
54
+ background: $switch-bg;
55
+ text-indent: 100%;
56
+ width: $switch-height-med * 2; height: $switch-height-med;
57
+ cursor: pointer;
58
+
59
+ // Transition for the switch label to follow paddle
60
+ @include single-transition(left, $transition-speed, $transition-ease);
61
+ }
62
+
63
+ // So that we don't need to recreate the form with any JS, we use the
64
+ // existing checkbox or radio button, but we cleverly position and hide it.
65
+ input {
66
+ opacity: 0;
67
+ position: absolute;
68
+ top: 9px;
69
+ left: 10px;
70
+ padding:0;
71
+
72
+ & + label { margin-left: 0; margin-right: 0; }
73
+ }
74
+
75
+ // The paddle for the switch is created from an after psuedoclass
76
+ // content element. This is sized and positioned, and reacts to
77
+ // the state of the input.
78
+
79
+ label:after {
80
+ content: "";
81
+ display: block;
82
+ background: $switch-paddle-bg;
83
+ position: absolute; top: .25rem; left: .25rem;
84
+ width: $switch-height-med - 0.5rem; height: $switch-height-med - 0.5rem;
85
+
86
+ -webkit-transition: left $transition-speed $transition-ease;
87
+ -moz-transition: left $transition-speed $transition-ease;
88
+ transition: left $transition-speed $transition-ease;
89
+
90
+ -webkit-transform: translate3d(0,0,0);
91
+ -moz-transform: translate3d(0,0,0);
92
+ transform: translate3d(0,0,0);
93
+ }
94
+
95
+ input:checked + label {
96
+ background: $switch-active-color;
97
+ }
98
+
99
+ input:checked + label:after {
100
+ left: $switch-height-med + 0.25rem;
101
+ }
102
+ }
103
+
104
+ // We use this mixin to create the size styles for switches.
105
+ //
106
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
107
+ // $font-size - Font size of text in switch. Default: $switch-font-size-med.
108
+ // $line-height - Line height of switch. Default: 2.3rem.
109
+ @mixin switch-size($height: $switch-height-med) {
110
+
111
+ label {
112
+ width: $height * 2; height: $height;
113
+ }
114
+
115
+ label:after {
116
+ width: $height - 0.5rem; height: $height - 0.5rem;
117
+ }
118
+
119
+ input:checked + label:after {
120
+ left: $height + 0.25rem;
121
+ }
122
+
123
+ }
124
+
125
+ // We use this mixin to add color and other fanciness to the switches.
126
+ //
127
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
128
+ // $active-color - Background color of positive side of switch. Default: $switch-positive-color.
129
+ // $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
130
+ // $radius - Radius to apply to switch. Default: false.
131
+ // $base-style - Apply base styles? Default: true.
132
+ @mixin switch-style(
133
+ $paddle-bg:$switch-paddle-bg,
134
+ $radius:false,
135
+ $base-style:true) {
136
+
137
+ @if $base-style {
138
+
139
+ label {
140
+ color: transparent;
141
+ background: $switch-bg;
142
+ }
143
+
144
+ label:after {
145
+ background: $paddle-bg;
146
+ }
147
+
148
+ input:checked + label {
149
+ background: $switch-active-color;
150
+ }
151
+ }
152
+
153
+ // Setting up the radius for switches
154
+ @if $radius == true {
155
+ label {
156
+ border-radius: 2rem;
157
+ }
158
+ label:after {
159
+ border-radius: 2rem;
160
+ }
161
+ }
162
+ @else if $radius {
163
+ label {
164
+ border-radius: $radius;
165
+ }
166
+ label:after {
167
+ border-radius: $radius;
168
+ }
169
+ }
170
+
171
+ }
172
+
173
+ // We use this to quickly create switches with a single mixin
174
+ //
175
+ // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
176
+ // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
177
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
178
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
179
+ // $active-color - Background color of an active switch. Default: $switch-active-color.
180
+ // $radius - Radius to apply to switch. Default: false.
181
+ // $base-style - Apply base styles? Default: true.
182
+ @mixin switch(
183
+ $transition-speed: $switch-paddle-transition-speed,
184
+ $transition-ease: $switch-paddle-transition-ease,
185
+ $height: $switch-height-med,
186
+ $paddle-bg: $switch-paddle-bg,
187
+ $active-color: $switch-active-color,
188
+ $radius:false,
189
+ $base-style:true) {
190
+ padding: 0;
191
+ border: none;
192
+ position: relative;
193
+ @include switch-base($transition-speed, $transition-ease);
194
+ @include switch-size($height);
195
+ @include switch-style($paddle-bg, $radius, $base-style);
196
+ }
197
+
198
+ @include exports("switch") {
199
+ @if $include-html-form-classes {
200
+ .switch {
201
+ @include switch;
202
+
203
+ // Large radio switches
204
+ &.large { @include switch-size($switch-height-lrg); }
205
+
206
+ // Small radio switches
207
+ &.small { @include switch-size($switch-height-sml); }
208
+
209
+ // Tiny radio switches
210
+ &.tiny { @include switch-size($switch-height-tny); }
211
+
212
+ // Add a radius to the switch
213
+ &.radius {
214
+ label { @include radius(4px); }
215
+ label:after { @include radius(3px); }
216
+ }
217
+
218
+ // Make the switch completely round, like a pill
219
+ &.round { @include radius(1000px);
220
+ label { @include radius(2rem); }
221
+ label:after { @include radius(2rem); }
222
+ }
223
+
224
+ }
225
+ }
226
+ }