persistentgrid 0.0.1.beta.1
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.
- data/README.md +5 -0
- data/lib/persistentgrid.rb +4 -0
- data/scss/pg/_helpers.scss +7 -0
- data/scss/pg/base/_all.scss +9 -0
- data/scss/pg/base/_behavior.scss +10 -0
- data/scss/pg/base/_helpers.scss +9 -0
- data/scss/pg/base/_settings.scss +10 -0
- data/scss/pg/base/baserules/_all.scss +8 -0
- data/scss/pg/base/baserules/_behavior.scss +125 -0
- data/scss/pg/base/baserules/_settings.scss +39 -0
- data/scss/pg/base/reset/_all.scss +9 -0
- data/scss/pg/base/reset/_behavior.scss +108 -0
- data/scss/pg/base/reset/_helpers.scss +7 -0
- data/scss/pg/base/reset/_settings.scss +27 -0
- data/scss/pg/base/reset/helpers/_all.scss +7 -0
- data/scss/pg/base/reset/helpers/_mixins.scss +395 -0
- data/scss/pg/base/typography/_all.scss +9 -0
- data/scss/pg/base/typography/_behavior.scss +31 -0
- data/scss/pg/base/typography/_helpers.scss +7 -0
- data/scss/pg/base/typography/_settings.scss +52 -0
- data/scss/pg/base/typography/helpers/_all.scss +8 -0
- data/scss/pg/base/typography/helpers/_functions.scss +160 -0
- data/scss/pg/base/typography/helpers/_mixins.scss +121 -0
- data/scss/pg/grid/_all.scss +9 -0
- data/scss/pg/grid/_behavior.scss +51 -0
- data/scss/pg/grid/_helpers.scss +8 -0
- data/scss/pg/grid/_settings.scss +48 -0
- data/scss/pg/grid/helpers/_functions.scss +140 -0
- data/scss/pg/grid/helpers/_mixins.scss +247 -0
- data/scss/pg/helpers/_all.scss +11 -0
- data/scss/pg/helpers/_colors.scss +163 -0
- data/scss/pg/helpers/_fonts.scss +21 -0
- data/scss/pg/helpers/_functions.scss +91 -0
- data/scss/pg/helpers/_mixins.scss +7 -0
- data/scss/pg/helpers/_settings.scss +11 -0
- data/scss/pg/helpers/fonts/_bree-serif.scss +27 -0
- data/scss/pg/helpers/fonts/_example.scss +47 -0
- data/scss/pg/helpers/fonts/_lato.scss +36 -0
- data/scss/pg/helpers/fonts/_monospace.scss +43 -0
- data/scss/pg/helpers/fonts/_raleway.scss +35 -0
- data/scss/pg/helpers/fonts/_righteous.scss +27 -0
- data/scss/pg/helpers/fonts/_roboto.scss +38 -0
- data/scss/pg/helpers/fonts/_sans-serif.scss +43 -0
- data/scss/pg/helpers/fonts/_serif.scss +43 -0
- data/scss/pg/helpers/fonts/_sofia-pro.scss +44 -0
- data/scss/pg/helpers/fonts/_varela-round.scss +28 -0
- data/scss/pg/helpers/fonts/icon-fonts/_fontawesome.scss +34 -0
- data/scss/pg/helpers/fonts/icon-fonts/_foundation-accessability.scss +76 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_bootstrap.scss +84 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_core.scss +129 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_extras.scss +93 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_icons.scss +381 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_mixins.scss +48 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_path.scss +14 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_variables.scss +734 -0
- data/scss/pg/helpers/fonts/icon-fonts/foundation-accessability/_settings.scss +28 -0
- data/scss/pg/helpers/library/_lists.scss +462 -0
- data/scss/pg/helpers/mixins/_all.scss +15 -0
- data/scss/pg/helpers/mixins/_anchors.scss +125 -0
- data/scss/pg/helpers/mixins/_baseline.scss +53 -0
- data/scss/pg/helpers/mixins/_breakpoints.scss +35 -0
- data/scss/pg/helpers/mixins/_content.scss +19 -0
- data/scss/pg/helpers/mixins/_css-triangle.scss +70 -0
- data/scss/pg/helpers/mixins/_elements.scss +106 -0
- data/scss/pg/helpers/mixins/_module.scss +327 -0
- data/scss/pg/helpers/mixins/_text.scss +87 -0
- data/scss/pg/helpers/mixins/_units.scss +67 -0
- data/scss/pg/helpers/settings/_all.scss +7 -0
- data/scss/pg/helpers/settings/_breakpoints.scss +21 -0
- data/scss/pg/modules/_all.scss +9 -0
- data/scss/pg/modules/_behavior.scss +13 -0
- data/scss/pg/modules/_helpers.scss +13 -0
- data/scss/pg/modules/_settings.scss +13 -0
- data/scss/pg/modules/accordions/_all.scss +8 -0
- data/scss/pg/modules/accordions/_behavior.scss +5 -0
- data/scss/pg/modules/accordions/_helpers.scss +5 -0
- data/scss/pg/modules/accordions/_settings.scss +4 -0
- data/scss/pg/modules/buttons/_all.scss +8 -0
- data/scss/pg/modules/buttons/_behavior.scss +89 -0
- data/scss/pg/modules/buttons/_helpers.scss +7 -0
- data/scss/pg/modules/buttons/_settings.scss +153 -0
- data/scss/pg/modules/buttons/helpers/_mixins.scss +33 -0
- data/scss/pg/modules/forms/_all.scss +8 -0
- data/scss/pg/modules/forms/_behavior.bak.scss +215 -0
- data/scss/pg/modules/forms/_behavior.scss +215 -0
- data/scss/pg/modules/forms/_helpers.scss +8 -0
- data/scss/pg/modules/forms/_settings.scss +10 -0
- data/scss/pg/modules/forms/helpers/_mixins.scss +94 -0
- data/scss/pg/modules/forms/settings/forms.scss +19 -0
- data/scss/pg/modules/forms/settings/input.scss +256 -0
- data/scss/pg/modules/forms/settings/labels.scss +101 -0
- data/scss/pg/modules/lists/_all.scss +9 -0
- data/scss/pg/modules/lists/_behavior.scss +99 -0
- data/scss/pg/modules/lists/_helpers.scss +11 -0
- data/scss/pg/modules/lists/_settings.scss +49 -0
- data/scss/pg/modules/tables/_all.scss +8 -0
- data/scss/pg/modules/tables/_behavior.scss +79 -0
- data/scss/pg/modules/tables/_helpers.scss +7 -0
- data/scss/pg/modules/tables/_settings.scss +69 -0
- data/scss/pg/modules/tables/helpers/_mixins.scss +9 -0
- data/scss/pg/modules/tabs/_all.scss +8 -0
- data/scss/pg/modules/tabs/_behavior.scss +77 -0
- data/scss/pg/modules/tabs/_helpers.scss +7 -0
- data/scss/pg/modules/tabs/_settings.scss +8 -0
- data/scss/pg/modules/tabs/helpers/_mixins.scss +4 -0
- data/scss/pg/skins/_crossinghippos.scss +8 -0
- data/scss/pg/skins/crossinghippos/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/_behavior.scss +10 -0
- data/scss/pg/skins/crossinghippos/_helpers.scss +8 -0
- data/scss/pg/skins/crossinghippos/_settings.scss +9 -0
- data/scss/pg/skins/crossinghippos/buttons/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/buttons/_behavior.scss +25 -0
- data/scss/pg/skins/crossinghippos/buttons/_helpers.scss +7 -0
- data/scss/pg/skins/crossinghippos/buttons/_settings.scss +50 -0
- data/scss/pg/skins/crossinghippos/forms/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/forms/_base.scss +7 -0
- data/scss/pg/skins/crossinghippos/forms/_behavior.scss +259 -0
- data/scss/pg/skins/crossinghippos/forms/_settings.scss +29 -0
- data/scss/pg/skins/crossinghippos/linkbar/_all.scss +8 -0
- data/scss/pg/skins/crossinghippos/linkbar/_behavior.scss +73 -0
- data/scss/pg/skins/crossinghippos/linkbar/_helpers.scss +5 -0
- data/scss/pg/skins/crossinghippos/linkbar/_settings.scss +27 -0
- data/templates/base/manifest.rb +15 -0
- data/templates/base/screen.scss +39 -0
- data/templates/grid/manifest.rb +15 -0
- data/templates/grid/screen.scss +36 -0
- data/templates/modules/manifest.rb +15 -0
- data/templates/modules/screen.scss +44 -0
- metadata +210 -0
@@ -0,0 +1,215 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
|
8
|
+
// ==========================================================================
|
9
|
+
// Placeholders
|
10
|
+
// ==========================================================================
|
11
|
+
|
12
|
+
/*
|
13
|
+
* Field styles
|
14
|
+
*/
|
15
|
+
%#{$input-field-class} {
|
16
|
+
/*
|
17
|
+
* Box-model treatments
|
18
|
+
*/
|
19
|
+
width: $input-width;
|
20
|
+
@include box-sizing(border-box);
|
21
|
+
@include inline-block(baseline);
|
22
|
+
@include module-margin($input-margin-top $input-margin-right $input-margin-bottom $input-margin-left);
|
23
|
+
@include module-padding($input-padding-top $input-padding-right $input-padding-bottom $input-padding-left);
|
24
|
+
@include column-spacing;
|
25
|
+
@include module-border($input-border);
|
26
|
+
@include module-border-radius($input-border-radius);
|
27
|
+
@include module-background($input-background);
|
28
|
+
|
29
|
+
@include input-shadow($input-shadow);
|
30
|
+
|
31
|
+
/*
|
32
|
+
* Font and text treatments
|
33
|
+
*/
|
34
|
+
@include module-type($input-type);
|
35
|
+
@include module-property($label-text-color, 'color');
|
36
|
+
@include module-property($label-text-align, 'text-align');
|
37
|
+
@include module-property($label-text-decoration, 'text-decoration');
|
38
|
+
@include module-text-shadow($label-text-shadow);
|
39
|
+
|
40
|
+
&:focus {
|
41
|
+
@extend %is-#{$input-field-class}-focus;
|
42
|
+
}
|
43
|
+
@include placeholder()
|
44
|
+
{
|
45
|
+
color: $color-primary;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
/*
|
50
|
+
* Field focus styles
|
51
|
+
*/
|
52
|
+
%is-#{$input-field-class}-focus {
|
53
|
+
|
54
|
+
@include module-border($input-focussed-border);
|
55
|
+
@include module-border-radius($input-focussed-border-radius);
|
56
|
+
@include module-background($input-focussed-background);
|
57
|
+
@include input-shadow($input-focussed-shadow);
|
58
|
+
@include module-outline($input-focussed-outline-border, $input-focussed-outline-offset);
|
59
|
+
// -webkit-tap-highlight-color: rgba(0,0,0,0);
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
// ==========================================================================
|
65
|
+
// Fields
|
66
|
+
// ==========================================================================
|
67
|
+
|
68
|
+
.#{$input-field-class}
|
69
|
+
{
|
70
|
+
@extend %#{$input-field-class};
|
71
|
+
}
|
72
|
+
|
73
|
+
select,
|
74
|
+
textarea,
|
75
|
+
input[type="date"],
|
76
|
+
input[type="datetime"],
|
77
|
+
input[type="datetime-local"],
|
78
|
+
input[type="email"],
|
79
|
+
input[type="month"],
|
80
|
+
input[type="number"],
|
81
|
+
input[type="password"],
|
82
|
+
input[type="search"],
|
83
|
+
input[type="tel"],
|
84
|
+
input[type="text"],
|
85
|
+
input[type="time"],
|
86
|
+
input[type="url"],
|
87
|
+
input[type="week"]
|
88
|
+
{
|
89
|
+
}
|
90
|
+
|
91
|
+
/*
|
92
|
+
* Override some properties for the search field
|
93
|
+
*/
|
94
|
+
.#{$input-search-class} {
|
95
|
+
// Not sure why this needs to be repeated
|
96
|
+
@include box-sizing(border-box);
|
97
|
+
@if $input-search-border-radius != $input-border-radius {
|
98
|
+
@include border-radius($input-search-border-radius);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
/*
|
103
|
+
* Override some properties for the color field
|
104
|
+
*/
|
105
|
+
.#{$input-color-class} {
|
106
|
+
@if $input-color-width {
|
107
|
+
width: $input-color-width;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
/*
|
112
|
+
* Override some properties for the range field
|
113
|
+
*/
|
114
|
+
.#{$input-range-class} {
|
115
|
+
@if $input-range-width {
|
116
|
+
width: $input-range-width;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
/*
|
121
|
+
* Override some properties for the range and color field
|
122
|
+
*/
|
123
|
+
.#{$input-color-class},
|
124
|
+
.#{$input-range-class} {
|
125
|
+
padding: 0;
|
126
|
+
height: vertical-rhythm($input-type-rhythm) + $input-padding-top + $input-padding-bottom;
|
127
|
+
}
|
128
|
+
|
129
|
+
.#{$input-check-class} {
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
// ==========================================================================
|
134
|
+
// Select and Datalists
|
135
|
+
// ==========================================================================
|
136
|
+
|
137
|
+
.#{$select-dropdown-class} {
|
138
|
+
optgroup,
|
139
|
+
option {
|
140
|
+
@include module-padding($input-padding);
|
141
|
+
@include column-spacing;
|
142
|
+
font-weight: inherit;
|
143
|
+
font-style: inherit;
|
144
|
+
font-variant: inherit;
|
145
|
+
font-family: inherit;
|
146
|
+
font-size: inherit;
|
147
|
+
line-height: inherit;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
.#{$select-dropdown-class} {
|
152
|
+
@extend %#{$input-field-class};
|
153
|
+
@if $select-appearance-default {
|
154
|
+
@include reset-appearance(menulist);
|
155
|
+
height: vertical-rhythm($input-type-rhythm) + $input-padding-top + $input-padding-bottom;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
@if $select-webkit {
|
159
|
+
.webkit {
|
160
|
+
.#{$select-dropdown-class} {
|
161
|
+
background: $input-background-color url('/assets/images/icons/icon-sort.svg') no-repeat 1% center;
|
162
|
+
background-size: 10px auto;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
// ==========================================================================
|
168
|
+
// Textarea
|
169
|
+
// ==========================================================================
|
170
|
+
|
171
|
+
.#{$textarea-class} {
|
172
|
+
@extend %#{$input-field-class};
|
173
|
+
&.large {
|
174
|
+
height: vertical-rhythm(10);
|
175
|
+
}
|
176
|
+
&.medium {
|
177
|
+
height: vertical-rhythm(6);
|
178
|
+
}
|
179
|
+
&.small {
|
180
|
+
height: vertical-rhythm(2);
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
|
185
|
+
// ==========================================================================
|
186
|
+
// Labels
|
187
|
+
// ==========================================================================
|
188
|
+
|
189
|
+
|
190
|
+
.#{$label-base-class} {
|
191
|
+
@include inline-block(baseline);
|
192
|
+
width: $input-width;
|
193
|
+
@include inline-block(baseline);
|
194
|
+
@include module-margin($label-margin);
|
195
|
+
@include module-padding($label-padding);
|
196
|
+
@include module-border($label-border);
|
197
|
+
@include module-border-radius($label-border-radius);
|
198
|
+
@include module-background($label-background);
|
199
|
+
@include module-shadow($label-shadow);
|
200
|
+
|
201
|
+
@include module-type($label-type);
|
202
|
+
@include module-property($label-text-color, 'color');
|
203
|
+
@include module-property($label-text-align, 'text-align');
|
204
|
+
@include module-property($label-text-decoration, 'text-decoration');
|
205
|
+
@include module-text-shadow($label-text-shadow);
|
206
|
+
}
|
207
|
+
|
208
|
+
|
209
|
+
// ==========================================================================
|
210
|
+
// Legends
|
211
|
+
// ==========================================================================
|
212
|
+
|
213
|
+
.#{$legend-class} {
|
214
|
+
@extend .#{$label-base-class};
|
215
|
+
}
|
@@ -0,0 +1,215 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
|
8
|
+
// ==========================================================================
|
9
|
+
// Placeholders
|
10
|
+
// ==========================================================================
|
11
|
+
|
12
|
+
/*
|
13
|
+
* Field styles
|
14
|
+
*/
|
15
|
+
%#{$input-field-class} {
|
16
|
+
/*
|
17
|
+
* Box-model treatments
|
18
|
+
*/
|
19
|
+
width: $input-width;
|
20
|
+
@include box-sizing(border-box);
|
21
|
+
@include inline-block(baseline);
|
22
|
+
@include module-margin($input-margin);
|
23
|
+
@include module-padding($input-padding);
|
24
|
+
@include column-spacing;
|
25
|
+
@include module-border($input-border);
|
26
|
+
@include module-border-radius($input-border-radius);
|
27
|
+
@include module-background($input-background);
|
28
|
+
|
29
|
+
@include input-shadow($input-shadow);
|
30
|
+
|
31
|
+
/*
|
32
|
+
* Font and text treatments
|
33
|
+
*/
|
34
|
+
@include module-type($input-type);
|
35
|
+
@include module-property($input-text-color, 'color');
|
36
|
+
@include module-property($input-text-align, 'text-align');
|
37
|
+
@include module-property($input-text-decoration, 'text-decoration');
|
38
|
+
@include module-text-shadow($input-text-shadow);
|
39
|
+
|
40
|
+
&:focus {
|
41
|
+
@extend %is-#{$input-field-class}-focus;
|
42
|
+
}
|
43
|
+
@include placeholder()
|
44
|
+
{
|
45
|
+
color: $color-primary;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
/*
|
50
|
+
* Field focus styles
|
51
|
+
*/
|
52
|
+
%is-#{$input-field-class}-focus {
|
53
|
+
|
54
|
+
@include module-border($input-focussed-border);
|
55
|
+
@include module-border-radius($input-focussed-border-radius);
|
56
|
+
@include module-background($input-focussed-background);
|
57
|
+
@include input-shadow($input-focussed-shadow);
|
58
|
+
@include module-outline($input-focussed-outline-border, $input-focussed-outline-offset);
|
59
|
+
// -webkit-tap-highlight-color: rgba(0,0,0,0);
|
60
|
+
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
// ==========================================================================
|
65
|
+
// Fields
|
66
|
+
// ==========================================================================
|
67
|
+
|
68
|
+
.#{$input-field-class}
|
69
|
+
{
|
70
|
+
@extend %#{$input-field-class};
|
71
|
+
}
|
72
|
+
|
73
|
+
select,
|
74
|
+
textarea,
|
75
|
+
input[type="date"],
|
76
|
+
input[type="datetime"],
|
77
|
+
input[type="datetime-local"],
|
78
|
+
input[type="email"],
|
79
|
+
input[type="month"],
|
80
|
+
input[type="number"],
|
81
|
+
input[type="password"],
|
82
|
+
input[type="search"],
|
83
|
+
input[type="tel"],
|
84
|
+
input[type="text"],
|
85
|
+
input[type="time"],
|
86
|
+
input[type="url"],
|
87
|
+
input[type="week"]
|
88
|
+
{
|
89
|
+
}
|
90
|
+
|
91
|
+
/*
|
92
|
+
* Override some properties for the search field
|
93
|
+
*/
|
94
|
+
.#{$input-search-class} {
|
95
|
+
// Not sure why this needs to be repeated
|
96
|
+
@include box-sizing(border-box);
|
97
|
+
@if $input-search-border-radius != $input-border-radius {
|
98
|
+
@include border-radius($input-search-border-radius);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
/*
|
103
|
+
* Override some properties for the color field
|
104
|
+
*/
|
105
|
+
.#{$input-color-class} {
|
106
|
+
@if $input-color-width {
|
107
|
+
width: $input-color-width;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
/*
|
112
|
+
* Override some properties for the range field
|
113
|
+
*/
|
114
|
+
.#{$input-range-class} {
|
115
|
+
@if $input-range-width {
|
116
|
+
width: $input-range-width;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
/*
|
121
|
+
* Override some properties for the range and color field
|
122
|
+
*/
|
123
|
+
.#{$input-color-class},
|
124
|
+
.#{$input-range-class} {
|
125
|
+
padding: 0;
|
126
|
+
height: vertical-rhythm($input-type-rhythm) + $input-padding-top + $input-padding-bottom;
|
127
|
+
}
|
128
|
+
|
129
|
+
.#{$input-check-class} {
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
// ==========================================================================
|
134
|
+
// Select and Datalists
|
135
|
+
// ==========================================================================
|
136
|
+
|
137
|
+
.#{$select-dropdown-class} {
|
138
|
+
optgroup,
|
139
|
+
option {
|
140
|
+
@include module-padding($input-padding);
|
141
|
+
@include column-spacing;
|
142
|
+
font-weight: inherit;
|
143
|
+
font-style: inherit;
|
144
|
+
font-variant: inherit;
|
145
|
+
font-family: inherit;
|
146
|
+
font-size: inherit;
|
147
|
+
line-height: inherit;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
.#{$select-dropdown-class} {
|
152
|
+
@extend %#{$input-field-class};
|
153
|
+
@if $select-appearance-default {
|
154
|
+
@include reset-appearance(menulist);
|
155
|
+
height: vertical-rhythm($input-type-rhythm) + $input-padding-top + $input-padding-bottom;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
@if $select-webkit {
|
159
|
+
.webkit {
|
160
|
+
.#{$select-dropdown-class} {
|
161
|
+
background: $input-background-color url('/assets/images/icons/icon-sort.svg') no-repeat 1% center;
|
162
|
+
background-size: 10px auto;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
// ==========================================================================
|
168
|
+
// Textarea
|
169
|
+
// ==========================================================================
|
170
|
+
|
171
|
+
.#{$textarea-class} {
|
172
|
+
@extend %#{$input-field-class};
|
173
|
+
&.large {
|
174
|
+
height: vertical-rhythm(10);
|
175
|
+
}
|
176
|
+
&.medium {
|
177
|
+
height: vertical-rhythm(6);
|
178
|
+
}
|
179
|
+
&.small {
|
180
|
+
height: vertical-rhythm(2);
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
|
185
|
+
// ==========================================================================
|
186
|
+
// Labels
|
187
|
+
// ==========================================================================
|
188
|
+
|
189
|
+
|
190
|
+
.#{$label-base-class} {
|
191
|
+
@include inline-block(baseline);
|
192
|
+
width: $input-width;
|
193
|
+
@include inline-block(baseline);
|
194
|
+
@include module-margin($label-margin);
|
195
|
+
@include module-padding($label-padding);
|
196
|
+
@include module-border($label-border);
|
197
|
+
@include module-border-radius($label-border-radius);
|
198
|
+
@include module-background($label-background);
|
199
|
+
@include module-shadow($label-shadow);
|
200
|
+
|
201
|
+
@include module-type($label-type);
|
202
|
+
@include module-property($label-text-color, 'color');
|
203
|
+
@include module-property($label-text-align, 'text-align');
|
204
|
+
@include module-property($label-text-decoration, 'text-decoration');
|
205
|
+
@include module-text-shadow($label-text-shadow);
|
206
|
+
}
|
207
|
+
|
208
|
+
|
209
|
+
// ==========================================================================
|
210
|
+
// Legends
|
211
|
+
// ==========================================================================
|
212
|
+
|
213
|
+
.#{$legend-class} {
|
214
|
+
@extend .#{$label-base-class};
|
215
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
|
8
|
+
@import "settings/input";
|
9
|
+
@import "settings/labels";
|
10
|
+
@import "settings/forms";
|
@@ -0,0 +1,94 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
|
8
|
+
// ==========================================================================
|
9
|
+
// Mixin input-shadow
|
10
|
+
// ==========================================================================
|
11
|
+
// a valid text-shadow notation is: inset|outset offset-x offset-y blur color
|
12
|
+
//
|
13
|
+
// @param $appearance: a string
|
14
|
+
// ==========================================================================
|
15
|
+
@mixin input-shadow($shadow: $input-shadow){
|
16
|
+
@if $shadow {
|
17
|
+
@include module-shadow($shadow);
|
18
|
+
@include reset-appearance(none);
|
19
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
// ==========================================================================
|
25
|
+
// Mixin appearance
|
26
|
+
// ==========================================================================
|
27
|
+
// Accepts a string which a valid appearance
|
28
|
+
//
|
29
|
+
// @param $appearance: a string
|
30
|
+
// ==========================================================================
|
31
|
+
@mixin reset-appearance($appearance)
|
32
|
+
{
|
33
|
+
@include reset-webkit-appearance($appearance);
|
34
|
+
@include reset-mozilla-appearance($appearance);
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
// ==========================================================================
|
39
|
+
// Mixin Webkit appearance
|
40
|
+
// ==========================================================================
|
41
|
+
// Accepts a string which a valid appearance
|
42
|
+
//
|
43
|
+
// @param $appearance: a string
|
44
|
+
// ==========================================================================
|
45
|
+
@mixin reset-webkit-appearance($appearance)
|
46
|
+
{
|
47
|
+
-webkit-appearance: $appearance; /* mobile firefox too! */
|
48
|
+
}
|
49
|
+
|
50
|
+
|
51
|
+
// ==========================================================================
|
52
|
+
// Mixin Mozilla appearance
|
53
|
+
// ==========================================================================
|
54
|
+
// Accepts a string which a valid appearance
|
55
|
+
//
|
56
|
+
// @param $appearance: a string
|
57
|
+
// ==========================================================================
|
58
|
+
@mixin reset-mozilla-appearance($appearance)
|
59
|
+
{
|
60
|
+
-moz-appearance: $appearance; /* mobile firefox too! */
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
// ==========================================================================
|
65
|
+
// Mixin placeholder
|
66
|
+
// ==========================================================================
|
67
|
+
// Yields @content
|
68
|
+
//
|
69
|
+
// @param $appearance: a set of CSS property declarations
|
70
|
+
// ==========================================================================
|
71
|
+
@mixin placeholder()
|
72
|
+
{
|
73
|
+
&::-webkit-input-placeholder,
|
74
|
+
&:-moz-placeholder,
|
75
|
+
&::-moz-placeholder,
|
76
|
+
&:-ms-placeholder {
|
77
|
+
@content;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
// ==========================================================================
|
83
|
+
// Mixin webkit-remove-padding-spin-button
|
84
|
+
// ==========================================================================
|
85
|
+
// Yields @content
|
86
|
+
//
|
87
|
+
// ==========================================================================
|
88
|
+
@mixin webkit-remove-padding-spin-button {
|
89
|
+
|
90
|
+
&::-webkit-inner-spin-button,
|
91
|
+
&::-webkit-outer-spin-button {
|
92
|
+
@include reset-webkit-appearance(none);
|
93
|
+
}
|
94
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
// /**
|
2
|
+
// * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
|
3
|
+
// * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
|
4
|
+
// */
|
5
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
|
8
|
+
// ==========================================================================
|
9
|
+
// Form base class
|
10
|
+
// ==========================================================================
|
11
|
+
|
12
|
+
$form-base-class: "form" !default;
|
13
|
+
|
14
|
+
|
15
|
+
// ==========================================================================
|
16
|
+
// Legend properties
|
17
|
+
// ==========================================================================
|
18
|
+
|
19
|
+
$legend-class: 'legend' !default;
|