moovui 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/chosen.jquery.js +111 -66
  3. data/app/assets/javascripts/foundation.tooltips.custom.js +10 -3
  4. data/app/assets/javascripts/jquery.placeholder.js +185 -0
  5. data/app/assets/javascripts/shBrushSass.js +4 -3
  6. data/app/assets/javascripts/shCore.custom.js +6 -0
  7. data/app/assets/stylesheets/bourbon/_bourbon-deprecated-upcoming.scss +1 -1
  8. data/app/assets/stylesheets/globals/_base.scss +4 -3
  9. data/app/assets/stylesheets/globals/_entypo.scss +4 -6
  10. data/app/assets/stylesheets/globals/_header.scss +8 -14
  11. data/app/assets/stylesheets/globals/_mixins.scss +7 -4
  12. data/app/assets/stylesheets/globals/_vars.scss +9 -9
  13. data/app/assets/stylesheets/modules/_accordion.scss +5 -6
  14. data/app/assets/stylesheets/modules/_actions.scss +3 -0
  15. data/app/assets/stylesheets/modules/{_notice.scss → _alert.scss} +32 -22
  16. data/app/assets/stylesheets/modules/_btn.scss +147 -37
  17. data/app/assets/stylesheets/modules/_btnbar.scss +16 -12
  18. data/app/assets/stylesheets/modules/_code.scss +15 -1
  19. data/app/assets/stylesheets/modules/_copy.scss +4 -1
  20. data/app/assets/stylesheets/modules/_definition.scss +15 -6
  21. data/app/assets/stylesheets/modules/_disabled.scss +12 -0
  22. data/app/assets/stylesheets/modules/_docs.scss +3 -79
  23. data/app/assets/stylesheets/modules/_dropdown.scss +2 -2
  24. data/app/assets/stylesheets/modules/_flex.scss +26 -18
  25. data/app/assets/stylesheets/modules/_grid.scss +14 -15
  26. data/app/assets/stylesheets/modules/_input.scss +21 -7
  27. data/app/assets/stylesheets/modules/_label.scss +29 -1
  28. data/app/assets/stylesheets/modules/_list.scss +2 -3
  29. data/app/assets/stylesheets/modules/_modal.scss +15 -11
  30. data/app/assets/stylesheets/modules/_pane.scss +58 -5
  31. data/app/assets/stylesheets/modules/_select.scss +96 -28
  32. data/app/assets/stylesheets/modules/_sidebar.scss +10 -10
  33. data/app/assets/stylesheets/modules/_syntax-highlighter.scss +12 -2
  34. data/app/assets/stylesheets/modules/_table.scss +117 -44
  35. data/app/assets/stylesheets/modules/_tabs.scss +56 -0
  36. data/app/assets/stylesheets/modules/_toggle.scss +121 -0
  37. data/app/assets/stylesheets/modules/_tooltip.scss +34 -17
  38. data/app/assets/stylesheets/moovui.scss +12 -3
  39. data/lib/moovui/version.rb +1 -1
  40. metadata +14 -11
  41. data/app/assets/stylesheets/fonts/TSTARPRO-BoldWeb.eot +0 -0
  42. data/app/assets/stylesheets/fonts/TSTARPRO-BoldWeb.woff +0 -0
@@ -1,89 +1,165 @@
1
+ @mixin btn-pressed {
2
+ @include box-shadow(rgba(#000, 0.2) 0 0 4px inset);
3
+ @include background-image(linear-gradient(tint(#f9f9f9, 20%) 1px, tint(#eaeaea, 20%)));
4
+ border-color: shade(#ccc, 10%) shade(#ccc, 10%) shade(#ccc, 5%);
5
+ }
6
+
1
7
  @mixin btn {
2
8
  @include appearance(none);
3
- @include background(linear-gradient(tint($gray, 25%), $gray));
4
- @include box-shadow(rgba(#000, 0.1) 0 1px, rgba(#fff, 0.5) 0 0 1px inset);
5
- @include radius;
6
- background-color: tint($gray, 10%);
7
- border: 1px solid shade($gray, 5%);
8
- color: #fff;
9
+ @include background(linear-gradient(#f9f9f9, #eaeaea));
10
+ @include border-radius(2px);
11
+ @include box-shadow(rgba(#000, 0.1) 0 1px 1px, #fff 0 1px inset);
12
+ -webkit-tap-highlight-color: rgba(#000, 0);
13
+ background-color: #f1f1f1;
14
+ border: 1px solid #ccc;
15
+ color: #777;
9
16
  display: inline-block;
10
- font: 11px/#{$line-height} $font;
11
- letter-spacing: 1px;
17
+ font: 12px/#{$line-height} $font;
18
+ font-weight: normal !important;
19
+ letter-spacing: 0.5px;
12
20
  margin: 0 0 $sp2;
13
- padding: 3px 10px;
21
+ padding: 2px 10px;
14
22
  position: relative;
15
23
  text-align: center;
16
24
  text-decoration: none;
17
- text-transform: uppercase;
25
+ text-shadow: #fff 0 1px;
18
26
  vertical-align: top;
19
27
  min-width: 40px;
20
- height: 32px;
28
+ height: 30px;
21
29
  &:not(:empty) {
22
30
  min-width: 100px;
23
31
  }
24
- &:hover {
25
- @include box-shadow(rgba(#000, 0.1) 0 1px);
26
- background: tint($darkgray, 15%);
27
- border-color: transparent;
28
- }
29
32
  &:active {
30
- @include box-shadow(rgba(#000, 0.2) 0 0 4px inset);
31
- background: $darkgray;
32
- border-color: shade($gray, 30%) shade($gray, 30%) shade($gray, 20%);
33
+ @include btn-pressed;
34
+ outline: 0;
35
+ }
36
+ &:disabled, &.disabled {
37
+ @include background-image(linear-gradient(#fcfcfc, #f4f4f4));
38
+ @include box-shadow(rgba(#000, 0.1) 0 1px 1px, #fff 0 1px inset);
39
+ border-color: #e0e0e0;
40
+ color: #b9b9b9;
41
+ }
42
+ &.disabled {
43
+ opacity: 1;
33
44
  }
34
45
  &[class*="icon-"]:before {
35
- font-size: 18px;
46
+ font-size: 17px;
47
+ margin-top: 1px;
36
48
  vertical-align: top;
37
49
  }
38
50
  &[class*="icon-"]:not(:empty):before {
39
- margin: 0 7px 0 0;
51
+ margin-right: 7px;
52
+ }
53
+ }
54
+
55
+ @mixin btn-color($color) {
56
+ @include background(linear-gradient(tint($color, 30%), $color));
57
+ @include box-shadow(rgba(#000, 0.1) 0 1px 1px, rgba(#fff, 0.4) 0 1px inset);
58
+ background-color: tint($color, 10%);
59
+ border: 1px solid shade($color, 5%);
60
+ color: #fff;
61
+ text-shadow: none;
62
+ &:hover {
63
+ background: $color;
64
+ }
65
+ &:active {
66
+ @include box-shadow(rgba(#000, 0.2) 0 0 4px inset);
67
+ background: shade($color, 5%);
68
+ border-color: shade($color, 30%) shade($color, 30%) shade($color, 20%);
69
+ }
70
+ &:disabled, &.disabled {
71
+ @include background-image(linear-gradient(mix(tint($color, 30%), #fff), mix($color, #fff)));
72
+ border-color: mix(shade($color, 5%), #fff);
73
+ }
74
+ &.disabled {
75
+ opacity: 1;
40
76
  }
41
77
  }
42
78
 
79
+ @mixin btn-action {
80
+ @include btn-color($green);
81
+ }
82
+
83
+
84
+ @mixin btn-danger {
85
+ @include btn-color($red);
86
+ }
87
+
88
+ @if $moovui-init {
89
+ @include keyframes(confirm) {
90
+ from {
91
+ background: #f1f1f1;
92
+ border-color: #f1f1f1;
93
+ }
94
+ to {
95
+ background: $green;
96
+ border-color: $green;
97
+ }
98
+ }
43
99
  @include keyframes(warn) {
44
100
  from {
45
- background: tint($gray, 10%);
101
+ background: #f1f1f1;
102
+ border-color: #f1f1f1;
46
103
  }
47
104
  to {
48
105
  background: shade($red, 10%);
106
+ border-color: shade($red, 10%);
49
107
  }
50
108
  }
109
+ }
51
110
 
52
- @mixin btn-action {
53
- @include background(linear-gradient(tint($green, 30%), $green));
54
- background-color: tint($green, 10%);
55
- border: 1px solid shade($green, 5%);
111
+ @mixin btn-confirm {
112
+ &:hover, &:active {
113
+ color: #fff;
114
+ text-shadow: none;
115
+ }
56
116
  &:hover {
117
+ @include animation(confirm 0.3s);
118
+ @include box-shadow(none);
57
119
  background: $green;
120
+ border-color: $green;
58
121
  }
59
122
  &:active {
60
- background: shade($green, 5%);
61
- border-color: shade($green, 30%) shade($green, 30%) shade($green, 20%);
123
+ @include box-shadow(none);
124
+ background: shade($green, 10%);
125
+ border-color: shade($green, 10%);
62
126
  }
63
127
  }
64
128
 
65
129
  @mixin btn-warning {
130
+ &:hover, &:active {
131
+ color: #fff;
132
+ text-shadow: none;
133
+ }
66
134
  &:hover {
67
- @include animation(warn 0.4s);
135
+ @include animation(warn 0.3s);
136
+ @include box-shadow(none);
68
137
  background: shade($red, 10%);
138
+ border-color: shade($red, 10%);
69
139
  }
70
140
  &:active {
141
+ @include box-shadow(none);
71
142
  background: shade($red, 20%);
72
- border-color: shade($red, 35%) shade($red, 35%) shade($red, 25%);
143
+ border-color: shade($red, 20%);
73
144
  }
74
145
  }
75
146
 
147
+ @mixin btn-active {
148
+ color: $green;
149
+ }
150
+
76
151
  @mixin btn-pill {
152
+ @include background-image(linear-gradient(#f9f9f9, #eaeaea));
77
153
  @include box-shadow(none);
78
154
  border: 0;
79
155
  padding: 0 10px;
80
- min-width: 0;
156
+ min-width: 0 !important;
81
157
  height: 24px;
82
158
  }
83
159
 
84
160
  @mixin btn-small {
85
161
  padding: 0 10px;
86
- min-width: 0;
162
+ min-width: 0 !important;
87
163
  height: 26px;
88
164
  &[class*="icon-"]:before {
89
165
  font-size: 15px;
@@ -99,11 +175,11 @@
99
175
  height: 40px;
100
176
  }
101
177
 
102
- .#{$moovui-prefix}btn.pill {
178
+ .#{$moovui-prefix}btn.#{$moovui-prefix}pill {
103
179
  @include btn-pill;
104
180
  }
105
181
 
106
- .#{$moovui-prefix}btn.small {
182
+ .#{$moovui-prefix}btn.#{$moovui-prefix}small {
107
183
  @include btn-small;
108
184
  }
109
185
 
@@ -111,20 +187,54 @@
111
187
  @include btn;
112
188
  }
113
189
 
114
- .#{$moovui-prefix}btn.big {
190
+ .#{$moovui-prefix}btn.#{$moovui-prefix}big {
115
191
  @include btn-big;
116
192
  }
117
193
 
118
- .#{$moovui-prefix}btn.action {
194
+ .#{$moovui-prefix}btn.#{$moovui-prefix}action {
119
195
  @include btn-action;
120
196
  }
121
197
 
122
- .#{$moovui-prefix}btn.warning {
198
+ .#{$moovui-prefix}btn.#{$moovui-prefix}danger {
199
+ @include btn-danger;
200
+ }
201
+
202
+ .#{$moovui-prefix}btn.#{$moovui-prefix}confirm {
203
+ @include btn-confirm;
204
+ }
205
+
206
+ .#{$moovui-prefix}btn.#{$moovui-prefix}warning {
123
207
  @include btn-warning;
124
208
  }
125
209
 
210
+ .#{$moovui-prefix}btn.#{$moovui-prefix}pressed {
211
+ @include btn-pressed;
212
+ }
213
+
214
+ .#{$moovui-prefix}btn.#{$moovui-prefix}active {
215
+ @include btn-active;
216
+ }
217
+
218
+ .#{$moovui-prefix}btn.#{$moovui-prefix}hide-text {
219
+ font: 0/0 a;
220
+ min-width: 0;
221
+ &:before {
222
+ line-height: $line-height;
223
+ margin-right: 0 !important;
224
+ }
225
+ }
226
+
227
+ th, td {
228
+ > .#{$moovui-prefix}btn {
229
+ margin-bottom: 0;
230
+ }
231
+ }
232
+
126
233
  @if $moovui-init {
127
234
  input[type="submit"], input[type="button"], button {
128
235
  @include btn;
236
+ th > &, td > & {
237
+ margin-bottom: 0;
238
+ }
129
239
  }
130
240
  }
@@ -1,9 +1,6 @@
1
1
  @mixin btnbar {
2
2
  @include clearfix;
3
3
  font-size: 0;
4
- li {
5
- display: inline;
6
- }
7
4
  input[type="submit"], input[type="button"], button, .#{$moovui-prefix}btn {
8
5
  @include border-radius(0);
9
6
  border-right-width: 0;
@@ -14,17 +11,24 @@
14
11
  @include border-radius(0 $radius $radius 0);
15
12
  border-right-width: 1px;
16
13
  }
17
- }
18
- .active {
19
- input[type="submit"], input[type="button"], button, .#{$moovui-prefix}btn {
20
- @include box-shadow(rgba(#000, 0.2) 0 0 4px inset);
21
- background: $darkgray;
22
- border-color: shade($gray, 30%) shade($gray, 30%) shade($gray, 20%);
14
+ &:pressed + *, &.pressed + * {
15
+ border-left-color: shade(#ccc, 10%);
23
16
  }
24
17
  }
25
- .active + * {
26
- input[type="submit"], input[type="button"], button, .#{$moovui-prefix}btn {
27
- border-left-color: shade($gray, 30%);
18
+ input[type="radio"] {
19
+ @include appearance(none);
20
+ margin: 0 -100px 0 0;
21
+ opacity: 0;
22
+ outline: none;
23
+ position: relative;
24
+ min-width: 100px;
25
+ height: 30px;
26
+ z-index: 1;
27
+ &:active + *, &:checked + * {
28
+ @include btn-pressed;
29
+ & + * + * {
30
+ border-left-color: shade(#ccc, 10%);
31
+ }
28
32
  }
29
33
  }
30
34
  }
@@ -30,7 +30,7 @@ pre {
30
30
  input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], textarea {
31
31
  &.code {
32
32
  font-family: $code-font;
33
- font-size: 13px;
33
+ font-size: 12px;
34
34
  }
35
35
  }
36
36
 
@@ -53,3 +53,17 @@ input[type="text"], input[type="email"], input[type="password"], input[type="url
53
53
  }
54
54
  }
55
55
  }
56
+
57
+ code.#{$moovui-prefix}inline {
58
+ background: none;
59
+ border: 0;
60
+ margin: 0;
61
+ padding: 0;
62
+ }
63
+
64
+ pre.#{$moovui-prefix}inline {
65
+ background: none;
66
+ color: inherit;
67
+ margin: 0;
68
+ padding: 0;
69
+ }
@@ -11,6 +11,10 @@ a.copy, .copy a {
11
11
  font-weight: bold;
12
12
  }
13
13
 
14
+ h1, h2, h3 {
15
+ line-height: 30px;
16
+ }
17
+
14
18
  h1, h2 {
15
19
  margin: 0 0 $sp2;
16
20
  }
@@ -60,7 +64,6 @@ h2.copy, .copy h2 {
60
64
  }
61
65
 
62
66
  h3.copy, .copy h3 {
63
- color: #8d9aa9;
64
67
  font-size: $h3-copy-size;
65
68
  font-weight: normal;
66
69
  }
@@ -9,8 +9,9 @@ dl {
9
9
  }
10
10
 
11
11
  dt {
12
- display: inline;
12
+ float: left;
13
13
  font-weight: 400;
14
+ margin: 0 0 -1px;
14
15
  &:before {
15
16
  content: "•";
16
17
  font-weight: 300;
@@ -20,15 +21,23 @@ dt {
20
21
  }
21
22
 
22
23
  dd {
23
- display: inline;
24
24
  margin: 0;
25
25
  &:not(:empty):before {
26
- -webkit-font-smoothing: antialiased;
27
- content: "  ⎯  ";
26
+ @include antialiased;
27
+ content: "";
28
+ display: inline-block;
29
+ font-size: 19px;
30
+ margin: -1px 2px 0;
31
+ vertical-align: top;
28
32
  }
29
- &:after {
33
+ // prevent collapse
34
+ &:empty:before {
30
35
  content: "";
31
- display: block;
36
+ display: inline-block;
32
37
  }
33
38
  }
39
+
40
+ .win dl {
41
+ font-weight: normal;
42
+ }
34
43
  }
@@ -0,0 +1,12 @@
1
+ .#{$moovui-prefix}disabled {
2
+ opacity: 0.5;
3
+ pointer-events: none;
4
+ }
5
+
6
+ .#{$moovui-prefix}idle {
7
+ opacity: 0.5;
8
+ }
9
+
10
+ .#{$moovui-prefix}readonly {
11
+ pointer-events: none;
12
+ }
@@ -1,21 +1,3 @@
1
- @mixin doc-section {
2
- @include radius;
3
- background: #fff;
4
- border: 2px solid #bdc4cb;
5
- color: #666;
6
- margin: 0 0 $sp8;
7
- padding: $sp2 $sp3;
8
- }
9
-
10
- @mixin doc-panes {
11
- :first-child .doc-pane {
12
- margin-right: $sp;
13
- }
14
- :last-child .doc-pane {
15
- margin-left: $sp;
16
- }
17
- }
18
-
19
1
  @mixin doc-pane {
20
2
  @include clearfix;
21
3
  @include radius;
@@ -39,6 +21,9 @@
39
21
  width: 87px;
40
22
  height: 87px;
41
23
  }
24
+ p:first-of-type {
25
+ overflow: hidden;
26
+ }
42
27
  a {
43
28
  float: right;
44
29
  }
@@ -57,59 +42,6 @@
57
42
  text-transform: uppercase;
58
43
  }
59
44
 
60
- @mixin doc-links {
61
- a {
62
- margin: 0 0 $sp;
63
- &:hover:before {
64
- opacity: 1;
65
- }
66
- &:before {
67
- @include entypo-icon;
68
- @extend .icon-right:before;
69
- margin: 0 5px -1px 0;
70
- opacity: 0.5;
71
- }
72
- &[target="_blank"]:after {
73
- @include entypo-icon;
74
- @extend .icon-popup:before;
75
- color: #d1d1d1;
76
- margin-left: 5px;
77
- }
78
- }
79
- }
80
-
81
- @mixin doc-keywords {
82
- @include border-radius(0 0 2px 2px);
83
- background: #f0f4f7;
84
- border: 1px dotted #bdc4cb;
85
- border-top: 1px solid #d7d8e0;
86
- padding: $sp $sp2;
87
- margin: $sp2 (-$sp2) (-$sp7);
88
- text-transform: lowercase;
89
- span {
90
- color: $darkblue;
91
- font-size: 10px;
92
- font-weight: bold;
93
- margin: 0 5px 0 0;
94
- text-transform: uppercase;
95
- }
96
- a {
97
- background: #fff;
98
- font-size: 11px;
99
- font-weight: normal;
100
- margin: 0 4px;
101
- padding: 3px 5px;
102
- }
103
- }
104
-
105
- .#{$moovui-prefix}doc-section {
106
- @include doc-section;
107
- }
108
-
109
- .#{$moovui-prefix}doc-panes {
110
- @include doc-panes;
111
- }
112
-
113
45
  .#{$moovui-prefix}doc-pane {
114
46
  @include doc-pane;
115
47
  }
@@ -117,11 +49,3 @@
117
49
  .#{$moovui-prefix}doc-label {
118
50
  @include doc-label;
119
51
  }
120
-
121
- .#{$moovui-prefix}doc-links {
122
- @include doc-links;
123
- }
124
-
125
- .#{$moovui-prefix}doc-kw {
126
- @include doc-keywords;
127
- }
@@ -3,8 +3,8 @@
3
3
  @include box-shadow(rgba(#000, 0.2) 0 1px 4px);
4
4
  background: #f9f9f9;
5
5
  position: absolute;
6
- top: -9999px;
7
- width: 160px;
6
+ left: -9999px;
7
+ min-width: 160px;
8
8
  z-index: 99;
9
9
  &:before {
10
10
  border: 6px solid transparent;
@@ -44,7 +44,7 @@
44
44
  // 2009
45
45
  // horizontal|vertical|inline-axis|block-axis|inherit
46
46
  @include prefixer(box-orient, $old-syntax, webkit);
47
- @if $reverse {
47
+ @if $old-reverse {
48
48
  @include prefixer(box-direction, reverse, webkit);
49
49
  }
50
50
  // 2011, latest
@@ -257,17 +257,17 @@
257
257
 
258
258
  .#{$moovui-prefix}flex {
259
259
  @include display-flex;
260
- &.center {
260
+ &.#{$moovui-prefix}center {
261
261
  @include align-items(center);
262
262
  }
263
- &.gap > :not(:last-child) {
264
- margin-right: $sp;
263
+ &.#{$moovui-prefix}gutters > :not(:last-child) {
264
+ margin-right: $sp3;
265
265
  }
266
266
  > * {
267
267
  @include flex(1);
268
268
  display: block;
269
269
  }
270
- .no-flex {
270
+ .#{$moovui-prefix}no-flex {
271
271
  @include flex(none);
272
272
  }
273
273
  }
@@ -281,20 +281,28 @@
281
281
  }
282
282
  }
283
283
 
284
- .no-flexbox.no-flexboxlegacy .#{$moovui-prefix}flex {
285
- display: table;
286
- width: 100%;
287
- &.center > * {
288
- vertical-align: middle;
284
+ .no-flexbox.no-flexboxlegacy {
285
+ .#{$moovui-prefix}flex {
286
+ display: table;
287
+ width: 100%;
288
+ &.#{$moovui-prefix}gutters {
289
+ margin-left: -$sp3;
290
+ > * {
291
+ padding-left: $sp3;
292
+ }
293
+ }
294
+ &.#{$moovui-prefix}center > * {
295
+ vertical-align: middle;
296
+ }
297
+ > * {
298
+ display: table-cell;
299
+ }
289
300
  }
290
- > * {
291
- display: table-cell;
292
- }
293
- }
294
301
 
295
- .no-flexbox.no-flexboxlegacy .#{$moovui-prefix}flex-justify {
296
- display: table;
297
- > * {
298
- display: table-cell;
302
+ .#{$moovui-prefix}flex-justify {
303
+ display: table;
304
+ > * {
305
+ display: table-cell;
306
+ }
299
307
  }
300
308
  }
@@ -6,21 +6,20 @@
6
6
  padding-left: $sp3;
7
7
  }
8
8
  }
9
- }
10
-
11
- .#{$moovui-prefix}col-1,
12
- .#{$moovui-prefix}col-2,
13
- .#{$moovui-prefix}col-3,
14
- .#{$moovui-prefix}col-4,
15
- .#{$moovui-prefix}col-5,
16
- .#{$moovui-prefix}col-6,
17
- .#{$moovui-prefix}col-7,
18
- .#{$moovui-prefix}col-8,
19
- .#{$moovui-prefix}col-9,
20
- .#{$moovui-prefix}col-10,
21
- .#{$moovui-prefix}col-11,
22
- .#{$moovui-prefix}col-12 {
23
- float: left;
9
+ > .#{$moovui-prefix}col-1,
10
+ > .#{$moovui-prefix}col-2,
11
+ > .#{$moovui-prefix}col-3,
12
+ > .#{$moovui-prefix}col-4,
13
+ > .#{$moovui-prefix}col-5,
14
+ > .#{$moovui-prefix}col-6,
15
+ > .#{$moovui-prefix}col-7,
16
+ > .#{$moovui-prefix}col-8,
17
+ > .#{$moovui-prefix}col-9,
18
+ > .#{$moovui-prefix}col-10,
19
+ > .#{$moovui-prefix}col-11,
20
+ > .#{$moovui-prefix}col-12 {
21
+ float: left;
22
+ }
24
23
  }
25
24
 
26
25
  .#{$moovui-prefix}col-1 {
@@ -1,20 +1,27 @@
1
1
  @if $moovui-init {
2
2
  input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="search"], textarea {
3
- @include box-shadow(rgba(#fff, 0.5) 0 1px);
4
- @include radius;
3
+ @include appearance(none); // override border-radius on iOS
4
+ @include border-radius(3px);
5
+ @include box-shadow(rgba(#fff, 0.5) 0 1px, #f0f0f0 0 1px inset);
5
6
  @include transition(0.3s);
6
7
  // ugly but bourbon mixin doesn't convert box-shadow into prefixed
7
8
  -webkit-transition-property: -webkit-box-shadow, box-shadow, border-color;
8
- -moz-transition-property: -moz-box-shadow, box-shadow, border-color;
9
+ -moz-transition-property: box-shadow, border-color;
9
10
  transition-property: box-shadow, border-color;
10
- border: 1px solid #d9d9d9;
11
+ border: 1px solid;
12
+ border-color: #cbcbcb #d5d5d5 #cfcfcf;
11
13
  color: $text-color;
12
14
  display: block;
13
15
  font-family: $font;
14
- font-size: 14px;
16
+ font-size: 13px;
17
+ letter-spacing: 0.25px;
15
18
  margin: 0 0 $sp2;
16
19
  padding: 0 $sp 1px;
17
- min-height: 36px;
20
+ min-height: 30px;
21
+ &:disabled {
22
+ background: #f3f3f3;
23
+ border-color: tint(#cbcbcb, 25%) tint(#d5d5d5, 25%) tint(#cfcfcf, 25%);
24
+ }
18
25
  &:focus {
19
26
  @include box-shadow(rgba(#000, 0.2) 0 0 3px, rgba(#fff, 0.5) 0 1px);
20
27
  border-color: #c8c8c8;
@@ -30,10 +37,17 @@ input[type="text"], input[type="email"], input[type="password"], input[type="url
30
37
  &:-ms-input-placeholder {
31
38
  color: #ccc;
32
39
  }
33
- &.error {
40
+ &.placeholder {
41
+ // for < IE 10
42
+ color: #ccc;
43
+ }
44
+ &.#{$moovui-prefix}error {
34
45
  @include box-shadow($red 0 0 0 1px);
35
46
  border-color: $red;
36
47
  }
48
+ label + & {
49
+ margin-top: 5px;
50
+ }
37
51
  }
38
52
 
39
53
  // hide 'X' in IE10