mumuki-styles 1.17.2 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/fonts/dev-awesome/svg/colored/php.svg +170 -0
  3. data/app/assets/fonts/dev-awesome-hinted.ttf +0 -0
  4. data/app/assets/fonts/dev-awesome.eot +0 -0
  5. data/app/assets/fonts/dev-awesome.svg +6 -2
  6. data/app/assets/fonts/dev-awesome.ttf +0 -0
  7. data/app/assets/fonts/dev-awesome.woff +0 -0
  8. data/app/assets/fonts/dev-awesome.woff2 +0 -0
  9. data/app/assets/javascripts/mumuki-styles.js +3 -3
  10. data/app/assets/stylesheets/css/mumuki-styles.css +11 -3
  11. data/app/assets/stylesheets/scss/modules/_new_message.scss +1 -1
  12. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_animated.scss +34 -0
  13. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_bordered-pulled.scss +16 -0
  14. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_core.scss +13 -0
  15. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_fixed-width.scss +6 -0
  16. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_icons.scss +596 -0
  17. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_larger.scss +13 -0
  18. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_list.scss +19 -0
  19. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_mixins.scss +27 -0
  20. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_path.scss +15 -0
  21. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_rotated-flipped.scss +20 -0
  22. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_stacked.scss +20 -0
  23. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/_variables.scss +606 -0
  24. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/Font-Awesome/scss/font-awesome.scss +17 -0
  25. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-compass.scss +9 -0
  26. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-mincer.scss +19 -0
  27. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
  28. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap.scss +50 -0
  29. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_alerts.scss +73 -0
  30. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_badges.scss +67 -0
  31. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
  32. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_button-groups.scss +243 -0
  33. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_buttons.scss +160 -0
  34. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_carousel.scss +269 -0
  35. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_close.scss +36 -0
  36. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_code.scss +69 -0
  37. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
  38. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_dropdowns.scss +214 -0
  39. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_forms.scss +570 -0
  40. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_glyphicons.scss +301 -0
  41. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_grid.scss +84 -0
  42. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_input-groups.scss +166 -0
  43. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_jumbotron.scss +50 -0
  44. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_labels.scss +66 -0
  45. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_list-group.scss +124 -0
  46. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_media.scss +61 -0
  47. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_mixins.scss +39 -0
  48. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_modals.scss +148 -0
  49. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_navbar.scss +663 -0
  50. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_navs.scss +244 -0
  51. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_normalize.scss +427 -0
  52. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_pager.scss +54 -0
  53. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_pagination.scss +88 -0
  54. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_panels.scss +265 -0
  55. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_popovers.scss +135 -0
  56. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_print.scss +107 -0
  57. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_progress-bars.scss +87 -0
  58. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_responsive-embed.scss +35 -0
  59. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_responsive-utilities.scss +177 -0
  60. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_scaffolding.scss +150 -0
  61. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_tables.scss +234 -0
  62. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_theme.scss +273 -0
  63. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
  64. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_tooltip.scss +103 -0
  65. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_type.scss +298 -0
  66. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_utilities.scss +56 -0
  67. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_variables.scss +862 -0
  68. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/_wells.scss +29 -0
  69. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  70. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
  71. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  72. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_buttons.scss +52 -0
  73. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  74. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  75. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_forms.scss +88 -0
  76. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  77. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
  78. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  79. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  80. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
  81. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  82. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
  83. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  84. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  85. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  86. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
  87. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_panels.scss +24 -0
  88. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +10 -0
  89. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  90. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  91. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  92. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
  93. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  94. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  95. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
  96. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  97. data/app/assets/stylesheets/vendor/awesome-bootstrap-checkbox/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
  98. data/app/assets/stylesheets/vendor/bootstrap-sass/test/dummy_node_mincer/application.css.ejs.scss +6 -0
  99. data/app/assets/stylesheets/vendor/dev-awesome/dist/scss/_dev-awesome.scss +15 -5
  100. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/_bootstrap.scss +84 -0
  101. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/_core.scss +129 -0
  102. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/_extras.scss +93 -0
  103. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/_icons.scss +381 -0
  104. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/_mixins.scss +48 -0
  105. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/_path.scss +14 -0
  106. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/_variables.scss +734 -0
  107. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/font-awesome-ie7.scss +1953 -0
  108. data/app/assets/stylesheets/vendor/font-awesome/src/3.2.1/assets/font-awesome/scss/font-awesome.scss +33 -0
  109. data/app/assets/stylesheets/vendor/font-awesome/src/_includes/code/core.scss +6 -0
  110. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_animated.scss +37 -0
  111. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_bordered-pulled.scss +28 -0
  112. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_core.scss +9 -0
  113. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_fixed-width.scss +9 -0
  114. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_icons.scss +7 -0
  115. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_larger.scss +16 -0
  116. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_list.scss +22 -0
  117. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_mixins.scss +56 -0
  118. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_path.scss +15 -0
  119. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_rotated-flipped.scss +23 -0
  120. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_screen-reader.scss +5 -0
  121. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_stacked.scss +23 -0
  122. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/_variables.scss +17 -0
  123. data/app/assets/stylesheets/vendor/font-awesome/src/assets/font-awesome/scss/font-awesome.scss +17 -0
  124. data/lib/mumuki/styles/version.rb +1 -1
  125. metadata +114 -2
@@ -0,0 +1,570 @@
1
+ //
2
+ // Forms
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Normalize non-controls
7
+ //
8
+ // Restyle and baseline non-control form elements.
9
+
10
+ fieldset {
11
+ padding: 0;
12
+ margin: 0;
13
+ border: 0;
14
+ // Chrome and Firefox set a `min-width: min-content;` on fieldsets,
15
+ // so we reset that to ensure it behaves more like a standard block element.
16
+ // See https://github.com/twbs/bootstrap/issues/12359.
17
+ min-width: 0;
18
+ }
19
+
20
+ legend {
21
+ display: block;
22
+ width: 100%;
23
+ padding: 0;
24
+ margin-bottom: $line-height-computed;
25
+ font-size: ($font-size-base * 1.5);
26
+ line-height: inherit;
27
+ color: $legend-color;
28
+ border: 0;
29
+ border-bottom: 1px solid $legend-border-color;
30
+ }
31
+
32
+ label {
33
+ display: inline-block;
34
+ max-width: 100%; // Force IE8 to wrap long content (see https://github.com/twbs/bootstrap/issues/13141)
35
+ margin-bottom: 5px;
36
+ font-weight: bold;
37
+ }
38
+
39
+
40
+ // Normalize form controls
41
+ //
42
+ // While most of our form styles require extra classes, some basic normalization
43
+ // is required to ensure optimum display with or without those classes to better
44
+ // address browser inconsistencies.
45
+
46
+ // Override content-box in Normalize (* isn't specific enough)
47
+ input[type="search"] {
48
+ @include box-sizing(border-box);
49
+ }
50
+
51
+ // Position radios and checkboxes better
52
+ input[type="radio"],
53
+ input[type="checkbox"] {
54
+ margin: 4px 0 0;
55
+ margin-top: 1px \9; // IE8-9
56
+ line-height: normal;
57
+ }
58
+
59
+ // Set the height of file controls to match text inputs
60
+ input[type="file"] {
61
+ display: block;
62
+ }
63
+
64
+ // Make range inputs behave like textual form controls
65
+ input[type="range"] {
66
+ display: block;
67
+ width: 100%;
68
+ }
69
+
70
+ // Make multiple select elements height not fixed
71
+ select[multiple],
72
+ select[size] {
73
+ height: auto;
74
+ }
75
+
76
+ // Focus for file, radio, and checkbox
77
+ input[type="file"]:focus,
78
+ input[type="radio"]:focus,
79
+ input[type="checkbox"]:focus {
80
+ @include tab-focus;
81
+ }
82
+
83
+ // Adjust output element
84
+ output {
85
+ display: block;
86
+ padding-top: ($padding-base-vertical + 1);
87
+ font-size: $font-size-base;
88
+ line-height: $line-height-base;
89
+ color: $input-color;
90
+ }
91
+
92
+
93
+ // Common form controls
94
+ //
95
+ // Shared size and type resets for form controls. Apply `.form-control` to any
96
+ // of the following form controls:
97
+ //
98
+ // select
99
+ // textarea
100
+ // input[type="text"]
101
+ // input[type="password"]
102
+ // input[type="datetime"]
103
+ // input[type="datetime-local"]
104
+ // input[type="date"]
105
+ // input[type="month"]
106
+ // input[type="time"]
107
+ // input[type="week"]
108
+ // input[type="number"]
109
+ // input[type="email"]
110
+ // input[type="url"]
111
+ // input[type="search"]
112
+ // input[type="tel"]
113
+ // input[type="color"]
114
+
115
+ .form-control {
116
+ display: block;
117
+ width: 100%;
118
+ height: $input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
119
+ padding: $padding-base-vertical $padding-base-horizontal;
120
+ font-size: $font-size-base;
121
+ line-height: $line-height-base;
122
+ color: $input-color;
123
+ background-color: $input-bg;
124
+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
125
+ border: 1px solid $input-border;
126
+ border-radius: $input-border-radius; // Note: This has no effect on <select>s in some browsers, due to the limited stylability of <select>s in CSS.
127
+ @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
128
+ @include transition(border-color ease-in-out .15s, box-shadow ease-in-out .15s);
129
+
130
+ // Customize the `:focus` state to imitate native WebKit styles.
131
+ @include form-control-focus;
132
+
133
+ // Placeholder
134
+ @include placeholder;
135
+
136
+ // Disabled and read-only inputs
137
+ //
138
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
139
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
140
+ // don't honor that edge case; we style them as disabled anyway.
141
+ &[disabled],
142
+ &[readonly],
143
+ fieldset[disabled] & {
144
+ cursor: $cursor-disabled;
145
+ background-color: $input-bg-disabled;
146
+ opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
147
+ }
148
+
149
+ // [converter] extracted textarea& to textarea.form-control
150
+ }
151
+
152
+ // Reset height for `textarea`s
153
+ textarea.form-control {
154
+ height: auto;
155
+ }
156
+
157
+
158
+ // Search inputs in iOS
159
+ //
160
+ // This overrides the extra rounded corners on search inputs in iOS so that our
161
+ // `.form-control` class can properly style them. Note that this cannot simply
162
+ // be added to `.form-control` as it's not specific enough. For details, see
163
+ // https://github.com/twbs/bootstrap/issues/11586.
164
+
165
+ input[type="search"] {
166
+ -webkit-appearance: none;
167
+ }
168
+
169
+
170
+ // Special styles for iOS temporal inputs
171
+ //
172
+ // In Mobile Safari, setting `display: block` on temporal inputs causes the
173
+ // text within the input to become vertically misaligned. As a workaround, we
174
+ // set a pixel line-height that matches the given height of the input, but only
175
+ // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
176
+
177
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
178
+ input[type="date"],
179
+ input[type="time"],
180
+ input[type="datetime-local"],
181
+ input[type="month"] {
182
+ line-height: $input-height-base;
183
+
184
+ &.input-sm,
185
+ .input-group-sm & {
186
+ line-height: $input-height-small;
187
+ }
188
+
189
+ &.input-lg,
190
+ .input-group-lg & {
191
+ line-height: $input-height-large;
192
+ }
193
+ }
194
+ }
195
+
196
+
197
+ // Form groups
198
+ //
199
+ // Designed to help with the organization and spacing of vertical forms. For
200
+ // horizontal forms, use the predefined grid classes.
201
+
202
+ .form-group {
203
+ margin-bottom: 15px;
204
+ }
205
+
206
+
207
+ // Checkboxes and radios
208
+ //
209
+ // Indent the labels to position radios/checkboxes as hanging controls.
210
+
211
+ .radio,
212
+ .checkbox {
213
+ position: relative;
214
+ display: block;
215
+ margin-top: 10px;
216
+ margin-bottom: 10px;
217
+
218
+ label {
219
+ min-height: $line-height-computed; // Ensure the input doesn't jump when there is no text
220
+ padding-left: 20px;
221
+ margin-bottom: 0;
222
+ font-weight: normal;
223
+ cursor: pointer;
224
+ }
225
+ }
226
+ .radio input[type="radio"],
227
+ .radio-inline input[type="radio"],
228
+ .checkbox input[type="checkbox"],
229
+ .checkbox-inline input[type="checkbox"] {
230
+ position: absolute;
231
+ margin-left: -20px;
232
+ margin-top: 4px \9;
233
+ }
234
+
235
+ .radio + .radio,
236
+ .checkbox + .checkbox {
237
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
238
+ }
239
+
240
+ // Radios and checkboxes on same line
241
+ .radio-inline,
242
+ .checkbox-inline {
243
+ display: inline-block;
244
+ padding-left: 20px;
245
+ margin-bottom: 0;
246
+ vertical-align: middle;
247
+ font-weight: normal;
248
+ cursor: pointer;
249
+ }
250
+ .radio-inline + .radio-inline,
251
+ .checkbox-inline + .checkbox-inline {
252
+ margin-top: 0;
253
+ margin-left: 10px; // space out consecutive inline controls
254
+ }
255
+
256
+ // Apply same disabled cursor tweak as for inputs
257
+ // Some special care is needed because <label>s don't inherit their parent's `cursor`.
258
+ //
259
+ // Note: Neither radios nor checkboxes can be readonly.
260
+ input[type="radio"],
261
+ input[type="checkbox"] {
262
+ &[disabled],
263
+ &.disabled,
264
+ fieldset[disabled] & {
265
+ cursor: $cursor-disabled;
266
+ }
267
+ }
268
+ // These classes are used directly on <label>s
269
+ .radio-inline,
270
+ .checkbox-inline {
271
+ &.disabled,
272
+ fieldset[disabled] & {
273
+ cursor: $cursor-disabled;
274
+ }
275
+ }
276
+ // These classes are used on elements with <label> descendants
277
+ .radio,
278
+ .checkbox {
279
+ &.disabled,
280
+ fieldset[disabled] & {
281
+ label {
282
+ cursor: $cursor-disabled;
283
+ }
284
+ }
285
+ }
286
+
287
+
288
+ // Static form control text
289
+ //
290
+ // Apply class to a `p` element to make any string of text align with labels in
291
+ // a horizontal form layout.
292
+
293
+ .form-control-static {
294
+ // Size it appropriately next to real form controls
295
+ padding-top: ($padding-base-vertical + 1);
296
+ padding-bottom: ($padding-base-vertical + 1);
297
+ // Remove default margin from `p`
298
+ margin-bottom: 0;
299
+
300
+ &.input-lg,
301
+ &.input-sm {
302
+ padding-left: 0;
303
+ padding-right: 0;
304
+ }
305
+ }
306
+
307
+
308
+ // Form control sizing
309
+ //
310
+ // Build on `.form-control` with modifier classes to decrease or increase the
311
+ // height and font-size of form controls.
312
+ //
313
+ // The `.form-group-* form-control` variations are sadly duplicated to avoid the
314
+ // issue documented in https://github.com/twbs/bootstrap/issues/15074.
315
+
316
+ @include input-size('.input-sm', $input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $input-border-radius-small);
317
+ .form-group-sm {
318
+
319
+ @include input-size('.form-control', $input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $input-border-radius-small);
320
+
321
+ .form-control-static {
322
+ height: $input-height-small;
323
+ padding: $padding-small-vertical $padding-small-horizontal;
324
+ font-size: $font-size-small;
325
+ line-height: $line-height-small;
326
+ }
327
+ }
328
+
329
+ @include input-size('.input-lg', $input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $input-border-radius-large);
330
+ .form-group-lg {
331
+
332
+ @include input-size('.form-control', $input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $input-border-radius-large);
333
+
334
+ .form-control-static {
335
+ height: $input-height-large;
336
+ padding: $padding-large-vertical $padding-large-horizontal;
337
+ font-size: $font-size-large;
338
+ line-height: $line-height-large;
339
+ }
340
+ }
341
+
342
+
343
+ // Form control feedback states
344
+ //
345
+ // Apply contextual and semantic states to individual form controls.
346
+
347
+ .has-feedback {
348
+ // Enable absolute positioning
349
+ position: relative;
350
+
351
+ // Ensure icons don't overlap text
352
+ .form-control {
353
+ padding-right: ($input-height-base * 1.25);
354
+ }
355
+ }
356
+ // Feedback icon (requires .glyphicon classes)
357
+ .form-control-feedback {
358
+ position: absolute;
359
+ top: 0;
360
+ right: 0;
361
+ z-index: 2; // Ensure icon is above input groups
362
+ display: block;
363
+ width: $input-height-base;
364
+ height: $input-height-base;
365
+ line-height: $input-height-base;
366
+ text-align: center;
367
+ pointer-events: none;
368
+ }
369
+ .input-lg + .form-control-feedback {
370
+ width: $input-height-large;
371
+ height: $input-height-large;
372
+ line-height: $input-height-large;
373
+ }
374
+ .input-sm + .form-control-feedback {
375
+ width: $input-height-small;
376
+ height: $input-height-small;
377
+ line-height: $input-height-small;
378
+ }
379
+
380
+ // Feedback states
381
+ .has-success {
382
+ @include form-control-validation($state-success-text, $state-success-text, $state-success-bg);
383
+ }
384
+ .has-warning {
385
+ @include form-control-validation($state-warning-text, $state-warning-text, $state-warning-bg);
386
+ }
387
+ .has-error {
388
+ @include form-control-validation($state-danger-text, $state-danger-text, $state-danger-bg);
389
+ }
390
+
391
+ // Reposition feedback icon if input has visible label above
392
+ .has-feedback label {
393
+
394
+ & ~ .form-control-feedback {
395
+ top: ($line-height-computed + 5); // Height of the `label` and its margin
396
+ }
397
+ &.sr-only ~ .form-control-feedback {
398
+ top: 0;
399
+ }
400
+ }
401
+
402
+
403
+ // Help text
404
+ //
405
+ // Apply to any element you wish to create light text for placement immediately
406
+ // below a form control. Use for general help, formatting, or instructional text.
407
+
408
+ .help-block {
409
+ display: block; // account for any element using help-block
410
+ margin-top: 5px;
411
+ margin-bottom: 10px;
412
+ color: lighten($text-color, 25%); // lighten the text some for contrast
413
+ }
414
+
415
+
416
+ // Inline forms
417
+ //
418
+ // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
419
+ // forms begin stacked on extra small (mobile) devices and then go inline when
420
+ // viewports reach <768px.
421
+ //
422
+ // Requires wrapping inputs and labels with `.form-group` for proper display of
423
+ // default HTML form controls and our custom form controls (e.g., input groups).
424
+ //
425
+ // Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
426
+
427
+ // [converter] extracted from `.form-inline` for libsass compatibility
428
+ @mixin form-inline {
429
+
430
+ // Kick in the inline
431
+ @media (min-width: $screen-sm-min) {
432
+ // Inline-block all the things for "inline"
433
+ .form-group {
434
+ display: inline-block;
435
+ margin-bottom: 0;
436
+ vertical-align: middle;
437
+ }
438
+
439
+ // In navbar-form, allow folks to *not* use `.form-group`
440
+ .form-control {
441
+ display: inline-block;
442
+ width: auto; // Prevent labels from stacking above inputs in `.form-group`
443
+ vertical-align: middle;
444
+ }
445
+
446
+ // Make static controls behave like regular ones
447
+ .form-control-static {
448
+ display: inline-block;
449
+ }
450
+
451
+ .input-group {
452
+ display: inline-table;
453
+ vertical-align: middle;
454
+
455
+ .input-group-addon,
456
+ .input-group-btn,
457
+ .form-control {
458
+ width: auto;
459
+ }
460
+ }
461
+
462
+ // Input groups need that 100% width though
463
+ .input-group > .form-control {
464
+ width: 100%;
465
+ }
466
+
467
+ .control-label {
468
+ margin-bottom: 0;
469
+ vertical-align: middle;
470
+ }
471
+
472
+ // Remove default margin on radios/checkboxes that were used for stacking, and
473
+ // then undo the floating of radios and checkboxes to match.
474
+ .radio,
475
+ .checkbox {
476
+ display: inline-block;
477
+ margin-top: 0;
478
+ margin-bottom: 0;
479
+ vertical-align: middle;
480
+
481
+ label {
482
+ padding-left: 0;
483
+ }
484
+ }
485
+ .radio input[type="radio"],
486
+ .checkbox input[type="checkbox"] {
487
+ position: relative;
488
+ margin-left: 0;
489
+ }
490
+
491
+ // Re-override the feedback icon.
492
+ .has-feedback .form-control-feedback {
493
+ top: 0;
494
+ }
495
+ }
496
+ }
497
+ // [converter] extracted as `@mixin form-inline` for libsass compatibility
498
+ .form-inline {
499
+ @include form-inline;
500
+ }
501
+
502
+
503
+
504
+ // Horizontal forms
505
+ //
506
+ // Horizontal forms are built on grid classes and allow you to create forms with
507
+ // labels on the left and inputs on the right.
508
+
509
+ .form-horizontal {
510
+
511
+ // Consistent vertical alignment of radios and checkboxes
512
+ //
513
+ // Labels also get some reset styles, but that is scoped to a media query below.
514
+ .radio,
515
+ .checkbox,
516
+ .radio-inline,
517
+ .checkbox-inline {
518
+ margin-top: 0;
519
+ margin-bottom: 0;
520
+ padding-top: ($padding-base-vertical + 1); // Default padding plus a border
521
+ }
522
+ // Account for padding we're adding to ensure the alignment and of help text
523
+ // and other content below items
524
+ .radio,
525
+ .checkbox {
526
+ min-height: ($line-height-computed + ($padding-base-vertical + 1));
527
+ }
528
+
529
+ // Make form groups behave like rows
530
+ .form-group {
531
+ @include make-row;
532
+ }
533
+
534
+ // Reset spacing and right align labels, but scope to media queries so that
535
+ // labels on narrow viewports stack the same as a default form example.
536
+ @media (min-width: $screen-sm-min) {
537
+ .control-label {
538
+ text-align: right;
539
+ margin-bottom: 0;
540
+ padding-top: ($padding-base-vertical + 1); // Default padding plus a border
541
+ }
542
+ }
543
+
544
+ // Validation states
545
+ //
546
+ // Reposition the icon because it's now within a grid column and columns have
547
+ // `position: relative;` on them. Also accounts for the grid gutter padding.
548
+ .has-feedback .form-control-feedback {
549
+ right: ($grid-gutter-width / 2);
550
+ }
551
+
552
+ // Form group sizes
553
+ //
554
+ // Quick utility class for applying `.input-lg` and `.input-sm` styles to the
555
+ // inputs and labels within a `.form-group`.
556
+ .form-group-lg {
557
+ @media (min-width: $screen-sm-min) {
558
+ .control-label {
559
+ padding-top: (($padding-large-vertical * $line-height-large) + 1);
560
+ }
561
+ }
562
+ }
563
+ .form-group-sm {
564
+ @media (min-width: $screen-sm-min) {
565
+ .control-label {
566
+ padding-top: ($padding-small-vertical + 1);
567
+ }
568
+ }
569
+ }
570
+ }