locomotivecms_wagon 2.2.0.beta1 → 2.2.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/generators/blank/config/metafields_schema.yml +1 -1
- data/generators/bootstrap/config/metafields_schema.yml +1 -1
- data/generators/{foundation5 → foundation}/Gemfile.tt +1 -1
- data/generators/{foundation5 → foundation}/Guardfile +0 -0
- data/generators/foundation/app/content_types/.gitkeep +0 -0
- data/generators/foundation/app/views/pages/404.liquid +11 -0
- data/generators/{foundation5 → foundation}/app/views/pages/404.liquid.haml +4 -3
- data/generators/{foundation5 → foundation}/app/views/pages/index.liquid +54 -78
- data/generators/foundation/app/views/pages/index.liquid.haml +144 -0
- data/generators/foundation/app/views/snippets/.gitkeep +0 -0
- data/generators/{foundation5 → foundation}/config/deploy.yml +2 -1
- data/generators/{foundation5 → foundation}/config/metafields_schema.yml +1 -1
- data/generators/{foundation5/config/site.yml.tt → foundation/config/site.yml} +2 -2
- data/generators/{foundation5 → foundation}/config/translations.yml +0 -0
- data/generators/foundation/data/.gitkeep +0 -0
- data/generators/foundation/log/.gitkeep +0 -0
- data/generators/foundation/public/images/.gitkeep +0 -0
- data/generators/foundation/public/javascripts/app.js +1 -0
- data/generators/foundation/public/javascripts/vendor/foundation.js +7472 -0
- data/generators/foundation/public/javascripts/vendor/foundation.min.js +3 -0
- data/generators/foundation/public/javascripts/vendor/what-input.js +212 -0
- data/generators/foundation/public/javascripts/vendor/what-input.min.js +1 -0
- data/generators/foundation/public/stylesheets/_settings.scss +529 -0
- data/generators/foundation/public/stylesheets/app.css +3 -0
- data/generators/foundation/public/stylesheets/app.scss +43 -0
- data/generators/foundation/public/stylesheets/foundation.css +3499 -0
- data/generators/foundation/public/stylesheets/foundation6/_global.scss +197 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_accordion-menu.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_accordion.scss +112 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_badge.scss +55 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_breadcrumbs.scss +94 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_button-group.scss +115 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_button.scss +264 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_callout.scss +115 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_close-button.scss +61 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_drilldown.scss +67 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_dropdown-menu.scss +123 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_dropdown.scss +64 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_flex-video.scss +68 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_float.scss +27 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_label.scss +56 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_media-object.scss +74 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_menu.scss +213 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_off-canvas.scss +170 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_orbit.scss +186 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_pagination.scss +161 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_progress-bar.scss +83 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_reveal.scss +155 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_slider.scss +158 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_sticky.scss +38 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_switch.scss +231 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_table.scss +212 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_tabs.scss +137 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_thumbnail.scss +54 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_title-bar.scss +44 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_tooltip.scss +110 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_top-bar.scss +57 -0
- data/generators/foundation/public/stylesheets/foundation6/components/_visibility.scss +131 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_checkbox.scss +36 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_error.scss +81 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_fieldset.scss +53 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_forms.scss +32 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_help-text.scss +30 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_input-group.scss +70 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_label.scss +48 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_select.scss +64 -0
- data/generators/foundation/public/stylesheets/foundation6/forms/_text.scss +153 -0
- data/generators/foundation/public/stylesheets/foundation6/foundation.scss +91 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_classes.scss +132 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_column.scss +112 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_flex-grid.scss +191 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_grid.scss +33 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_gutter.scss +31 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_layout.scss +32 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_position.scss +71 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_row.scss +72 -0
- data/generators/foundation/public/stylesheets/foundation6/grid/_size.scss +24 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/_classes.scss +102 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/_settings.scss +61 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_fade.scss +29 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_hinge.scss +65 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_shake.scss +15 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_slide.scss +41 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_spin.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_wiggle.scss +13 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/effects/_zoom.scss +15 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/motion-ui.scss +29 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_fade.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_hinge.scss +43 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_slide.scss +42 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_spin.scss +39 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/transitions/_zoom.scss +39 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_animation.scss +7 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_args.scss +15 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_keyframe.scss +136 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_selector.scss +23 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_series.scss +54 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_transition.scss +45 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui/util/_unit.scss +7 -0
- data/generators/foundation/public/stylesheets/foundation6/motion-ui.scss +4 -0
- data/generators/foundation/public/stylesheets/foundation6/settings/_settings.scss +531 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_alignment.scss +21 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_base.scss +436 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_helpers.scss +77 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_print.scss +73 -0
- data/generators/foundation/public/stylesheets/foundation6/typography/_typography.scss +28 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_breakpoint.scss +182 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_color.scss +41 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_mixins.scss +190 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_selector.scss +39 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_unit.scss +69 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_util.scss +15 -0
- data/generators/foundation/public/stylesheets/foundation6/util/_value.scss +117 -0
- data/generators/{foundation5/public/stylesheets/normalize.css.scss → foundation/public/stylesheets/foundation6/vendor/normalize.scss} +8 -11
- data/generators/site_metafields/schema.yml.tt +1 -1
- data/lib/locomotive/wagon/commands/push_command.rb +1 -0
- data/lib/locomotive/wagon/commands/serve_command.rb +1 -0
- data/lib/locomotive/wagon/decorators/concerns/persist_assets_concern.rb +3 -3
- data/lib/locomotive/wagon/decorators/content_type_decorator.rb +5 -1
- data/lib/locomotive/wagon/generators/site/{foundation5.rb → foundation.rb} +8 -12
- data/lib/locomotive/wagon/generators/site.rb +1 -1
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +3 -2
- data/spec/fixtures/cassettes/authenticate.yml +38 -38
- data/spec/fixtures/cassettes/delete.yml +211 -211
- data/spec/fixtures/cassettes/push.yml +1333 -1374
- data/spec/integration/cli_spec.rb +1 -1
- data/spec/unit/decorators/content_entry_decorator_spec.rb +23 -0
- metadata +133 -104
- data/generators/foundation5/app/content_types/.empty_directory +0 -1
- data/generators/foundation5/app/views/pages/404.liquid +0 -10
- data/generators/foundation5/app/views/pages/index.liquid.haml +0 -157
- data/generators/foundation5/data/.empty_directory +0 -1
- data/generators/foundation5/icon.png +0 -0
- data/generators/foundation5/public/fonts/.empty_directory +0 -1
- data/generators/foundation5/public/images/.empty_directory +0 -1
- data/generators/foundation5/public/javascripts/foundation/foundation.abide.js +0 -299
- data/generators/foundation5/public/javascripts/foundation/foundation.accordion.js +0 -59
- data/generators/foundation5/public/javascripts/foundation/foundation.alert.js +0 -43
- data/generators/foundation5/public/javascripts/foundation/foundation.clearing.js +0 -534
- data/generators/foundation5/public/javascripts/foundation/foundation.dropdown.js +0 -311
- data/generators/foundation5/public/javascripts/foundation/foundation.equalizer.js +0 -74
- data/generators/foundation5/public/javascripts/foundation/foundation.interchange.js +0 -331
- data/generators/foundation5/public/javascripts/foundation/foundation.joyride.js +0 -843
- data/generators/foundation5/public/javascripts/foundation/foundation.js +0 -611
- data/generators/foundation5/public/javascripts/foundation/foundation.magellan.js +0 -178
- data/generators/foundation5/public/javascripts/foundation/foundation.offcanvas.js +0 -108
- data/generators/foundation5/public/javascripts/foundation/foundation.orbit.js +0 -610
- data/generators/foundation5/public/javascripts/foundation/foundation.reveal.js +0 -437
- data/generators/foundation5/public/javascripts/foundation/foundation.slider.js +0 -199
- data/generators/foundation5/public/javascripts/foundation/foundation.tab.js +0 -167
- data/generators/foundation5/public/javascripts/foundation/foundation.tooltip.js +0 -298
- data/generators/foundation5/public/javascripts/foundation/foundation.topbar.js +0 -425
- data/generators/foundation5/public/javascripts/foundation.js +0 -4161
- data/generators/foundation5/public/javascripts/foundation.min.js +0 -10
- data/generators/foundation5/public/javascripts/vendor/custom.modernizr.js +0 -4
- data/generators/foundation5/public/javascripts/vendor/custom.modernizr.min.js +0 -1
- data/generators/foundation5/public/javascripts/vendor/fastclick.js +0 -9
- data/generators/foundation5/public/javascripts/vendor/fastclick.min.js +0 -11
- data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.js +0 -645
- data/generators/foundation5/public/javascripts/vendor/jquery.autocomplete.min.js +0 -1
- data/generators/foundation5/public/javascripts/vendor/jquery.cookie.js +0 -8
- data/generators/foundation5/public/javascripts/vendor/jquery.cookie.min.js +0 -8
- data/generators/foundation5/public/javascripts/vendor/jquery.js +0 -26
- data/generators/foundation5/public/javascripts/vendor/jquery.min.js +0 -27
- data/generators/foundation5/public/javascripts/vendor/modernizr.js +0 -8
- data/generators/foundation5/public/javascripts/vendor/modernizr.min.js +0 -1
- data/generators/foundation5/public/javascripts/vendor/placeholder.js +0 -2
- data/generators/foundation5/public/javascripts/vendor/placeholder.min.js +0 -1
- data/generators/foundation5/public/samples/.empty_directory +0 -1
- data/generators/foundation5/public/stylesheets/application.css +0 -2
- data/generators/foundation5/public/stylesheets/application.css.scss +0 -3
- data/generators/foundation5/public/stylesheets/foundation/_functions.scss +0 -102
- data/generators/foundation5/public/stylesheets/foundation/_settings.scss +0 -1441
- data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +0 -157
- data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +0 -128
- data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +0 -132
- data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
- data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +0 -197
- data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +0 -259
- data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +0 -247
- data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
- data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +0 -262
- data/generators/foundation5/public/stylesheets/foundation/components/_flex-video.scss +0 -51
- data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +0 -585
- data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +0 -460
- data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +0 -275
- data/generators/foundation5/public/stylesheets/foundation/components/_icon-bar.scss +0 -293
- data/generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss +0 -57
- data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +0 -222
- data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +0 -61
- data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +0 -106
- data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +0 -34
- data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +0 -513
- data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +0 -368
- data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +0 -162
- data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +0 -95
- data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +0 -150
- data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +0 -79
- data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +0 -168
- data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +0 -222
- data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +0 -116
- data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +0 -191
- data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +0 -123
- data/generators/foundation5/public/stylesheets/foundation/components/_switches.scss +0 -230
- data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +0 -135
- data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +0 -123
- data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +0 -66
- data/generators/foundation5/public/stylesheets/foundation/components/_toolbar.scss +0 -70
- data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +0 -142
- data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +0 -685
- data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +0 -525
- data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +0 -408
- data/generators/foundation5/public/stylesheets/foundation.css +0 -6138
- data/generators/foundation5/public/stylesheets/foundation.css.scss +0 -45
- data/generators/foundation5/public/stylesheets/normalize.css +0 -357
- data/lib/locomotive/wagon/generators/site/foundation4.rb +0 -34
@@ -1,585 +0,0 @@
|
|
1
|
-
// Foundation by ZURB
|
2
|
-
// foundation.zurb.com
|
3
|
-
// Licensed under MIT Open Source
|
4
|
-
|
5
|
-
@import "global";
|
6
|
-
@import "buttons";
|
7
|
-
|
8
|
-
//
|
9
|
-
// @variables
|
10
|
-
//
|
11
|
-
$include-html-form-classes: $include-html-classes !default;
|
12
|
-
|
13
|
-
// We use this to set the base for lots of form spacing and positioning styles
|
14
|
-
$form-spacing: rem-calc(16) !default;
|
15
|
-
|
16
|
-
// We use these to style the labels in different ways
|
17
|
-
$form-label-pointer: pointer !default;
|
18
|
-
$form-label-font-size: rem-calc(14) !default;
|
19
|
-
$form-label-font-weight: $font-weight-normal !default;
|
20
|
-
$form-label-line-height: 1.5 !default;
|
21
|
-
$form-label-font-color: scale-color($black, $lightness: 30%) !default;
|
22
|
-
$form-label-small-transform: capitalize !default;
|
23
|
-
$form-label-bottom-margin: 0 !default;
|
24
|
-
$input-font-family: inherit !default;
|
25
|
-
$input-font-color: rgba(0,0,0,0.75) !default;
|
26
|
-
$input-font-size: rem-calc(14) !default;
|
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
|
-
$input-border-style: solid !default;
|
32
|
-
$input-border-width: 1px !default;
|
33
|
-
$input-border-radius: $global-radius !default;
|
34
|
-
$input-disabled-bg: $gainsboro !default;
|
35
|
-
$input-disabled-cursor: $cursor-default-value !default;
|
36
|
-
$input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default;
|
37
|
-
$input-include-glowing-effect: true !default;
|
38
|
-
|
39
|
-
// We use these to style the fieldset border and spacing.
|
40
|
-
$fieldset-border-style: solid !default;
|
41
|
-
$fieldset-border-width: 1px !default;
|
42
|
-
$fieldset-border-color: $gainsboro !default;
|
43
|
-
$fieldset-padding: rem-calc(20) !default;
|
44
|
-
$fieldset-margin: rem-calc(18 0) !default;
|
45
|
-
|
46
|
-
// We use these to style the legends when you use them
|
47
|
-
$legend-bg: $white !default;
|
48
|
-
$legend-font-weight: $font-weight-bold !default;
|
49
|
-
$legend-padding: rem-calc(0 3) !default;
|
50
|
-
|
51
|
-
// We use these to style the prefix and postfix input elements
|
52
|
-
$input-prefix-bg: scale-color($white, $lightness: -5%) !default;
|
53
|
-
$input-prefix-border-color: scale-color($white, $lightness: -20%) !default;
|
54
|
-
$input-prefix-border-size: 1px !default;
|
55
|
-
$input-prefix-border-type: solid !default;
|
56
|
-
$input-prefix-overflow: hidden !default;
|
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;
|
62
|
-
|
63
|
-
// We use these to style the error states for inputs and labels
|
64
|
-
$input-error-message-padding: rem-calc(6 9 9) !default;
|
65
|
-
$input-error-message-top: -1px !default;
|
66
|
-
$input-error-message-font-size: rem-calc(12) !default;
|
67
|
-
$input-error-message-font-weight: $font-weight-normal !default;
|
68
|
-
$input-error-message-font-style: italic !default;
|
69
|
-
$input-error-message-font-color: $white !default;
|
70
|
-
$input-error-message-font-color-alt: $oil !default;
|
71
|
-
|
72
|
-
// We use this to style the glowing effect of inputs when focused
|
73
|
-
$glowing-effect-fade-time: 0.45s !default;
|
74
|
-
$glowing-effect-color: $input-focus-border-color !default;
|
75
|
-
|
76
|
-
// Select variables
|
77
|
-
$select-bg-color: $ghost !default;
|
78
|
-
$select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
|
79
|
-
|
80
|
-
//
|
81
|
-
// @MIXINS
|
82
|
-
//
|
83
|
-
|
84
|
-
// We use this mixin to give us form styles for rows inside of forms
|
85
|
-
@mixin form-row-base {
|
86
|
-
.row { margin: 0 ((-$form-spacing) / 2);
|
87
|
-
|
88
|
-
.column,
|
89
|
-
.columns { padding: 0 $form-spacing / 2; }
|
90
|
-
|
91
|
-
// Use this to collapse the margins of a form row
|
92
|
-
&.collapse { margin: 0;
|
93
|
-
|
94
|
-
.column,
|
95
|
-
.columns { padding: 0; }
|
96
|
-
input {
|
97
|
-
@include side-radius($opposite-direction, 0);
|
98
|
-
}
|
99
|
-
|
100
|
-
}
|
101
|
-
}
|
102
|
-
input.column,
|
103
|
-
input.columns,
|
104
|
-
textarea.column,
|
105
|
-
textarea.columns { padding-#{$default-float}: $form-spacing / 2; }
|
106
|
-
}
|
107
|
-
|
108
|
-
// @MIXIN
|
109
|
-
//
|
110
|
-
// We use this mixin to give all basic form elements their style
|
111
|
-
@mixin form-element {
|
112
|
-
background-color: $input-bg-color;
|
113
|
-
font-family: $input-font-family;
|
114
|
-
border: {
|
115
|
-
style: $input-border-style;
|
116
|
-
width: $input-border-width;
|
117
|
-
color: $input-border-color;
|
118
|
-
}
|
119
|
-
box-shadow: $input-box-shadow;
|
120
|
-
color: $input-font-color;
|
121
|
-
display: block;
|
122
|
-
font-size: $input-font-size;
|
123
|
-
margin: 0 0 $form-spacing 0;
|
124
|
-
padding: $form-spacing / 2;
|
125
|
-
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
126
|
-
width: 100%;
|
127
|
-
@include box-sizing(border-box);
|
128
|
-
@if $input-include-glowing-effect {
|
129
|
-
@include block-glowing-effect(focus, $glowing-effect-fade-time, $glowing-effect-color);
|
130
|
-
}
|
131
|
-
// Basic focus styles
|
132
|
-
&:focus {
|
133
|
-
background: $input-focus-bg-color;
|
134
|
-
border-color: $input-focus-border-color;
|
135
|
-
outline: none;
|
136
|
-
}
|
137
|
-
// Disbaled Styles
|
138
|
-
&:disabled {
|
139
|
-
background-color: $input-disabled-bg;
|
140
|
-
cursor: $input-disabled-cursor;
|
141
|
-
}
|
142
|
-
|
143
|
-
// Disabled background input background color
|
144
|
-
&[disabled],
|
145
|
-
&[readonly],
|
146
|
-
fieldset[disabled] & {
|
147
|
-
background-color: $input-disabled-bg;
|
148
|
-
cursor: $input-disabled-cursor;
|
149
|
-
}
|
150
|
-
}
|
151
|
-
|
152
|
-
// @MIXIN
|
153
|
-
//
|
154
|
-
// We use this mixin to create form labels
|
155
|
-
//
|
156
|
-
// $alignment - Alignment options. Default: false. Options: [right, inline, false]
|
157
|
-
// $base-style - Control whether or not the base styles come through. Default: true.
|
158
|
-
@mixin form-label($alignment:false, $base-style:true) {
|
159
|
-
|
160
|
-
// Control whether or not the base styles come through.
|
161
|
-
@if $base-style {
|
162
|
-
font-size: $form-label-font-size;
|
163
|
-
color: $form-label-font-color;
|
164
|
-
cursor: $form-label-pointer;
|
165
|
-
display: block;
|
166
|
-
font-weight: $form-label-font-weight;
|
167
|
-
line-height: $form-label-line-height;
|
168
|
-
margin-bottom: $form-label-bottom-margin;
|
169
|
-
}
|
170
|
-
|
171
|
-
// Alignment options
|
172
|
-
@if $alignment == right {
|
173
|
-
float: none !important;
|
174
|
-
text-align: right;
|
175
|
-
}
|
176
|
-
@else if $alignment == inline {
|
177
|
-
margin: 0 0 $form-spacing 0;
|
178
|
-
padding: $form-spacing / 2 + rem-calc($input-border-width) 0;
|
179
|
-
}
|
180
|
-
}
|
181
|
-
|
182
|
-
// We use this mixin to create postfix/prefix form Labels
|
183
|
-
@mixin prefix-postfix-base {
|
184
|
-
display: block;
|
185
|
-
position: relative;
|
186
|
-
z-index: 2;
|
187
|
-
text-align: center;
|
188
|
-
width: 100%;
|
189
|
-
padding-top: 0;
|
190
|
-
padding-bottom: 0;
|
191
|
-
border-style: $input-prefix-border-type;
|
192
|
-
border-width: $input-prefix-border-size;
|
193
|
-
overflow: $input-prefix-overflow;
|
194
|
-
font-size: $form-label-font-size;
|
195
|
-
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
196
|
-
line-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
197
|
-
}
|
198
|
-
|
199
|
-
// @MIXIN
|
200
|
-
//
|
201
|
-
// We use this mixin to create prefix label styles
|
202
|
-
// $bg - Default:$input-prefix-bg || scale-color($white, $lightness: -5%) !default;
|
203
|
-
// $is-button - Toggle position settings if prefix is a button. Default:false
|
204
|
-
//
|
205
|
-
@mixin prefix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) {
|
206
|
-
|
207
|
-
@if $bg {
|
208
|
-
$bg-lightness: lightness($bg);
|
209
|
-
background: $bg;
|
210
|
-
border-#{$opposite-direction}: none;
|
211
|
-
|
212
|
-
// Control the font color based on background brightness
|
213
|
-
@if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }
|
214
|
-
@else { color: $input-prefix-font-color-alt; }
|
215
|
-
}
|
216
|
-
|
217
|
-
@if $border {
|
218
|
-
border-color: $border;
|
219
|
-
}
|
220
|
-
|
221
|
-
@if $is-button {
|
222
|
-
padding-#{$default-float}: 0;
|
223
|
-
padding-#{$opposite-direction}: 0;
|
224
|
-
padding-top: 0;
|
225
|
-
padding-bottom: 0;
|
226
|
-
text-align: center;
|
227
|
-
line-height: rem-calc(34);
|
228
|
-
border: none;
|
229
|
-
}
|
230
|
-
|
231
|
-
}
|
232
|
-
|
233
|
-
// @MIXIN
|
234
|
-
//
|
235
|
-
// We use this mixin to create postfix label styles
|
236
|
-
// $bg - Default:$input-prefix-bg || scale-color($white, $lightness: -5%) !default;
|
237
|
-
// $is-button - Toggle position settings if prefix is a button. Default: false
|
238
|
-
@mixin postfix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) {
|
239
|
-
|
240
|
-
@if $bg {
|
241
|
-
$bg-lightness: lightness($bg);
|
242
|
-
background: $bg;
|
243
|
-
border-#{$default-float}: none;
|
244
|
-
|
245
|
-
// Control the font color based on background brightness
|
246
|
-
@if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; }
|
247
|
-
@else { color: $input-prefix-font-color-alt; }
|
248
|
-
}
|
249
|
-
|
250
|
-
@if $border {
|
251
|
-
border-color: $border;
|
252
|
-
}
|
253
|
-
|
254
|
-
@if $is-button {
|
255
|
-
padding-#{$default-float}: 0;
|
256
|
-
padding-#{$opposite-direction}: 0;
|
257
|
-
padding-top: 0;
|
258
|
-
padding-bottom: 0;
|
259
|
-
text-align: center;
|
260
|
-
line-height: rem-calc(34);
|
261
|
-
border: none;
|
262
|
-
}
|
263
|
-
|
264
|
-
}
|
265
|
-
|
266
|
-
// We use this mixin to style fieldsets
|
267
|
-
@mixin fieldset {
|
268
|
-
border: $fieldset-border-width $fieldset-border-style $fieldset-border-color;
|
269
|
-
padding: $fieldset-padding;
|
270
|
-
margin: $fieldset-margin;
|
271
|
-
|
272
|
-
// and legend styles
|
273
|
-
legend {
|
274
|
-
font-weight: $legend-font-weight;
|
275
|
-
background: $legend-bg;
|
276
|
-
padding: $legend-padding;
|
277
|
-
margin: 0;
|
278
|
-
margin-#{$default-float}: rem-calc(-3);
|
279
|
-
}
|
280
|
-
}
|
281
|
-
|
282
|
-
// @MIXIN
|
283
|
-
//
|
284
|
-
// We use this mixin to control border and background color of error inputs
|
285
|
-
// $color - Default: $alert-color (found in settings file)
|
286
|
-
@mixin form-error-color($color:$alert-color) {
|
287
|
-
border-color: $color;
|
288
|
-
background-color: rgba($color, 0.1);
|
289
|
-
|
290
|
-
// Go back to normal on focus
|
291
|
-
&:focus {
|
292
|
-
background: $input-focus-bg-color;
|
293
|
-
border-color: $input-focus-border-color;
|
294
|
-
}
|
295
|
-
}
|
296
|
-
|
297
|
-
// @MIXIN
|
298
|
-
//
|
299
|
-
// We use this simple mixin to style labels for error inputs
|
300
|
-
// $color - Default:$alert-color. Found in settings file
|
301
|
-
@mixin form-label-error-color($color:$alert-color) { color: $color; }
|
302
|
-
|
303
|
-
// @MIXIN
|
304
|
-
//
|
305
|
-
// We use this mixin to create error message styles
|
306
|
-
// $bg - Default: $alert-color (Found in settings file)
|
307
|
-
@mixin form-error-message($bg:$alert-color) {
|
308
|
-
display: block;
|
309
|
-
padding: $input-error-message-padding;
|
310
|
-
margin-top: $input-error-message-top;
|
311
|
-
margin-bottom: $form-spacing;
|
312
|
-
font-size: $input-error-message-font-size;
|
313
|
-
font-weight: $input-error-message-font-weight;
|
314
|
-
font-style: $input-error-message-font-style;
|
315
|
-
|
316
|
-
// We can control the text color based on the brightness of the background.
|
317
|
-
$bg-lightness: lightness($bg);
|
318
|
-
background: $bg;
|
319
|
-
@if $bg-lightness < 70% or $bg == yellow { color: $input-error-message-font-color; }
|
320
|
-
@else { color: $input-error-message-font-color-alt; }
|
321
|
-
}
|
322
|
-
|
323
|
-
// We use this mixin to style select elements
|
324
|
-
@mixin form-select {
|
325
|
-
-webkit-appearance: none !important;
|
326
|
-
-webkit-border-radius: 0px;
|
327
|
-
background-color: $select-bg-color;
|
328
|
-
|
329
|
-
// Hide the dropdown arrow shown in newer IE versions
|
330
|
-
&::-ms-expand {
|
331
|
-
display: none;
|
332
|
-
}
|
333
|
-
|
334
|
-
// The custom arrow have some fake horizontal padding so we can align it
|
335
|
-
// from the right side of the element without relying on CSS3
|
336
|
-
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+);
|
337
|
-
|
338
|
-
// We can safely use leftmost and rightmost now
|
339
|
-
background-position: if($text-direction == 'rtl', 0%, 100%) center;
|
340
|
-
|
341
|
-
background-repeat: no-repeat;
|
342
|
-
border: {
|
343
|
-
style: $input-border-style;
|
344
|
-
width: $input-border-width;
|
345
|
-
color: $input-border-color;
|
346
|
-
}
|
347
|
-
padding: $form-spacing / 2;
|
348
|
-
font-size: $input-font-size;
|
349
|
-
font-family: $body-font-family;
|
350
|
-
color: $input-font-color;
|
351
|
-
line-height: normal;
|
352
|
-
@include radius(0);
|
353
|
-
&.radius { @include radius($global-radius); }
|
354
|
-
&:hover {
|
355
|
-
background-color: $select-hover-bg-color;
|
356
|
-
border-color: $input-focus-border-color;
|
357
|
-
}
|
358
|
-
// Disabled Styles
|
359
|
-
&:disabled {
|
360
|
-
background-color: $input-disabled-bg;
|
361
|
-
cursor: $input-disabled-cursor;
|
362
|
-
}
|
363
|
-
}
|
364
|
-
|
365
|
-
// We use this mixin to turn on/off HTML5 number spinners
|
366
|
-
@mixin html5number($browser, $on:true) {
|
367
|
-
@if $on==false {
|
368
|
-
@if $browser==webkit {
|
369
|
-
-webkit-appearance: none;
|
370
|
-
margin: 0;
|
371
|
-
} @else if $browser==moz {
|
372
|
-
-moz-appearance: textfield;
|
373
|
-
}
|
374
|
-
}
|
375
|
-
}
|
376
|
-
|
377
|
-
@include exports("form") {
|
378
|
-
@if $include-html-form-classes {
|
379
|
-
/* Standard Forms */
|
380
|
-
form { margin: 0 0 $form-spacing; }
|
381
|
-
|
382
|
-
/* Using forms within rows, we need to set some defaults */
|
383
|
-
form .row { @include form-row-base; }
|
384
|
-
|
385
|
-
/* Label Styles */
|
386
|
-
label { @include form-label;
|
387
|
-
&.right { @include form-label(right,false); }
|
388
|
-
&.inline { @include form-label(inline,false); }
|
389
|
-
/* Styles for required inputs */
|
390
|
-
small {
|
391
|
-
text-transform: $form-label-small-transform;
|
392
|
-
color: scale-color($form-label-font-color, $lightness: 15%);
|
393
|
-
}
|
394
|
-
}
|
395
|
-
|
396
|
-
/* Attach elements to the beginning or end of an input */
|
397
|
-
.prefix,
|
398
|
-
.postfix { @include prefix-postfix-base; }
|
399
|
-
|
400
|
-
/* Adjust padding, alignment and radius if pre/post element is a button */
|
401
|
-
.postfix.button { @include button-size(false,false); @include postfix(false, false, true); }
|
402
|
-
.prefix.button { @include button-size(false,false); @include prefix(false, false, true); }
|
403
|
-
|
404
|
-
.prefix.button.radius { @include radius(0); @include side-radius($default-float, $button-radius); }
|
405
|
-
.postfix.button.radius { @include radius(0); @include side-radius($opposite-direction, $button-radius); }
|
406
|
-
.prefix.button.round { @include radius(0); @include side-radius($default-float, $button-round); }
|
407
|
-
.postfix.button.round { @include radius(0); @include side-radius($opposite-direction, $button-round); }
|
408
|
-
|
409
|
-
/* Separate prefix and postfix styles when on span or label so buttons keep their own */
|
410
|
-
span.prefix,label.prefix { @include prefix(); }
|
411
|
-
span.postfix,label.postfix { @include postfix(); }
|
412
|
-
|
413
|
-
/* We use this to get basic styling on all basic form elements */
|
414
|
-
input[type="text"],
|
415
|
-
input[type="password"],
|
416
|
-
input[type="date"],
|
417
|
-
input[type="datetime"],
|
418
|
-
input[type="datetime-local"],
|
419
|
-
input[type="month"],
|
420
|
-
input[type="week"],
|
421
|
-
input[type="email"],
|
422
|
-
input[type="number"],
|
423
|
-
input[type="search"],
|
424
|
-
input[type="tel"],
|
425
|
-
input[type="time"],
|
426
|
-
input[type="url"],
|
427
|
-
input[type="color"],
|
428
|
-
textarea {
|
429
|
-
-webkit-appearance: none;
|
430
|
-
-webkit-border-radius: 0px;
|
431
|
-
@include form-element;
|
432
|
-
@if $input-include-glowing-effect == false {
|
433
|
-
@include single-transition(all, 0.15s, linear);
|
434
|
-
}
|
435
|
-
&.radius {
|
436
|
-
@include radius($input-border-radius);
|
437
|
-
}
|
438
|
-
}
|
439
|
-
|
440
|
-
form {
|
441
|
-
.row {
|
442
|
-
.prefix-radius.row.collapse {
|
443
|
-
input,
|
444
|
-
textarea,
|
445
|
-
select { @include radius(0); @include side-radius($opposite-direction, $button-radius); }
|
446
|
-
.prefix { @include radius(0); @include side-radius($default-float, $button-radius); }
|
447
|
-
}
|
448
|
-
.postfix-radius.row.collapse {
|
449
|
-
input,
|
450
|
-
textarea,
|
451
|
-
select { @include radius(0); @include side-radius($default-float, $button-radius); }
|
452
|
-
.postfix { @include radius(0); @include side-radius($opposite-direction, $button-radius); }
|
453
|
-
}
|
454
|
-
.prefix-round.row.collapse {
|
455
|
-
input,
|
456
|
-
textarea,
|
457
|
-
select { @include radius(0); @include side-radius($opposite-direction, $button-round); }
|
458
|
-
.prefix { @include radius(0); @include side-radius($default-float, $button-round); }
|
459
|
-
}
|
460
|
-
.postfix-round.row.collapse {
|
461
|
-
input,
|
462
|
-
textarea,
|
463
|
-
select { @include radius(0); @include side-radius($default-float, $button-round); }
|
464
|
-
.postfix { @include radius(0); @include side-radius($opposite-direction, $button-round); }
|
465
|
-
}
|
466
|
-
}
|
467
|
-
}
|
468
|
-
|
469
|
-
input[type="submit"] {
|
470
|
-
-webkit-appearance: none;
|
471
|
-
-webkit-border-radius: 0px;
|
472
|
-
}
|
473
|
-
|
474
|
-
/* Respect enforced amount of rows for textarea */
|
475
|
-
textarea[rows] {
|
476
|
-
height: auto;
|
477
|
-
}
|
478
|
-
|
479
|
-
/* Not allow resize out of parent */
|
480
|
-
textarea {
|
481
|
-
max-width: 100%;
|
482
|
-
}
|
483
|
-
|
484
|
-
/* Add height value for select elements to match text input height */
|
485
|
-
select {
|
486
|
-
@include form-select;
|
487
|
-
height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1));
|
488
|
-
}
|
489
|
-
|
490
|
-
/* Adjust margin for form elements below */
|
491
|
-
input[type="file"],
|
492
|
-
input[type="checkbox"],
|
493
|
-
input[type="radio"],
|
494
|
-
select {
|
495
|
-
margin: 0 0 $form-spacing 0;
|
496
|
-
}
|
497
|
-
|
498
|
-
input[type="checkbox"] + label,
|
499
|
-
input[type="radio"] + label {
|
500
|
-
display: inline-block;
|
501
|
-
margin-#{$default-float}: $form-spacing * .5;
|
502
|
-
margin-#{$opposite-direction}: $form-spacing;
|
503
|
-
margin-bottom: 0;
|
504
|
-
vertical-align: baseline;
|
505
|
-
}
|
506
|
-
|
507
|
-
/* Normalize file input width */
|
508
|
-
input[type="file"] {
|
509
|
-
width:100%;
|
510
|
-
}
|
511
|
-
|
512
|
-
/* HTML5 Number spinners settings */
|
513
|
-
input[type=number] {
|
514
|
-
@include html5number(moz, $input-number-spinners)
|
515
|
-
}
|
516
|
-
input[type="number"]::-webkit-inner-spin-button,
|
517
|
-
input[type="number"]::-webkit-outer-spin-button {
|
518
|
-
@include html5number(webkit, $input-number-spinners);
|
519
|
-
}
|
520
|
-
|
521
|
-
/* We add basic fieldset styling */
|
522
|
-
fieldset {
|
523
|
-
@include fieldset;
|
524
|
-
}
|
525
|
-
|
526
|
-
/* Error Handling */
|
527
|
-
|
528
|
-
#{data('abide')} {
|
529
|
-
.error small.error, .error span.error, span.error, small.error {
|
530
|
-
@include form-error-message;
|
531
|
-
}
|
532
|
-
span.error, small.error { display: none; }
|
533
|
-
}
|
534
|
-
|
535
|
-
span.error, small.error {
|
536
|
-
@include form-error-message;
|
537
|
-
}
|
538
|
-
|
539
|
-
.error {
|
540
|
-
input,
|
541
|
-
textarea,
|
542
|
-
select {
|
543
|
-
margin-bottom: 0;
|
544
|
-
}
|
545
|
-
|
546
|
-
input[type="checkbox"],
|
547
|
-
input[type="radio"] {
|
548
|
-
margin-bottom: $form-spacing
|
549
|
-
}
|
550
|
-
|
551
|
-
label,
|
552
|
-
label.error {
|
553
|
-
@include form-label-error-color;
|
554
|
-
}
|
555
|
-
|
556
|
-
small.error {
|
557
|
-
@include form-error-message;
|
558
|
-
}
|
559
|
-
|
560
|
-
> label {
|
561
|
-
> small {
|
562
|
-
color: scale-color($form-label-font-color, $lightness: 15%);
|
563
|
-
background: transparent;
|
564
|
-
padding: 0;
|
565
|
-
text-transform: $form-label-small-transform;
|
566
|
-
font-style: normal;
|
567
|
-
font-size: 60%;
|
568
|
-
margin: 0;
|
569
|
-
display: inline;
|
570
|
-
}
|
571
|
-
}
|
572
|
-
|
573
|
-
span.error-message {
|
574
|
-
display: block;
|
575
|
-
}
|
576
|
-
}
|
577
|
-
|
578
|
-
input.error,
|
579
|
-
textarea.error,
|
580
|
-
select.error {
|
581
|
-
margin-bottom: 0;
|
582
|
-
}
|
583
|
-
label.error { @include form-label-error-color; }
|
584
|
-
}
|
585
|
-
}
|