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.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.gitignore +9 -17
- data/.rspec +3 -0
- data/.travis.yml +3 -0
- data/CHANGELOG.md +4 -0
- data/README.md +99 -163
- data/Rakefile +5 -0
- data/TokiCLI.gemspec +5 -4
- data/bin/toki +2 -2
- data/lib/API/helpers.rb +27 -170
- data/lib/API/toki_api.rb +227 -0
- data/lib/API/toki_db.rb +67 -0
- data/lib/TokiCLI.rb +270 -5
- data/lib/TokiCLI/adnimport.rb +202 -0
- data/lib/TokiCLI/fileops.rb +187 -0
- data/lib/TokiCLI/status.rb +49 -37
- data/lib/TokiCLI/version.rb +1 -1
- data/lib/TokiCLI/view.rb +133 -86
- data/lib/TokiServer/.bowerrc +3 -0
- data/lib/TokiServer/.gitignore +2 -0
- data/lib/TokiServer/Gemfile +1 -0
- data/lib/TokiServer/bower.json +0 -0
- data/lib/TokiServer/bower_components/fastclick/.bower.json +4 -4
- data/lib/TokiServer/bower_components/fastclick/bower.json +1 -1
- data/lib/TokiServer/bower_components/fastclick/lib/fastclick.js +33 -2
- data/lib/TokiServer/bower_components/foundation/.bower.json +5 -4
- data/lib/TokiServer/bower_components/foundation/bower.json +2 -1
- data/lib/TokiServer/bower_components/foundation/css/foundation.css +2173 -922
- data/lib/TokiServer/bower_components/foundation/css/foundation.css.map +7 -0
- data/lib/TokiServer/bower_components/foundation/css/normalize.css +53 -16
- data/lib/TokiServer/bower_components/foundation/css/normalize.css.map +7 -0
- data/lib/TokiServer/bower_components/foundation/js/foundation.js +782 -542
- data/lib/TokiServer/bower_components/foundation/js/foundation.min.js +4 -3
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.abide.js +45 -31
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.accordion.js +12 -6
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.alert.js +5 -5
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.clearing.js +34 -10
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.dropdown.js +83 -29
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.equalizer.js +3 -3
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.interchange.js +25 -12
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.joyride.js +112 -40
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.js +19 -5
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.magellan.js +22 -11
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.offcanvas.js +52 -8
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.orbit.js +133 -271
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.reveal.js +27 -20
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.slider.js +73 -33
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.tab.js +88 -31
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.tooltip.js +7 -5
- data/lib/TokiServer/bower_components/foundation/js/foundation/foundation.topbar.js +44 -24
- data/lib/TokiServer/bower_components/foundation/js/vendor/fastclick.js +2 -2
- data/lib/TokiServer/bower_components/foundation/js/vendor/modernizr.js +2 -2
- data/lib/TokiServer/bower_components/foundation/scss/foundation.scss +38 -38
- data/lib/TokiServer/bower_components/foundation/scss/foundation/_functions.scss +3 -3
- data/lib/TokiServer/bower_components/foundation/scss/foundation/_settings.scss +417 -271
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_accordion.scss +110 -6
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_alert-boxes.scss +2 -2
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_block-grid.scss +2 -2
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +8 -3
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_button-groups.scss +99 -9
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_buttons.scss +66 -28
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_clearing.scss +5 -5
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss +4 -4
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_dropdown.scss +48 -35
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_forms.scss +104 -32
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_global.scss +48 -30
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_grid.scss +19 -4
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_icon-bar.scss +293 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_joyride.scss +11 -9
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_keystrokes.scss +4 -4
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_labels.scss +4 -2
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_magellan.scss +1 -1
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_offcanvas.scss +193 -35
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_orbit.scss +92 -147
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_pagination.scss +22 -10
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_panels.scss +10 -7
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_pricing-tables.scss +11 -11
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_progress-bars.scss +2 -2
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_range-slider.scss +29 -9
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_reveal.scss +60 -56
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_side-nav.scss +3 -2
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_split-buttons.scss +2 -2
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_sub-nav.scss +2 -2
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_switches.scss +226 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tables.scss +13 -7
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tabs.scss +22 -8
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_thumbs.scss +2 -4
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_toolbar.scss +70 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_tooltips.scss +9 -7
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_top-bar.scss +77 -44
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_type.scss +21 -9
- data/lib/TokiServer/bower_components/modernizr/.bower.json +4 -4
- data/lib/TokiServer/bower_components/modernizr/feature-detects/workers-blobworkers.js +2 -2
- data/lib/TokiServer/bower_components/modernizr/grunt.js +1 -1
- data/lib/TokiServer/bower_components/modernizr/modernizr.js +2 -2
- data/lib/TokiServer/config.rb +0 -0
- data/lib/TokiServer/humans.txt +0 -0
- data/lib/TokiServer/{itunesicon.rb → itunesicons.rb} +25 -23
- data/lib/TokiServer/js/app.js +0 -0
- data/lib/TokiServer/public/stylesheets/app.css +2636 -1610
- data/lib/TokiServer/robots.txt +0 -0
- data/lib/TokiServer/scss/_settings.scss +0 -0
- data/lib/TokiServer/scss/app.scss +7 -1
- data/lib/TokiServer/tokiserver.rb +239 -244
- data/lib/TokiServer/views/activity.erb +42 -0
- data/lib/TokiServer/views/apps_total.erb +8 -2
- data/lib/TokiServer/views/error.erb +13 -4
- data/lib/TokiServer/views/index.erb +36 -27
- data/lib/TokiServer/views/logs_total.erb +34 -0
- data/spec/TokiCLI_spec.rb +354 -0
- data/spec/mock/mock.sqlite3 +0 -0
- data/spec/spec_helper.rb +26 -0
- metadata +78 -23
- data/lib/API/dbapi.rb +0 -488
- data/lib/TokiCLI/app.rb +0 -389
- data/lib/TokiCLI/authorize.rb +0 -77
- data/lib/TokiCLI/export.rb +0 -81
- data/lib/TokiCLI/get_channels.rb +0 -22
- data/lib/TokiCLI/get_messages.rb +0 -32
- data/lib/TokiCLI/import.rb +0 -122
- data/lib/TokiCLI/scan.rb +0 -19
- data/lib/TokiCLI/search_messages.rb +0 -23
- data/lib/TokiServer/README.md +0 -37
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_reveal-new.scss +0 -0
- data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_switch.scss +0 -294
- data/lib/TokiServer/views/name_log.erb +0 -50
- data/lib/TokiServer/views/name_split.erb +0 -37
- data/lib/TokiServer/views/name_total.erb +0 -34
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
$include-html-clearing-classes: $include-html-classes !default;
|
|
11
11
|
|
|
12
12
|
// We use these to set the background colors for parts of Clearing.
|
|
13
|
-
$clearing-bg:
|
|
13
|
+
$clearing-bg: $oil !default;
|
|
14
14
|
$clearing-caption-bg: $clearing-bg !default;
|
|
15
15
|
$clearing-carousel-bg: rgba(51,51,51,0.8) !default;
|
|
16
16
|
$clearing-img-bg: $clearing-bg !default;
|
|
17
17
|
|
|
18
18
|
// We use these to style the close button
|
|
19
|
-
$clearing-close-color:
|
|
19
|
+
$clearing-close-color: $iron !default;
|
|
20
20
|
$clearing-close-size: 30px !default;
|
|
21
21
|
|
|
22
22
|
// We use these to style the arrows
|
|
@@ -24,7 +24,7 @@ $clearing-arrow-size: 12px !default;
|
|
|
24
24
|
$clearing-arrow-color: $clearing-close-color !default;
|
|
25
25
|
|
|
26
26
|
// We use these to style captions
|
|
27
|
-
$clearing-caption-font-color:
|
|
27
|
+
$clearing-caption-font-color: $iron !default;
|
|
28
28
|
$clearing-caption-font-size: 0.875em !default;
|
|
29
29
|
$clearing-caption-padding: 10px 30px 20px !default;
|
|
30
30
|
|
|
@@ -81,7 +81,7 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
|
|
|
81
81
|
position: absolute;
|
|
82
82
|
top: 50%;
|
|
83
83
|
left: 50%;
|
|
84
|
-
color:
|
|
84
|
+
color: $base;
|
|
85
85
|
font-size: 0.6em;
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -123,7 +123,7 @@ $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
|
|
|
123
123
|
display: none;
|
|
124
124
|
|
|
125
125
|
&:hover,
|
|
126
|
-
&:focus { color:
|
|
126
|
+
&:focus { color: $iron; }
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.clearing-assembled .clearing-container { height: 100%;
|
data/lib/TokiServer/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
$include-html-button-classes: $include-html-classes !default;
|
|
11
11
|
|
|
12
12
|
// We use these to set the color of the pip in dropdown buttons
|
|
13
|
-
$dropdown-button-pip-color:
|
|
14
|
-
$dropdown-button-pip-color-alt:
|
|
13
|
+
$dropdown-button-pip-color: $white !default;
|
|
14
|
+
$dropdown-button-pip-color-alt: $oil !default;
|
|
15
15
|
|
|
16
16
|
$button-pip-tny: rem-calc(6) !default;
|
|
17
17
|
$button-pip-sml: rem-calc(7) !default;
|
|
@@ -49,10 +49,10 @@ $dropdown-button-pip-top-lrg: -$button-pip-lrg / 2 + rem-calc(3) !default;
|
|
|
49
49
|
// We use this mixin to build off of the button mixin and add dropdown button styles
|
|
50
50
|
//
|
|
51
51
|
// $padding - Determines the size of button you're working with. Default: medium. Options [tiny, small, medium, large]
|
|
52
|
-
// $pip-color - Color of the little triangle that points to the dropdown. Default:
|
|
52
|
+
// $pip-color - Color of the little triangle that points to the dropdown. Default: $white.
|
|
53
53
|
// $base-style - Add in base-styles. This can be set to false. Default:true
|
|
54
54
|
|
|
55
|
-
@mixin dropdown-button($padding:medium, $pip-color
|
|
55
|
+
@mixin dropdown-button($padding:medium, $pip-color:$white, $base-style:true) {
|
|
56
56
|
|
|
57
57
|
// We add in base styles, but they can be negated by setting to 'false'.
|
|
58
58
|
@if $base-style {
|
|
@@ -27,30 +27,33 @@ $f-dropdown-margin-right: $f-dropdown-margin-top !default;
|
|
|
27
27
|
$f-dropdown-margin-bottom: $f-dropdown-margin-top !default;
|
|
28
28
|
|
|
29
29
|
// We use this to control the background color
|
|
30
|
-
$f-dropdown-bg:
|
|
30
|
+
$f-dropdown-bg: $white !default;
|
|
31
31
|
|
|
32
32
|
// We use this to set the border styles for dropdowns.
|
|
33
33
|
$f-dropdown-border-style: solid !default;
|
|
34
34
|
$f-dropdown-border-width: 1px !default;
|
|
35
|
-
$f-dropdown-border-color: scale-color(
|
|
35
|
+
$f-dropdown-border-color: scale-color($white, $lightness: -20%) !default;
|
|
36
36
|
|
|
37
37
|
// We use these to style the triangle pip.
|
|
38
38
|
$f-dropdown-triangle-size: 6px !default;
|
|
39
|
-
$f-dropdown-triangle-color:
|
|
39
|
+
$f-dropdown-triangle-color: $white !default;
|
|
40
40
|
$f-dropdown-triangle-side-offset: 10px !default;
|
|
41
41
|
|
|
42
42
|
// We use these to control styles for the list elements.
|
|
43
43
|
$f-dropdown-list-style: none !default;
|
|
44
|
-
$f-dropdown-font-color:
|
|
44
|
+
$f-dropdown-font-color: $charcoal !default;
|
|
45
45
|
$f-dropdown-font-size: rem-calc(14) !default;
|
|
46
46
|
$f-dropdown-list-padding: rem-calc(5, 10) !default;
|
|
47
47
|
$f-dropdown-line-height: rem-calc(18) !default;
|
|
48
|
-
$f-dropdown-list-hover-bg:
|
|
48
|
+
$f-dropdown-list-hover-bg: $smoke !default;
|
|
49
49
|
$dropdown-mobile-default-float: 0 !default;
|
|
50
50
|
|
|
51
51
|
// We use this to control the styles for when the dropdown has custom content.
|
|
52
52
|
$f-dropdown-content-padding: rem-calc(20) !default;
|
|
53
53
|
|
|
54
|
+
// Default radius for dropdown.
|
|
55
|
+
$f-dropdown-radius: $global-radius !default;
|
|
56
|
+
|
|
54
57
|
//
|
|
55
58
|
// @mixins
|
|
56
59
|
//
|
|
@@ -76,7 +79,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
|
76
79
|
background: $f-dropdown-bg;
|
|
77
80
|
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
|
78
81
|
font-size: $f-dropdown-font-size;
|
|
79
|
-
z-index:
|
|
82
|
+
z-index: 89;
|
|
80
83
|
}
|
|
81
84
|
@else if $content == content {
|
|
82
85
|
padding: $f-dropdown-content-padding;
|
|
@@ -86,7 +89,7 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
|
86
89
|
background: $f-dropdown-bg;
|
|
87
90
|
border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color;
|
|
88
91
|
font-size: $f-dropdown-font-size;
|
|
89
|
-
z-index:
|
|
92
|
+
z-index: 89;
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
@if $triangle == bottom {
|
|
@@ -97,66 +100,66 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
|
97
100
|
position: absolute;
|
|
98
101
|
top: -($f-dropdown-triangle-size * 2);
|
|
99
102
|
#{$default-float}: $f-dropdown-triangle-side-offset;
|
|
100
|
-
z-index:
|
|
103
|
+
z-index: 89;
|
|
101
104
|
}
|
|
102
105
|
&:after {
|
|
103
106
|
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom);
|
|
104
107
|
position: absolute;
|
|
105
108
|
top: -(($f-dropdown-triangle-size + 1) * 2);
|
|
106
109
|
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
|
107
|
-
z-index:
|
|
110
|
+
z-index: 88;
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
&.right:before {
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
#{$default-float}: auto;
|
|
115
|
+
#{$opposite-direction}: $f-dropdown-triangle-side-offset;
|
|
113
116
|
}
|
|
114
117
|
&.right:after {
|
|
115
|
-
|
|
116
|
-
|
|
118
|
+
#{$default-float}: auto;
|
|
119
|
+
#{$opposite-direction}: $f-dropdown-triangle-side-offset - 1;
|
|
117
120
|
}
|
|
118
121
|
}
|
|
119
122
|
|
|
120
|
-
@if $triangle ==
|
|
123
|
+
@if $triangle == $default-float {
|
|
121
124
|
margin-top: 0;
|
|
122
|
-
margin-
|
|
125
|
+
margin-#{$default-float}: $f-dropdown-margin-right;
|
|
123
126
|
|
|
124
127
|
&:before {
|
|
125
|
-
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color,
|
|
128
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, #{$opposite-direction});
|
|
126
129
|
position: absolute;
|
|
127
130
|
top: $f-dropdown-triangle-side-offset;
|
|
128
131
|
#{$default-float}: -($f-dropdown-triangle-size * 2);
|
|
129
|
-
z-index:
|
|
132
|
+
z-index: 89;
|
|
130
133
|
}
|
|
131
134
|
&:after {
|
|
132
|
-
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color,
|
|
135
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, #{$opposite-direction});
|
|
133
136
|
position: absolute;
|
|
134
137
|
top: $f-dropdown-triangle-side-offset - 1;
|
|
135
138
|
#{$default-float}: -($f-dropdown-triangle-size * 2) - 2;
|
|
136
|
-
z-index:
|
|
139
|
+
z-index: 88;
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
}
|
|
140
143
|
|
|
141
|
-
@if $triangle ==
|
|
144
|
+
@if $triangle == $opposite-direction {
|
|
142
145
|
margin-top: 0;
|
|
143
|
-
margin-
|
|
146
|
+
margin-#{$default-float}: -$f-dropdown-margin-right;
|
|
144
147
|
|
|
145
148
|
&:before {
|
|
146
|
-
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color,
|
|
149
|
+
@include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, #{$default-float});
|
|
147
150
|
position: absolute;
|
|
148
151
|
top: $f-dropdown-triangle-side-offset;
|
|
149
152
|
#{$opposite-direction}: -($f-dropdown-triangle-size * 2);
|
|
150
|
-
|
|
151
|
-
z-index:
|
|
153
|
+
#{$default-float}: auto;
|
|
154
|
+
z-index: 89;
|
|
152
155
|
}
|
|
153
156
|
&:after {
|
|
154
|
-
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color,
|
|
157
|
+
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, #{$default-float});
|
|
155
158
|
position: absolute;
|
|
156
159
|
top: $f-dropdown-triangle-side-offset - 1;
|
|
157
160
|
#{$opposite-direction}: -($f-dropdown-triangle-size * 2) - 2;
|
|
158
|
-
|
|
159
|
-
z-index:
|
|
161
|
+
#{$default-float}: auto;
|
|
162
|
+
z-index: 88;
|
|
160
163
|
}
|
|
161
164
|
|
|
162
165
|
}
|
|
@@ -171,8 +174,8 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
|
171
174
|
top: auto;
|
|
172
175
|
bottom: -($f-dropdown-triangle-size * 2);
|
|
173
176
|
#{$default-float}: $f-dropdown-triangle-side-offset;
|
|
174
|
-
|
|
175
|
-
z-index:
|
|
177
|
+
#{$opposite-direction}: auto;
|
|
178
|
+
z-index: 89;
|
|
176
179
|
}
|
|
177
180
|
&:after {
|
|
178
181
|
@include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top);
|
|
@@ -180,8 +183,8 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
|
180
183
|
top: auto;
|
|
181
184
|
bottom: -($f-dropdown-triangle-size * 2) - 2;
|
|
182
185
|
#{$default-float}: $f-dropdown-triangle-side-offset - 1;
|
|
183
|
-
|
|
184
|
-
z-index:
|
|
186
|
+
#{$opposite-direction}: auto;
|
|
187
|
+
z-index: 88;
|
|
185
188
|
}
|
|
186
189
|
|
|
187
190
|
}
|
|
@@ -205,6 +208,8 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
|
205
208
|
&:hover,
|
|
206
209
|
&:focus { background: $f-dropdown-list-hover-bg; }
|
|
207
210
|
|
|
211
|
+
&.radius { @include radius($f-dropdown-radius); }
|
|
212
|
+
|
|
208
213
|
a {
|
|
209
214
|
display: block;
|
|
210
215
|
padding: $f-dropdown-list-padding;
|
|
@@ -219,12 +224,12 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
|
219
224
|
.f-dropdown {
|
|
220
225
|
@include dropdown-container(list, bottom);
|
|
221
226
|
|
|
222
|
-
&.drop-
|
|
223
|
-
@include dropdown-container(list,
|
|
227
|
+
&.drop-#{$opposite-direction} {
|
|
228
|
+
@include dropdown-container(list, #{$default-float});
|
|
224
229
|
}
|
|
225
230
|
|
|
226
|
-
&.drop-
|
|
227
|
-
@include dropdown-container(list,
|
|
231
|
+
&.drop-#{$default-float} {
|
|
232
|
+
@include dropdown-container(list, #{$opposite-direction});
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
&.drop-top {
|
|
@@ -242,6 +247,14 @@ $f-dropdown-content-padding: rem-calc(20) !default;
|
|
|
242
247
|
&.small { max-width: 300px; }
|
|
243
248
|
&.medium { max-width: 500px; }
|
|
244
249
|
&.large { max-width: 800px; }
|
|
250
|
+
&.mega {
|
|
251
|
+
width:100%!important;
|
|
252
|
+
max-width:100%!important;
|
|
253
|
+
|
|
254
|
+
&.open{
|
|
255
|
+
left:0!important;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
245
258
|
}
|
|
246
259
|
|
|
247
260
|
}
|
|
@@ -18,43 +18,47 @@ $form-label-pointer: pointer !default;
|
|
|
18
18
|
$form-label-font-size: rem-calc(14) !default;
|
|
19
19
|
$form-label-font-weight: $font-weight-normal !default;
|
|
20
20
|
$form-label-line-height: 1.5 !default;
|
|
21
|
-
$form-label-font-color: scale-color(
|
|
21
|
+
$form-label-font-color: scale-color($black, $lightness: 30%) !default;
|
|
22
22
|
$form-label-small-transform: capitalize !default;
|
|
23
23
|
$form-label-bottom-margin: 0 !default;
|
|
24
24
|
$input-font-family: inherit !default;
|
|
25
25
|
$input-font-color: rgba(0,0,0,0.75) !default;
|
|
26
26
|
$input-font-size: rem-calc(14) !default;
|
|
27
|
-
$input-bg-color:
|
|
28
|
-
$input-focus-bg-color: scale-color(
|
|
29
|
-
$input-border-color: scale-color(
|
|
30
|
-
$input-focus-border-color: scale-color(
|
|
27
|
+
$input-bg-color: $white !default;
|
|
28
|
+
$input-focus-bg-color: scale-color($white, $lightness: -2%) !default;
|
|
29
|
+
$input-border-color: scale-color($white, $lightness: -20%) !default;
|
|
30
|
+
$input-focus-border-color: scale-color($white, $lightness: -40%) !default;
|
|
31
31
|
$input-border-style: solid !default;
|
|
32
32
|
$input-border-width: 1px !default;
|
|
33
33
|
$input-border-radius: $global-radius !default;
|
|
34
|
-
$input-disabled-bg:
|
|
34
|
+
$input-disabled-bg: $gainsboro !default;
|
|
35
|
+
$input-disabled-cursor: $cursor-default-value !default;
|
|
35
36
|
$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;
|
|
36
37
|
$input-include-glowing-effect: true !default;
|
|
37
38
|
|
|
38
39
|
// We use these to style the fieldset border and spacing.
|
|
39
40
|
$fieldset-border-style: solid !default;
|
|
40
41
|
$fieldset-border-width: 1px !default;
|
|
41
|
-
$fieldset-border-color:
|
|
42
|
+
$fieldset-border-color: $gainsboro !default;
|
|
42
43
|
$fieldset-padding: rem-calc(20) !default;
|
|
43
44
|
$fieldset-margin: rem-calc(18 0) !default;
|
|
44
45
|
|
|
45
46
|
// We use these to style the legends when you use them
|
|
46
|
-
$legend-bg:
|
|
47
|
+
$legend-bg: $white !default;
|
|
47
48
|
$legend-font-weight: $font-weight-bold !default;
|
|
48
49
|
$legend-padding: rem-calc(0 3) !default;
|
|
49
50
|
|
|
50
51
|
// We use these to style the prefix and postfix input elements
|
|
51
|
-
$input-prefix-bg: scale-color(
|
|
52
|
-
$input-prefix-border-color: scale-color(
|
|
52
|
+
$input-prefix-bg: scale-color($white, $lightness: -5%) !default;
|
|
53
|
+
$input-prefix-border-color: scale-color($white, $lightness: -20%) !default;
|
|
53
54
|
$input-prefix-border-size: 1px !default;
|
|
54
55
|
$input-prefix-border-type: solid !default;
|
|
55
56
|
$input-prefix-overflow: hidden !default;
|
|
56
|
-
$input-prefix-font-color:
|
|
57
|
-
$input-prefix-font-color-alt:
|
|
57
|
+
$input-prefix-font-color: $oil !default;
|
|
58
|
+
$input-prefix-font-color-alt: $white !default;
|
|
59
|
+
|
|
60
|
+
// We use this setting to turn on/off HTML5 number spinners (the up/down arrows)
|
|
61
|
+
$input-number-spinners: true !default;
|
|
58
62
|
|
|
59
63
|
// We use these to style the error states for inputs and labels
|
|
60
64
|
$input-error-message-padding: rem-calc(6 9 9) !default;
|
|
@@ -62,15 +66,15 @@ $input-error-message-top: -1px !default;
|
|
|
62
66
|
$input-error-message-font-size: rem-calc(12) !default;
|
|
63
67
|
$input-error-message-font-weight: $font-weight-normal !default;
|
|
64
68
|
$input-error-message-font-style: italic !default;
|
|
65
|
-
$input-error-message-font-color:
|
|
66
|
-
$input-error-message-font-color-alt:
|
|
69
|
+
$input-error-message-font-color: $white !default;
|
|
70
|
+
$input-error-message-font-color-alt: $oil !default;
|
|
67
71
|
|
|
68
72
|
// We use this to style the glowing effect of inputs when focused
|
|
69
73
|
$glowing-effect-fade-time: 0.45s !default;
|
|
70
74
|
$glowing-effect-color: $input-focus-border-color !default;
|
|
71
75
|
|
|
72
76
|
// Select variables
|
|
73
|
-
$select-bg-color:
|
|
77
|
+
$select-bg-color: $ghost !default;
|
|
74
78
|
$select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
75
79
|
|
|
76
80
|
//
|
|
@@ -126,9 +130,19 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
126
130
|
border-color: $input-focus-border-color;
|
|
127
131
|
outline: none;
|
|
128
132
|
}
|
|
133
|
+
// Disbaled Styles
|
|
134
|
+
&:disabled {
|
|
135
|
+
background-color: $input-disabled-bg;
|
|
136
|
+
cursor: $input-disabled-cursor;
|
|
137
|
+
}
|
|
129
138
|
|
|
130
139
|
// Disabled background input background color
|
|
131
|
-
&[disabled],
|
|
140
|
+
&[disabled],
|
|
141
|
+
&[readonly],
|
|
142
|
+
fieldset[disabled] & {
|
|
143
|
+
background-color: $input-disabled-bg;
|
|
144
|
+
cursor: $input-disabled-cursor;
|
|
145
|
+
}
|
|
132
146
|
}
|
|
133
147
|
|
|
134
148
|
// @MIXIN
|
|
@@ -181,7 +195,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
181
195
|
// @MIXIN
|
|
182
196
|
//
|
|
183
197
|
// We use this mixin to create prefix label styles
|
|
184
|
-
// $bg - Default:$input-prefix-bg || scale-color(
|
|
198
|
+
// $bg - Default:$input-prefix-bg || scale-color($white, $lightness: -5%) !default;
|
|
185
199
|
// $is-button - Toggle position settings if prefix is a button. Default:false
|
|
186
200
|
//
|
|
187
201
|
@mixin prefix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) {
|
|
@@ -215,7 +229,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
215
229
|
// @MIXIN
|
|
216
230
|
//
|
|
217
231
|
// We use this mixin to create postfix label styles
|
|
218
|
-
// $bg - Default:$input-prefix-bg || scale-color(
|
|
232
|
+
// $bg - Default:$input-prefix-bg || scale-color($white, $lightness: -5%) !default;
|
|
219
233
|
// $is-button - Toggle position settings if prefix is a button. Default: false
|
|
220
234
|
@mixin postfix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) {
|
|
221
235
|
|
|
@@ -305,10 +319,17 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
305
319
|
// We use this mixin to style select elements
|
|
306
320
|
@mixin form-select {
|
|
307
321
|
-webkit-appearance: none !important;
|
|
322
|
+
-webkit-border-radius: 0px;
|
|
308
323
|
background-color: $select-bg-color;
|
|
309
|
-
|
|
324
|
+
|
|
325
|
+
// The custom arrow have some fake horizontal padding so we can align it
|
|
326
|
+
// from the right side of the element without relying on CSS3
|
|
327
|
+
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+);
|
|
328
|
+
|
|
329
|
+
// We can safely use leftmost and rightmost now
|
|
330
|
+
background-position: if($text-direction == 'rtl', 0%, 100%) center;
|
|
331
|
+
|
|
310
332
|
background-repeat: no-repeat;
|
|
311
|
-
background-position: if($text-direction == 'rtl', 3%, 97%) center;
|
|
312
333
|
border: $input-border-width $input-border-style $input-border-color;
|
|
313
334
|
padding: $form-spacing / 2;
|
|
314
335
|
font-size: $input-font-size;
|
|
@@ -320,6 +341,23 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
320
341
|
background-color: $select-hover-bg-color;
|
|
321
342
|
border-color: $input-focus-border-color;
|
|
322
343
|
}
|
|
344
|
+
// Disbaled Styles
|
|
345
|
+
&:disabled {
|
|
346
|
+
background-color: $input-disabled-bg;
|
|
347
|
+
cursor: $input-disabled-cursor;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
// We use this mixin to turn on/off HTML5 number spinners
|
|
352
|
+
@mixin html5number($browser, $on:true) {
|
|
353
|
+
@if $on==false {
|
|
354
|
+
@if $browser==webkit {
|
|
355
|
+
-webkit-appearance: none;
|
|
356
|
+
margin: 0;
|
|
357
|
+
} @else if $browser==moz {
|
|
358
|
+
-moz-appearance: textfield;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
323
361
|
}
|
|
324
362
|
|
|
325
363
|
@include exports("form") {
|
|
@@ -345,10 +383,6 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
345
383
|
display:none;
|
|
346
384
|
}
|
|
347
385
|
|
|
348
|
-
@-moz-document url-prefix() {
|
|
349
|
-
select { background: $select-bg-color; }
|
|
350
|
-
select:hover { background: $select-hover-bg-color }
|
|
351
|
-
}
|
|
352
386
|
/* Attach elements to the beginning or end of an input */
|
|
353
387
|
.prefix,
|
|
354
388
|
.postfix { @include prefix-postfix-base; }
|
|
@@ -363,12 +397,8 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
363
397
|
.postfix.button.round { @include radius(0); @include side-radius($opposite-direction, $button-round); }
|
|
364
398
|
|
|
365
399
|
/* Separate prefix and postfix styles when on span or label so buttons keep their own */
|
|
366
|
-
span.prefix,label.prefix { @include prefix();
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
span.postfix,label.postfix { @include postfix();
|
|
370
|
-
&.radius { @include radius(0); @include side-radius($opposite-direction, $global-radius); }
|
|
371
|
-
}
|
|
400
|
+
span.prefix,label.prefix { @include prefix(); }
|
|
401
|
+
span.postfix,label.postfix { @include postfix(); }
|
|
372
402
|
|
|
373
403
|
/* We use this to get basic styling on all basic form elements */
|
|
374
404
|
input[type="text"],
|
|
@@ -384,8 +414,10 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
384
414
|
input[type="tel"],
|
|
385
415
|
input[type="time"],
|
|
386
416
|
input[type="url"],
|
|
417
|
+
input[type="color"],
|
|
387
418
|
textarea {
|
|
388
419
|
-webkit-appearance: none;
|
|
420
|
+
-webkit-border-radius: 0px;
|
|
389
421
|
@include form-element;
|
|
390
422
|
@if $input-include-glowing-effect == false {
|
|
391
423
|
@include single-transition(all, 0.15s, linear);
|
|
@@ -395,8 +427,38 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
395
427
|
}
|
|
396
428
|
}
|
|
397
429
|
|
|
430
|
+
form {
|
|
431
|
+
.row {
|
|
432
|
+
.prefix-radius.row.collapse {
|
|
433
|
+
input,
|
|
434
|
+
textarea,
|
|
435
|
+
select { @include radius(0); @include side-radius($opposite-direction, $button-radius); }
|
|
436
|
+
.prefix { @include radius(0); @include side-radius($default-float, $button-radius); }
|
|
437
|
+
}
|
|
438
|
+
.postfix-radius.row.collapse {
|
|
439
|
+
input,
|
|
440
|
+
textarea,
|
|
441
|
+
select { @include radius(0); @include side-radius($default-float, $button-radius); }
|
|
442
|
+
.postfix { @include radius(0); @include side-radius($opposite-direction, $button-radius); }
|
|
443
|
+
}
|
|
444
|
+
.prefix-round.row.collapse {
|
|
445
|
+
input,
|
|
446
|
+
textarea,
|
|
447
|
+
select { @include radius(0); @include side-radius($opposite-direction, $button-round); }
|
|
448
|
+
.prefix { @include radius(0); @include side-radius($default-float, $button-round); }
|
|
449
|
+
}
|
|
450
|
+
.postfix-round.row.collapse {
|
|
451
|
+
input,
|
|
452
|
+
textarea,
|
|
453
|
+
select { @include radius(0); @include side-radius($default-float, $button-round); }
|
|
454
|
+
.postfix { @include radius(0); @include side-radius($opposite-direction, $button-round); }
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
|
|
398
459
|
input[type="submit"] {
|
|
399
460
|
-webkit-appearance: none;
|
|
461
|
+
-webkit-border-radius: 0px;
|
|
400
462
|
}
|
|
401
463
|
|
|
402
464
|
/* Respect enforced amount of rows for textarea */
|
|
@@ -432,6 +494,15 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
432
494
|
width:100%;
|
|
433
495
|
}
|
|
434
496
|
|
|
497
|
+
/* HTML5 Number spinners settings */
|
|
498
|
+
input[type=number] {
|
|
499
|
+
@include html5number(moz, $input-number-spinners)
|
|
500
|
+
}
|
|
501
|
+
input[type="number"]::-webkit-inner-spin-button,
|
|
502
|
+
input[type="number"]::-webkit-outer-spin-button {
|
|
503
|
+
@include html5number(webkit, $input-number-spinners);
|
|
504
|
+
}
|
|
505
|
+
|
|
435
506
|
/* We add basic fieldset styling */
|
|
436
507
|
fieldset {
|
|
437
508
|
@include fieldset;
|
|
@@ -440,7 +511,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
440
511
|
/* Error Handling */
|
|
441
512
|
|
|
442
513
|
#{data('abide')} {
|
|
443
|
-
.error small.error, span.error, small.error {
|
|
514
|
+
.error small.error, .error span.error, span.error, small.error {
|
|
444
515
|
@include form-error-message;
|
|
445
516
|
}
|
|
446
517
|
span.error, small.error { display: none; }
|
|
@@ -490,7 +561,8 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
|
|
490
561
|
}
|
|
491
562
|
|
|
492
563
|
input.error,
|
|
493
|
-
textarea.error
|
|
564
|
+
textarea.error,
|
|
565
|
+
select.error {
|
|
494
566
|
margin-bottom: 0;
|
|
495
567
|
}
|
|
496
568
|
label.error { @include form-label-error-color; }
|