what-input 5.2.12 → 6.0.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.
@@ -1,229 +0,0 @@
1
- .container {
2
- box-sizing: content-box;
3
- font-size: 14px;
4
- line-height: 1.4;
5
- margin: 0 auto;
6
- max-width: $container-width;
7
- padding: 0 ($unit * 2);
8
-
9
- @media (min-width: 800px) {
10
- padding: 0 ($unit * 3);
11
- }
12
- }
13
-
14
- .lede {
15
- font-size: 20px;
16
- font-weight: 300;
17
- line-height: ($unit * 4);
18
-
19
- @media (min-width: 800px) {
20
- font-size: 22px;
21
- }
22
- }
23
-
24
- .well {
25
- @include clearfix;
26
-
27
- background-color: #f5f5f5;
28
- border: 1px solid #e3e3e3;
29
- border-radius: 4px;
30
- margin: ($unit * 3) 0;
31
- padding: ($unit * 3);
32
- }
33
-
34
- .well-row {
35
- @media (min-width: 800px) {
36
- display: flex;
37
- margin-left: ($unit * -3);
38
- }
39
- }
40
-
41
- .well-column {
42
- @include null-margins;
43
-
44
- @media (max-width: 799px) {
45
- + .well-column {
46
- border-top: 1px solid #ccc;
47
- margin-top: ($unit * 4);
48
- padding-top: ($unit * 3);
49
- }
50
- }
51
-
52
- @media (min-width: 800px) {
53
- padding-left: ($unit * 3);
54
- width: 50%;
55
- }
56
-
57
- button {
58
- appearance: none;
59
- background-color: #337ab7;
60
- border: 1px solid #2e6da4;
61
- border-radius: 4px;
62
- color: #fff;
63
- cursor: pointer;
64
- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
65
- font-size: 14px;
66
- font-weight: 400;
67
- margin: 0;
68
- padding: $unit ($unit * 2);
69
- text-align: center;
70
- transition: all 0.2s ease;
71
-
72
- @include hover {
73
- background-color: #286090;
74
- border-color: #204d74;
75
- }
76
- }
77
-
78
- label {
79
- color: #333;
80
- display: block;
81
- font-size: 14px;
82
- font-weight: 700;
83
- line-height: ($unit * 3);
84
- }
85
-
86
- p {
87
- margin: ($unit * 2) 0;
88
-
89
- &.checkbox label {
90
- font-weight: 400;
91
- }
92
- }
93
-
94
- input {
95
- &:not([type='submit']):not([type='checkbox']):not([type='radio']) {
96
- @include input-style-base;
97
-
98
- box-shadow: inset 0 1px 1px rgba(#000, 0.075);
99
- transition: all 0.2s ease;
100
-
101
- @include placeholder {
102
- color: #999;
103
- }
104
-
105
- [data-whatintent='mouse'] &:focus {
106
- border-color: #31708f;
107
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
108
- 0 0 8px rgba(49, 112, 143, 0.6);
109
- }
110
-
111
- [data-whatinput='touch'] &:focus {
112
- border-color: #8a6d3b;
113
- }
114
- }
115
- }
116
-
117
- select {
118
- @include input-style-base;
119
-
120
- background-image: url(../images/select-arrow.svg);
121
- background-position: calc(100% - 10px) 50%;
122
- background-repeat: no-repeat;
123
- background-size: 10px 6px;
124
- padding-right: 30px;
125
-
126
- [data-whatintent='mouse'] &:focus {
127
- border-color: #31708f;
128
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
129
- 0 0 8px rgba(49, 112, 143, 0.6);
130
- }
131
-
132
- [data-whatinput='touch'] &:focus {
133
- border-color: #8a6d3b;
134
- }
135
-
136
- @media (min-width: 800px) {
137
- min-width: 50%;
138
- width: auto;
139
- }
140
-
141
- // hide arrow in IE
142
- &::-ms-expand {
143
- display: none;
144
- }
145
- }
146
-
147
- textarea {
148
- @include input-style-base;
149
-
150
- box-shadow: inset 0 1px 1px rgba(#000, 0.075);
151
- height: 5em;
152
- padding-bottom: $unit;
153
- padding-top: $unit;
154
- transition: all 0.2s ease;
155
-
156
- [data-whatinput='touch'] &:focus {
157
- border-color: #8a6d3b;
158
- }
159
-
160
- [data-whatintent='mouse'] &:focus {
161
- border-color: #31708f;
162
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
163
- 0 0 8px rgba(49, 112, 143, 0.6);
164
- }
165
- }
166
- }
167
-
168
- .list-group {
169
- list-style: none;
170
- padding: 0;
171
- }
172
-
173
- .list-group-item {
174
- &:first-child a {
175
- border-radius: 4px 4px 0 0;
176
- }
177
-
178
- &:last-child a {
179
- border-bottom: 1px solid #ddd;
180
- border-radius: 0 0 4px 4px;
181
- }
182
-
183
- a {
184
- @include a11y-focus;
185
-
186
- background-color: #fff;
187
- border: 1px solid #ddd;
188
- border-bottom: none;
189
- color: #555;
190
- display: block;
191
- padding: ($unit * 2) ($unit * 2);
192
- text-decoration: none;
193
- transition: all 0.2s ease;
194
-
195
- @include hover {
196
- background-color: #f5f5f5;
197
- }
198
-
199
- &:active,
200
- &:focus {
201
- position: relative;
202
- }
203
- }
204
- }
205
-
206
- footer {
207
- @include clearfix;
208
-
209
- font-size: 14px;
210
- margin: ($unit * 4) 0;
211
-
212
- p {
213
- margin: 0;
214
- }
215
-
216
- .text-love {
217
- color: #a94442;
218
- }
219
-
220
- .pull-left {
221
- float: left;
222
- margin: 0;
223
- }
224
-
225
- .pull-right {
226
- float: right;
227
- margin: 0;
228
- }
229
- }
@@ -1,70 +0,0 @@
1
- @mixin clearfix {
2
- &::after {
3
- clear: both;
4
- content: '';
5
- display: table;
6
- }
7
- }
8
-
9
- @mixin null-margins {
10
- > :first-child {
11
- margin-top: 0 !important;
12
- }
13
-
14
- > :last-child {
15
- margin-bottom: 0 !important;
16
- }
17
- }
18
-
19
- @mixin hover {
20
- &:focus,
21
- &:hover {
22
- @content;
23
- }
24
- }
25
-
26
- @mixin a11y-focus {
27
- &:active,
28
- &:focus {
29
- box-shadow: 0 0 0 3px orange !important;
30
- outline: none !important;
31
- }
32
-
33
- [data-whatintent='mouse'] &:active,
34
- [data-whatintent='mouse'] &:focus,
35
- [data-whatintent='touch'] &:active,
36
- [data-whatintent='touch'] &:focus {
37
- box-shadow: none !important;
38
- }
39
- }
40
-
41
- @mixin input-style-base {
42
- appearance: none;
43
- background-color: #fff;
44
- border: 1px solid #ccc;
45
- border-radius: 4px;
46
- color: #555;
47
- font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
48
- font-size: 16px;
49
- height: ($unit * 4);
50
- margin: 0;
51
- padding: 0 $unit;
52
- width: 100%;
53
- }
54
-
55
- @mixin placeholder {
56
- &::-webkit-input-placeholder {
57
- // Chrome/Opera/Safari
58
- @content;
59
- }
60
-
61
- &::-moz-placeholder {
62
- // Firefox 19+
63
- @content;
64
- }
65
-
66
- &:-ms-input-placeholder {
67
- // IE 10+
68
- @content;
69
- }
70
- }
@@ -1,2 +0,0 @@
1
- $unit: 8px;
2
- $container-width: 1100px;
@@ -1,51 +0,0 @@
1
- @import 'variables';
2
- @import 'mixins';
3
- @import 'html';
4
- @import 'layout';
5
-
6
- /*
7
- * what-input styles
8
- */
9
-
10
- // indicator
11
- .input-indicator,
12
- .input-intent {
13
- border-radius: 3px;
14
- display: inline-block;
15
- padding: 0 3px;
16
- transition: all 0.2s ease;
17
- }
18
-
19
- [data-whatinput='mouse'] .input-indicator.-mouse,
20
- [data-whatintent='mouse'] .input-intent.-mouse {
21
- background-color: rgba(#337ab7, 0.2);
22
- box-shadow: 0 0 0 1px rgba(#337ab7, 0.3);
23
- color: #337ab7;
24
- }
25
-
26
- [data-whatinput='keyboard'] .input-indicator.-keyboard,
27
- [data-whatintent='keyboard'] .input-intent.-keyboard {
28
- background-color: rgba(orange, 0.1);
29
- box-shadow: 0 0 0 1px rgba(orange, 0.3);
30
- color: orange;
31
- }
32
-
33
- [data-whatinput='touch'] .input-indicator.-touch,
34
- [data-whatintent='touch'] .input-intent.-touch {
35
- background-color: rgba(#8a6d3b, 0.1);
36
- box-shadow: 0 0 0 1px rgba(#8a6d3b, 0.3);
37
- color: #8a6d3b;
38
- }
39
-
40
- // suppress focus outline for mouse and touch
41
- [data-whatintent='mouse'],
42
- [data-whatintent='touch'] {
43
- *:focus {
44
- outline: none;
45
- }
46
- }
47
-
48
- // divs or sections with `tabindex`
49
- html:not([data-whatinput='keyboard']) div:focus {
50
- outline: none;
51
- }