system-clients 3.2.52 → 3.2.53-furuike

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 (240) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/.eslintrc.js +16 -16
  4. package/CHANGELOG.md +51 -51
  5. package/README.md +36 -36
  6. package/SystemClient.iml +8 -8
  7. package/build/css-loaders.js +34 -34
  8. package/build/dev-client.js +8 -8
  9. package/build/example-server.js +80 -80
  10. package/build/release.sh +28 -28
  11. package/build/utils.js +71 -71
  12. package/build/webpack.base.conf.js +85 -85
  13. package/build/webpack.dev.conf.js +31 -31
  14. package/build/webpack.example.conf.js +49 -49
  15. package/build/webpack.prod.conf.js +60 -60
  16. package/build/webpack.test.conf.js +31 -31
  17. package/build.gradle +6 -6
  18. package/config/dev.env.js +6 -6
  19. package/config/index.js +38 -38
  20. package/config/prod.env.js +3 -3
  21. package/config/test.env.js +6 -6
  22. package/doc/Login.md +7 -7
  23. package/examples/LoginPage/App.vue +21 -21
  24. package/examples/LoginPage/index.html +11 -11
  25. package/examples/LoginPage/main.js +15 -15
  26. package/examples/ReadCard/App.vue +23 -23
  27. package/examples/ReadCard/index.html +11 -11
  28. package/examples/ReadCard/main.js +12 -12
  29. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  30. package/gradle/wrapper/gradle-wrapper.properties +5 -0
  31. package/index.html +21 -21
  32. package/package.json +1 -1
  33. package/release.bat +5 -5
  34. package/src/App.vue +24 -24
  35. package/src/LodopFuncs.js +123 -123
  36. package/src/assets/binding.svg +1 -1
  37. package/src/assets/unbind.svg +1 -1
  38. package/src/assets//345/205/254/345/221/212.svg +1 -1
  39. package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
  40. package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
  41. package/src/components/List.vue +51 -51
  42. package/src/components/Main.vue +785 -785
  43. package/src/components/TabButton.vue +201 -201
  44. package/src/components/Table.js +74 -74
  45. package/src/components/Tabs.vue +67 -67
  46. package/src/components/Util.js +343 -343
  47. package/src/components/addressManage/AddressCascadingMenu.vue +145 -145
  48. package/src/components/equipment/EquipmentManage.vue +65 -65
  49. package/src/components/equipment/PcAdd.vue +105 -105
  50. package/src/components/equipment/PcList.vue +119 -119
  51. package/src/components/equipment/PcManage.vue +60 -60
  52. package/src/components/equipment/PhoneAdd.vue +107 -107
  53. package/src/components/equipment/PhoneList.vue +112 -112
  54. package/src/components/equipment/PhoneManage.vue +60 -60
  55. package/src/components/equipment/PosAdd.vue +323 -323
  56. package/src/components/equipment/PosList.vue +294 -294
  57. package/src/components/equipment/PosManage.vue +138 -138
  58. package/src/components/equipment/PosManageBoth.vue +125 -125
  59. package/src/components/equipment/PosParamAdd.vue +236 -236
  60. package/src/components/equipment/PosParamList.vue +121 -121
  61. package/src/components/equipment/PosParamManage.vue +51 -51
  62. package/src/components/materialManage/materialData.vue +44 -44
  63. package/src/components/materialManage/materialList.vue +255 -255
  64. package/src/components/parammanage/ParamManage.vue +42 -42
  65. package/src/components/parammanage/ParamManages.vue +43 -43
  66. package/src/components/parammanage/ParamPage.vue +336 -336
  67. package/src/components/parammanage/ParamPages.vue +222 -222
  68. package/src/components/parammanage/SinglePage.vue +235 -235
  69. package/src/components/parammanage/SinglePages.vue +167 -167
  70. package/src/components/server/AddChangeMsg.vue +66 -66
  71. package/src/components/server/ChangeDeclare.vue +45 -45
  72. package/src/components/server/IconTree.vue +26 -26
  73. package/src/components/server/ImageVieweTest.vue +56 -56
  74. package/src/components/server/ImageViewer.vue +350 -350
  75. package/src/components/server/LeftTree.vue +111 -111
  76. package/src/components/server/LoadData.vue +55 -55
  77. package/src/components/server/Login.vue +568 -568
  78. package/src/components/server/LoginPage.vue +235 -235
  79. package/src/components/server/LoginView.vue +128 -128
  80. package/src/components/server/Menu.vue +188 -188
  81. package/src/components/server/ModifyPw.vue +111 -111
  82. package/src/components/server/PcdBuildingSelect.vue +241 -241
  83. package/src/components/server/ResSelect.vue +155 -155
  84. package/src/components/server/ResSelectGroup.vue +198 -198
  85. package/src/components/server/RightTree.vue +348 -348
  86. package/src/components/server/RoleSelector.vue +88 -88
  87. package/src/components/server/TestResSelect.vue +58 -58
  88. package/src/components/server/TestResSelectGroup.vue +388 -388
  89. package/src/components/server/TestRightTree.vue +42 -42
  90. package/src/filiale/chengtou/Login.vue +537 -537
  91. package/src/filiale/chengtou/system.js +5 -5
  92. package/src/filiale/dongguan/Login.vue +900 -900
  93. package/src/filiale/dongguan/Main.vue +715 -715
  94. package/src/filiale/dongguan/system.js +6 -6
  95. package/src/filiale/furuike/Login.vue +583 -583
  96. package/src/filiale/furuike/Main.vue +1 -13
  97. package/src/filiale/furuike/system.js +7 -7
  98. package/src/filiale/konggang/Login.vue +470 -470
  99. package/src/filiale/konggang/system.js +7 -7
  100. package/src/filiale/qianneng/Main.vue +816 -816
  101. package/src/filiale/qianneng/ModifyPw.vue +107 -107
  102. package/src/filiale/qianneng/system.js +8 -8
  103. package/src/filiale/rizhao/LeftTree.vue +111 -111
  104. package/src/filiale/rizhao/Login.vue +791 -791
  105. package/src/filiale/rizhao/Main.vue +611 -611
  106. package/src/filiale/rizhao/system.js +14 -14
  107. package/src/filiale/tongchuan/Login.vue +561 -561
  108. package/src/filiale/tongchuan/system.js +7 -7
  109. package/src/filiale/wenxi/Login.vue +535 -535
  110. package/src/filiale/wenxi/Main.vue +785 -785
  111. package/src/filiale/wenxi/system.js +10 -10
  112. package/src/filiale/yuchuan/Login.vue +889 -889
  113. package/src/filiale/yuchuan/Main.vue +773 -773
  114. package/src/filiale/yuchuan/system.js +10 -10
  115. package/src/filiale/zhoukou/Main.vue +807 -807
  116. package/src/filiale/zhoukou/system.js +6 -6
  117. package/src/index.js +7 -7
  118. package/src/plugins/EncryptUtil.js +53 -53
  119. package/src/plugins/GetLoginInfoService.js +521 -521
  120. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  121. package/src/plugins/validation.js +15 -15
  122. package/src/project/ProjectPage.vue +24 -24
  123. package/src/project/State.js +17 -17
  124. package/src/stores/AppData.js +38 -38
  125. package/src/stores/HeatAppData.js +38 -38
  126. package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
  127. package/src/styles/less/.csscomb.json +304 -304
  128. package/src/styles/less/.csslintrc +19 -19
  129. package/src/styles/less/alerts.less +73 -73
  130. package/src/styles/less/aofeng/animate.min.css +10 -10
  131. package/src/styles/less/aofeng/expandcss.less +569 -569
  132. package/src/styles/less/aofeng/login.less +367 -367
  133. package/src/styles/less/aofeng/standard.less +2507 -2507
  134. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +686 -686
  135. package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
  136. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  137. package/src/styles/less/aofeng/themeOne.less +17 -17
  138. package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
  139. package/src/styles/less/aofeng/themeTwo.less +3 -3
  140. package/src/styles/less/badges.less +66 -66
  141. package/src/styles/less/bootstrap.less +66 -66
  142. package/src/styles/less/breadcrumbs.less +26 -26
  143. package/src/styles/less/button-groups.less +247 -247
  144. package/src/styles/less/buttons.less +172 -172
  145. package/src/styles/less/carousel.less +269 -269
  146. package/src/styles/less/close.less +34 -34
  147. package/src/styles/less/code.less +69 -69
  148. package/src/styles/less/component-animations.less +33 -33
  149. package/src/styles/less/dropdowns.less +216 -216
  150. package/src/styles/less/fonts-list.less +25 -25
  151. package/src/styles/less/forms.less +626 -626
  152. package/src/styles/less/glyphicons.less +305 -305
  153. package/src/styles/less/grid.less +84 -84
  154. package/src/styles/less/input-groups.less +167 -167
  155. package/src/styles/less/jumbotron.less +52 -52
  156. package/src/styles/less/labels.less +64 -64
  157. package/src/styles/less/list-group.less +141 -141
  158. package/src/styles/less/manageStyle/manageChile.less +180 -180
  159. package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -180
  160. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -1102
  161. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -498
  162. package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
  163. package/src/styles/less/manageStyle/safeStyle.less +498 -498
  164. package/src/styles/less/media.less +66 -66
  165. package/src/styles/less/mixins/alerts.less +14 -14
  166. package/src/styles/less/mixins/background-variant.less +9 -9
  167. package/src/styles/less/mixins/border-radius.less +18 -18
  168. package/src/styles/less/mixins/buttons.less +69 -69
  169. package/src/styles/less/mixins/center-block.less +7 -7
  170. package/src/styles/less/mixins/clearfix.less +22 -22
  171. package/src/styles/less/mixins/forms.less +90 -90
  172. package/src/styles/less/mixins/gradients.less +59 -59
  173. package/src/styles/less/mixins/grid-framework.less +92 -92
  174. package/src/styles/less/mixins/grid.less +122 -122
  175. package/src/styles/less/mixins/hide-text.less +21 -21
  176. package/src/styles/less/mixins/image.less +33 -33
  177. package/src/styles/less/mixins/labels.less +12 -12
  178. package/src/styles/less/mixins/list-group.less +30 -30
  179. package/src/styles/less/mixins/nav-divider.less +10 -10
  180. package/src/styles/less/mixins/nav-vertical-align.less +9 -9
  181. package/src/styles/less/mixins/opacity.less +8 -8
  182. package/src/styles/less/mixins/pagination.less +24 -24
  183. package/src/styles/less/mixins/panels.less +24 -24
  184. package/src/styles/less/mixins/progress-bar.less +10 -10
  185. package/src/styles/less/mixins/reset-filter.less +8 -8
  186. package/src/styles/less/mixins/reset-text.less +18 -18
  187. package/src/styles/less/mixins/resize.less +6 -6
  188. package/src/styles/less/mixins/responsive-visibility.less +15 -15
  189. package/src/styles/less/mixins/size.less +10 -10
  190. package/src/styles/less/mixins/tab-focus.less +9 -9
  191. package/src/styles/less/mixins/table-row.less +44 -44
  192. package/src/styles/less/mixins/text-emphasis.less +9 -9
  193. package/src/styles/less/mixins/text-overflow.less +8 -8
  194. package/src/styles/less/mixins/vendor-prefixes.less +227 -227
  195. package/src/styles/less/mixins.less +40 -40
  196. package/src/styles/less/modals.less +151 -151
  197. package/src/styles/less/navbar.less +660 -660
  198. package/src/styles/less/navs.less +285 -285
  199. package/src/styles/less/normalize.less +424 -424
  200. package/src/styles/less/pager.less +76 -76
  201. package/src/styles/less/pagination.less +89 -89
  202. package/src/styles/less/panels.less +275 -275
  203. package/src/styles/less/popovers.less +131 -131
  204. package/src/styles/less/print.less +101 -101
  205. package/src/styles/less/progress-bars.less +87 -87
  206. package/src/styles/less/responsive-embed.less +35 -35
  207. package/src/styles/less/responsive-utilities.less +194 -194
  208. package/src/styles/less/scaffolding.less +161 -161
  209. package/src/styles/less/stand.less +207 -207
  210. package/src/styles/less/tables.less +312 -312
  211. package/src/styles/less/theme.less +291 -291
  212. package/src/styles/less/thumbnails.less +36 -36
  213. package/src/styles/less/tooltip.less +102 -102
  214. package/src/styles/less/type.less +316 -316
  215. package/src/styles/less/utilities.less +55 -55
  216. package/src/styles/less/variables.less +899 -899
  217. package/src/styles/less/wells.less +29 -29
  218. package/src/system.js +113 -113
  219. package/src/systemphone.js +11 -11
  220. package/src/util/Daiban.json +12 -12
  221. package/src/util/LdapHelper.js +75 -75
  222. package/test/e2e/custom-assertions/elementCount.js +26 -26
  223. package/test/e2e/nightwatch.conf.js +40 -40
  224. package/test/e2e/runner.js +30 -30
  225. package/test/e2e/specs/test.js +14 -14
  226. package/test/unit/.eslintrc +5 -5
  227. package/test/unit/index.js +13 -13
  228. package/test/unit/init.js +10 -10
  229. package/test/unit/karma.conf.js +49 -49
  230. package/test/unit/specs/base64.spec.js +5 -5
  231. package/test/unit/specs/components/parammanage/ParamPage.spec.js +20 -20
  232. package/test/unit/specs/components/parammanage/SinglePage.spec.js +20 -20
  233. package/test/unit/specs/components/server/LeftTree/App.vue +18 -18
  234. package/test/unit/specs/components/server/LeftTree/LeftTree.spec.js +22 -22
  235. package/test/unit/specs/components/server/LoadData.spec.js +24 -24
  236. package/test/unit/specs/components/server/Login.spec.js +61 -61
  237. package/test/unit/specs/components/server/RightTree.spec.js +50 -50
  238. package/test/unit/specs/plugins/GetLoginInfoService.spec.js +55 -55
  239. package/test/unit/test.html +76 -76
  240. package/yarn-error.log +6896 -6896
@@ -1,626 +1,626 @@
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: 7px; // 原本为5px
36
- font-weight: bold;
37
- // 原本没有,自己添加
38
- text-align: right;
39
- padding-right: 10px;
40
- // padding-top: 7px;// 为了label的内同人个form-control中的内容对齐设置
41
- }
42
-
43
-
44
- // Normalize form controls
45
- //
46
- // While most of our form styles require extra classes, some basic normalization
47
- // is required to ensure optimum display with or without those classes to better
48
- // address browser inconsistencies.
49
-
50
- // Override content-box in Normalize (* isn't specific enough)
51
- input[type="search"] {
52
- .box-sizing(border-box);
53
- }
54
-
55
- // Position radios and checkboxes better
56
- input[type="radio"],
57
- input[type="checkbox"] {
58
- margin: 4px 0 0;
59
- margin-top: 1px \9; // IE8-9
60
- line-height: normal;
61
- }
62
-
63
- input[type="file"] {
64
- display: block;
65
- }
66
-
67
- // Make range inputs behave like textual form controls
68
- input[type="range"] {
69
- display: block;
70
- width: 100%;
71
- }
72
-
73
- // Make multiple select elements height not fixed
74
- select[multiple],
75
- select[size] {
76
- height: auto;
77
- }
78
-
79
- // Focus for file, radio, and checkbox
80
- input[type="file"]:focus,
81
- input[type="radio"]:focus,
82
- input[type="checkbox"]:focus {
83
- .tab-focus();
84
- }
85
-
86
- // Adjust output element
87
- output {
88
- display: block;
89
- padding-top: (@padding-base-vertical + 1);
90
- font-size: @font-size-base;
91
- line-height: @line-height-base;
92
- color: @input-color;
93
- }
94
-
95
-
96
- // Common form controls
97
- //
98
- // Shared size and type resets for form controls. Apply `.form-control` to any
99
- // of the following form controls:
100
- //
101
- // select
102
- // textarea
103
- // input[type="text"]
104
- // input[type="password"]
105
- // input[type="datetime"]
106
- // input[type="datetime-local"]
107
- // input[type="date"]
108
- // input[type="month"]
109
- // input[type="time"]
110
- // input[type="week"]
111
- // input[type="number"]
112
- // input[type="email"]
113
- // input[type="url"]
114
- // input[type="search"]
115
- // input[type="tel"]
116
- // input[type="color"]
117
-
118
- .form-control {
119
- // contom style 自己添加
120
- height: auto;
121
- outline: none;
122
- border: 1px solid #93B2D3;
123
- // border-bottom: 2px solid #C9CCCF;
124
- // border-top-width: 0px;
125
- // border-left-width: 0px;
126
- // border-right-width: 0px;
127
- // margin-right: 5px;
128
- // // 一下是原本就有的
129
- display: block;
130
- width: 100%;
131
- // height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
132
- padding: @padding-base-vertical @padding-base-horizontal;
133
- font-size: @font-size-base;
134
- line-height: @line-height-base;
135
- color: @input-color;
136
- // // background-color: @input-bg;
137
- // background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
138
- // border: 0px solid @input-border; // 原本为1px
139
- // // 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.
140
- // .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
141
- .transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s");
142
-
143
- // Customize the `:focus` state to imitate native WebKit styles.
144
- .form-control-focus();
145
-
146
- // Placeholder
147
- .placeholder();
148
-
149
- // Disabled and read-only inputs
150
- //
151
- // HTML5 says that controls under a fieldset > legend:first-child won't be
152
- // disabled if the fieldset is disabled. Due to implementation difficulty, we
153
- // don't honor that edge case; we style them as disabled anyway.
154
- &[disabled],
155
- &[readonly],
156
- fieldset[disabled] & {
157
- background-color: @input-bg-disabled;
158
- opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
159
- }
160
-
161
- &[disabled],
162
- fieldset[disabled] & {
163
- cursor: @cursor-disabled;
164
- border: none;
165
- }
166
-
167
- // Reset height for `textarea`s
168
- textarea& {
169
- height: auto;
170
- }
171
- }
172
-
173
-
174
- // Search inputs in iOS
175
- //
176
- // This overrides the extra rounded corners on search inputs in iOS so that our
177
- // `.form-control` class can properly style them. Note that this cannot simply
178
- // be added to `.form-control` as it's not specific enough. For details, see
179
- // https://github.com/twbs/bootstrap/issues/11586.
180
-
181
- input[type="search"] {
182
- -webkit-appearance: none;
183
- }
184
-
185
-
186
- // Special styles for iOS temporal inputs
187
- //
188
- // In Mobile Safari, setting `display: block` on temporal inputs causes the
189
- // text within the input to become vertically misaligned. As a workaround, we
190
- // set a pixel line-height that matches the given height of the input, but only
191
- // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
192
- //
193
- // Note that as of 8.3, iOS doesn't support `datetime` or `week`.
194
-
195
- @media screen and (-webkit-min-device-pixel-ratio: 0) {
196
- input[type="date"],
197
- input[type="time"],
198
- input[type="datetime-local"],
199
- input[type="month"] {
200
- &.form-control {
201
- line-height: @input-height-base;
202
- }
203
-
204
- &.input-sm,
205
- .input-group-sm & {
206
- line-height: @input-height-small;
207
- }
208
-
209
- &.input-lg,
210
- .input-group-lg & {
211
- line-height: @input-height-large;
212
- }
213
- }
214
- }
215
-
216
-
217
- // Form groups
218
- //
219
- // Designed to help with the organization and spacing of vertical forms. For
220
- // horizontal forms, use the predefined grid classes.
221
-
222
- .form-group {
223
- margin-bottom: @form-group-margin-bottom;
224
- margin-right: @form-group-margin-bottom;
225
- }
226
-
227
-
228
- // Checkboxes and radios
229
- //
230
- // Indent the labels to position radios/checkboxes as hanging controls.
231
-
232
- .radio,
233
- .checkbox {
234
- position: relative;
235
- display: block;
236
- margin-top: 10px;
237
- margin-bottom: 10px;
238
- label {
239
- min-height: @line-height-computed; // Ensure the input doesn't jump when there is no text
240
- padding-left: 20px;
241
- margin-bottom: 0;
242
- font-weight: normal;
243
- cursor: pointer;
244
- color: black;
245
- }
246
- }
247
- .radio input[type="radio"],
248
- .radio-inline input[type="radio"],
249
- .checkbox input[type="checkbox"],
250
- .checkbox-inline input[type="checkbox"] {
251
- position: absolute;
252
- margin-left: -20px;
253
- margin-top: 4px \9;
254
- }
255
-
256
- .radio + .radio,
257
- .checkbox + .checkbox {
258
- margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
259
- }
260
-
261
- // Radios and checkboxes on same line
262
- .radio-inline,
263
- .checkbox-inline {
264
- position: relative;
265
- display: inline-block;
266
- padding-left: 20px;
267
- margin-bottom: 0;
268
- vertical-align: middle;
269
- font-weight: normal;
270
- cursor: pointer;
271
- }
272
- .radio-inline + .radio-inline,
273
- .checkbox-inline + .checkbox-inline {
274
- margin-top: 0;
275
- margin-left: 10px; // space out consecutive inline controls
276
- }
277
-
278
- // Apply same disabled cursor tweak as for inputs
279
- // Some special care is needed because <label>s don't inherit their parent's `cursor`.
280
- //
281
- // Note: Neither radios nor checkboxes can be readonly.
282
- input[type="radio"],
283
- input[type="checkbox"] {
284
- &[disabled],
285
- &.disabled,
286
- fieldset[disabled] & {
287
- cursor: @cursor-disabled;
288
- }
289
- }
290
- // These classes are used directly on <label>s
291
- .radio-inline,
292
- .checkbox-inline {
293
- &.disabled,
294
- fieldset[disabled] & {
295
- cursor: @cursor-disabled;
296
- }
297
- }
298
- // These classes are used on elements with <label> descendants
299
- .radio,
300
- .checkbox {
301
- &.disabled,
302
- fieldset[disabled] & {
303
- label {
304
- cursor: @cursor-disabled;
305
- }
306
- }
307
- }
308
-
309
-
310
- // Static form control text
311
- //
312
- // Apply class to a `p` element to make any string of text align with labels in
313
- // a horizontal form layout.
314
-
315
- .form-control-static {
316
- // Size it appropriately next to real form controls
317
- padding-top: (@padding-base-vertical + 1);
318
- padding-bottom: (@padding-base-vertical + 1);
319
- // Remove default margin from `p`
320
- margin-bottom: 0;
321
- min-height: (@line-height-computed + @font-size-base);
322
-
323
- &.input-lg,
324
- &.input-sm {
325
- padding-left: 0;
326
- padding-right: 0;
327
- }
328
- }
329
-
330
-
331
- // Form control sizing
332
- //
333
- // Build on `.form-control` with modifier classes to decrease or increase the
334
- // height and font-size of form controls.
335
- //
336
- // The `.form-group-* form-control` variations are sadly duplicated to avoid the
337
- // issue documented in https://github.com/twbs/bootstrap/issues/15074.
338
-
339
- .input-sm {
340
- .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
341
- }
342
- .form-group-sm {
343
- .form-control {
344
- height: @input-height-small;
345
- padding: @padding-small-vertical @padding-small-horizontal;
346
- font-size: @font-size-small;
347
- line-height: @line-height-small;
348
- border-radius: @input-border-radius-small;
349
- }
350
- select.form-control {
351
- height: @input-height-small;
352
- line-height: @input-height-small;
353
- }
354
- textarea.form-control,
355
- select[multiple].form-control {
356
- height: auto;
357
- }
358
- .form-control-static {
359
- height: @input-height-small;
360
- min-height: (@line-height-computed + @font-size-small);
361
- padding: (@padding-small-vertical + 1) @padding-small-horizontal;
362
- font-size: @font-size-small;
363
- line-height: @line-height-small;
364
- }
365
- }
366
-
367
- .input-lg {
368
- .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large);
369
- }
370
- .form-group-lg {
371
- .form-control {
372
- height: @input-height-large;
373
- padding: @padding-large-vertical @padding-large-horizontal;
374
- font-size: @font-size-large;
375
- line-height: @line-height-large;
376
- border-radius: @input-border-radius-large;
377
- }
378
- select.form-control {
379
- height: @input-height-large;
380
- line-height: @input-height-large;
381
- }
382
- textarea.form-control,
383
- select[multiple].form-control {
384
- height: auto;
385
- }
386
- .form-control-static {
387
- height: @input-height-large;
388
- min-height: (@line-height-computed + @font-size-large);
389
- padding: (@padding-large-vertical + 1) @padding-large-horizontal;
390
- font-size: @font-size-large;
391
- line-height: @line-height-large;
392
- }
393
- }
394
-
395
-
396
- // Form control feedback states
397
- //
398
- // Apply contextual and semantic states to individual form controls.
399
-
400
- .has-feedback {
401
- // Enable absolute positioning
402
- position: relative;
403
-
404
- // Ensure icons don't overlap text
405
- .form-control {
406
- padding-right: (@input-height-base * 1.25);
407
- }
408
- }
409
- // Feedback icon (requires .glyphicon classes)
410
- .form-control-feedback {
411
- position: absolute;
412
- top: 0;
413
- right: 0;
414
- z-index: 2; // Ensure icon is above input groups
415
- display: block;
416
- width: @input-height-base;
417
- height: @input-height-base;
418
- line-height: @input-height-base;
419
- text-align: center;
420
- pointer-events: none;
421
- }
422
- .input-lg + .form-control-feedback,
423
- .input-group-lg + .form-control-feedback,
424
- .form-group-lg .form-control + .form-control-feedback {
425
- width: @input-height-large;
426
- height: @input-height-large;
427
- line-height: @input-height-large;
428
- }
429
- .input-sm + .form-control-feedback,
430
- .input-group-sm + .form-control-feedback,
431
- .form-group-sm .form-control + .form-control-feedback {
432
- width: @input-height-small;
433
- height: @input-height-small;
434
- line-height: @input-height-small;
435
- }
436
-
437
- // Feedback states
438
- .has-success {
439
- .form-control-validation(@state-success-text; @state-success-text; @state-success-bg);
440
- }
441
- .has-warning {
442
- .form-control-validation(@state-warning-text; @state-warning-text; @state-warning-bg);
443
- }
444
- .has-error {
445
- .form-control-validation(@state-danger-text; @state-danger-text; @state-danger-bg);
446
- }
447
-
448
- // Reposition feedback icon if input has visible label above
449
- .has-feedback label {
450
-
451
- & ~ .form-control-feedback {
452
- top: (@line-height-computed + 5); // Height of the `label` and its margin
453
- }
454
- &.sr-only ~ .form-control-feedback {
455
- top: 0;
456
- }
457
- }
458
-
459
-
460
- // Help text
461
- //
462
- // Apply to any element you wish to create light text for placement immediately
463
- // below a form control. Use for general help, formatting, or instructional text.
464
-
465
- .help-block {
466
- display: block; // account for any element using help-block
467
- margin-top: 5px;
468
- margin-bottom: 10px;
469
- color: lighten(@text-color, 25%); // lighten the text some for contrast
470
- }
471
-
472
-
473
- // Inline forms
474
- //
475
- // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
476
- // forms begin stacked on extra small (mobile) devices and then go inline when
477
- // viewports reach <768px.
478
- //
479
- // Requires wrapping inputs and labels with `.form-group` for proper display of
480
- // default HTML form controls and our custom form controls (e.g., input groups).
481
- //
482
- // Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
483
-
484
- .form-inline {
485
-
486
- // Kick in the inline
487
- @media (min-width: @screen-sm-min) {
488
- // Inline-block all the things for "inline"
489
- .form-group {
490
- display: inline-block;
491
- margin-bottom: 10px; // 原本是0px
492
- margin-right: 10px; // 原本是0px
493
- vertical-align: middle;
494
- //原本没有,因为字体变为白色,所以加了black
495
- color: black;
496
- }
497
-
498
- // In navbar-form, allow folks to *not* use `.form-group`
499
- .form-control {
500
- display: inline-block;
501
- width: auto; // Prevent labels from stacking above inputs in `.form-group`
502
- vertical-align: middle;
503
- }
504
-
505
- // Make static controls behave like regular ones
506
- .form-control-static {
507
- display: inline-block;
508
- }
509
-
510
- .input-group {
511
- display: inline-table;
512
- vertical-align: middle;
513
-
514
- .input-group-addon,
515
- .input-group-btn,
516
- .form-control {
517
- width: auto;
518
- }
519
- }
520
-
521
- // Input groups need that 100% width though
522
- .input-group > .form-control {
523
- width: 100%;
524
- }
525
-
526
- .control-label {
527
- margin-bottom: 0;
528
- vertical-align: middle;
529
- }
530
-
531
- // Remove default margin on radios/checkboxes that were used for stacking, and
532
- // then undo the floating of radios and checkboxes to match.
533
- .radio,
534
- .checkbox {
535
- display: inline-block;
536
- margin-top: 0;
537
- margin-bottom: 0;
538
- vertical-align: middle;
539
-
540
- label {
541
- padding-left: 0;
542
- }
543
- }
544
- .radio input[type="radio"],
545
- .checkbox input[type="checkbox"] {
546
- position: relative;
547
- margin-left: 0;
548
- }
549
-
550
- // Re-override the feedback icon.
551
- .has-feedback .form-control-feedback {
552
- top: 0;
553
- }
554
- }
555
- }
556
-
557
-
558
- // Horizontal forms
559
- //
560
- // Horizontal forms are built on grid classes and allow you to create forms with
561
- // labels on the left and inputs on the right.
562
-
563
- .form-horizontal {
564
-
565
- // Consistent vertical alignment of radios and checkboxes
566
- //
567
- // Labels also get some reset styles, but that is scoped to a media query below.
568
- .radio,
569
- .checkbox,
570
- .radio-inline,
571
- .checkbox-inline {
572
- margin-top: 0;
573
- margin-bottom: 0;
574
- padding-top: (@padding-base-vertical + 1); // Default padding plus a border
575
- }
576
- // Account for padding we're adding to ensure the alignment and of help text
577
- // and other content below items
578
- .radio,
579
- .checkbox {
580
- min-height: (@line-height-computed + (@padding-base-vertical + 1));
581
- }
582
-
583
- // Make form groups behave like rows
584
- .form-group {
585
- .make-row();
586
- }
587
-
588
- // Reset spacing and right align labels, but scope to media queries so that
589
- // labels on narrow viewports stack the same as a default form example.
590
- @media (min-width: @screen-sm-min) {
591
- .control-label {
592
- text-align: right;
593
- margin-bottom: 0;
594
- padding-top: (@padding-base-vertical + 1); // Default padding plus a border
595
- }
596
- }
597
-
598
- // Validation states
599
- //
600
- // Reposition the icon because it's now within a grid column and columns have
601
- // `position: relative;` on them. Also accounts for the grid gutter padding.
602
- .has-feedback .form-control-feedback {
603
- right: floor((@grid-gutter-width / 2));
604
- }
605
-
606
- // Form group sizes
607
- //
608
- // Quick utility class for applying `.input-lg` and `.input-sm` styles to the
609
- // inputs and labels within a `.form-group`.
610
- .form-group-lg {
611
- @media (min-width: @screen-sm-min) {
612
- .control-label {
613
- padding-top: ((@padding-large-vertical * @line-height-large) + 1);
614
- font-size: @font-size-large;
615
- }
616
- }
617
- }
618
- .form-group-sm {
619
- @media (min-width: @screen-sm-min) {
620
- .control-label {
621
- padding-top: (@padding-small-vertical + 1);
622
- font-size: @font-size-small;
623
- }
624
- }
625
- }
626
- }
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: 7px; // 原本为5px
36
+ font-weight: bold;
37
+ // 原本没有,自己添加
38
+ text-align: right;
39
+ padding-right: 10px;
40
+ // padding-top: 7px;// 为了label的内同人个form-control中的内容对齐设置
41
+ }
42
+
43
+
44
+ // Normalize form controls
45
+ //
46
+ // While most of our form styles require extra classes, some basic normalization
47
+ // is required to ensure optimum display with or without those classes to better
48
+ // address browser inconsistencies.
49
+
50
+ // Override content-box in Normalize (* isn't specific enough)
51
+ input[type="search"] {
52
+ .box-sizing(border-box);
53
+ }
54
+
55
+ // Position radios and checkboxes better
56
+ input[type="radio"],
57
+ input[type="checkbox"] {
58
+ margin: 4px 0 0;
59
+ margin-top: 1px \9; // IE8-9
60
+ line-height: normal;
61
+ }
62
+
63
+ input[type="file"] {
64
+ display: block;
65
+ }
66
+
67
+ // Make range inputs behave like textual form controls
68
+ input[type="range"] {
69
+ display: block;
70
+ width: 100%;
71
+ }
72
+
73
+ // Make multiple select elements height not fixed
74
+ select[multiple],
75
+ select[size] {
76
+ height: auto;
77
+ }
78
+
79
+ // Focus for file, radio, and checkbox
80
+ input[type="file"]:focus,
81
+ input[type="radio"]:focus,
82
+ input[type="checkbox"]:focus {
83
+ .tab-focus();
84
+ }
85
+
86
+ // Adjust output element
87
+ output {
88
+ display: block;
89
+ padding-top: (@padding-base-vertical + 1);
90
+ font-size: @font-size-base;
91
+ line-height: @line-height-base;
92
+ color: @input-color;
93
+ }
94
+
95
+
96
+ // Common form controls
97
+ //
98
+ // Shared size and type resets for form controls. Apply `.form-control` to any
99
+ // of the following form controls:
100
+ //
101
+ // select
102
+ // textarea
103
+ // input[type="text"]
104
+ // input[type="password"]
105
+ // input[type="datetime"]
106
+ // input[type="datetime-local"]
107
+ // input[type="date"]
108
+ // input[type="month"]
109
+ // input[type="time"]
110
+ // input[type="week"]
111
+ // input[type="number"]
112
+ // input[type="email"]
113
+ // input[type="url"]
114
+ // input[type="search"]
115
+ // input[type="tel"]
116
+ // input[type="color"]
117
+
118
+ .form-control {
119
+ // contom style 自己添加
120
+ height: auto;
121
+ outline: none;
122
+ border: 1px solid #93B2D3;
123
+ // border-bottom: 2px solid #C9CCCF;
124
+ // border-top-width: 0px;
125
+ // border-left-width: 0px;
126
+ // border-right-width: 0px;
127
+ // margin-right: 5px;
128
+ // // 一下是原本就有的
129
+ display: block;
130
+ width: 100%;
131
+ // height: @input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
132
+ padding: @padding-base-vertical @padding-base-horizontal;
133
+ font-size: @font-size-base;
134
+ line-height: @line-height-base;
135
+ color: @input-color;
136
+ // // background-color: @input-bg;
137
+ // background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
138
+ // border: 0px solid @input-border; // 原本为1px
139
+ // // 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.
140
+ // .box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
141
+ .transition(~"border-color ease-in-out .15s, box-shadow ease-in-out .15s");
142
+
143
+ // Customize the `:focus` state to imitate native WebKit styles.
144
+ .form-control-focus();
145
+
146
+ // Placeholder
147
+ .placeholder();
148
+
149
+ // Disabled and read-only inputs
150
+ //
151
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
152
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
153
+ // don't honor that edge case; we style them as disabled anyway.
154
+ &[disabled],
155
+ &[readonly],
156
+ fieldset[disabled] & {
157
+ background-color: @input-bg-disabled;
158
+ opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
159
+ }
160
+
161
+ &[disabled],
162
+ fieldset[disabled] & {
163
+ cursor: @cursor-disabled;
164
+ border: none;
165
+ }
166
+
167
+ // Reset height for `textarea`s
168
+ textarea& {
169
+ height: auto;
170
+ }
171
+ }
172
+
173
+
174
+ // Search inputs in iOS
175
+ //
176
+ // This overrides the extra rounded corners on search inputs in iOS so that our
177
+ // `.form-control` class can properly style them. Note that this cannot simply
178
+ // be added to `.form-control` as it's not specific enough. For details, see
179
+ // https://github.com/twbs/bootstrap/issues/11586.
180
+
181
+ input[type="search"] {
182
+ -webkit-appearance: none;
183
+ }
184
+
185
+
186
+ // Special styles for iOS temporal inputs
187
+ //
188
+ // In Mobile Safari, setting `display: block` on temporal inputs causes the
189
+ // text within the input to become vertically misaligned. As a workaround, we
190
+ // set a pixel line-height that matches the given height of the input, but only
191
+ // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
192
+ //
193
+ // Note that as of 8.3, iOS doesn't support `datetime` or `week`.
194
+
195
+ @media screen and (-webkit-min-device-pixel-ratio: 0) {
196
+ input[type="date"],
197
+ input[type="time"],
198
+ input[type="datetime-local"],
199
+ input[type="month"] {
200
+ &.form-control {
201
+ line-height: @input-height-base;
202
+ }
203
+
204
+ &.input-sm,
205
+ .input-group-sm & {
206
+ line-height: @input-height-small;
207
+ }
208
+
209
+ &.input-lg,
210
+ .input-group-lg & {
211
+ line-height: @input-height-large;
212
+ }
213
+ }
214
+ }
215
+
216
+
217
+ // Form groups
218
+ //
219
+ // Designed to help with the organization and spacing of vertical forms. For
220
+ // horizontal forms, use the predefined grid classes.
221
+
222
+ .form-group {
223
+ margin-bottom: @form-group-margin-bottom;
224
+ margin-right: @form-group-margin-bottom;
225
+ }
226
+
227
+
228
+ // Checkboxes and radios
229
+ //
230
+ // Indent the labels to position radios/checkboxes as hanging controls.
231
+
232
+ .radio,
233
+ .checkbox {
234
+ position: relative;
235
+ display: block;
236
+ margin-top: 10px;
237
+ margin-bottom: 10px;
238
+ label {
239
+ min-height: @line-height-computed; // Ensure the input doesn't jump when there is no text
240
+ padding-left: 20px;
241
+ margin-bottom: 0;
242
+ font-weight: normal;
243
+ cursor: pointer;
244
+ color: black;
245
+ }
246
+ }
247
+ .radio input[type="radio"],
248
+ .radio-inline input[type="radio"],
249
+ .checkbox input[type="checkbox"],
250
+ .checkbox-inline input[type="checkbox"] {
251
+ position: absolute;
252
+ margin-left: -20px;
253
+ margin-top: 4px \9;
254
+ }
255
+
256
+ .radio + .radio,
257
+ .checkbox + .checkbox {
258
+ margin-top: -5px; // Move up sibling radios or checkboxes for tighter spacing
259
+ }
260
+
261
+ // Radios and checkboxes on same line
262
+ .radio-inline,
263
+ .checkbox-inline {
264
+ position: relative;
265
+ display: inline-block;
266
+ padding-left: 20px;
267
+ margin-bottom: 0;
268
+ vertical-align: middle;
269
+ font-weight: normal;
270
+ cursor: pointer;
271
+ }
272
+ .radio-inline + .radio-inline,
273
+ .checkbox-inline + .checkbox-inline {
274
+ margin-top: 0;
275
+ margin-left: 10px; // space out consecutive inline controls
276
+ }
277
+
278
+ // Apply same disabled cursor tweak as for inputs
279
+ // Some special care is needed because <label>s don't inherit their parent's `cursor`.
280
+ //
281
+ // Note: Neither radios nor checkboxes can be readonly.
282
+ input[type="radio"],
283
+ input[type="checkbox"] {
284
+ &[disabled],
285
+ &.disabled,
286
+ fieldset[disabled] & {
287
+ cursor: @cursor-disabled;
288
+ }
289
+ }
290
+ // These classes are used directly on <label>s
291
+ .radio-inline,
292
+ .checkbox-inline {
293
+ &.disabled,
294
+ fieldset[disabled] & {
295
+ cursor: @cursor-disabled;
296
+ }
297
+ }
298
+ // These classes are used on elements with <label> descendants
299
+ .radio,
300
+ .checkbox {
301
+ &.disabled,
302
+ fieldset[disabled] & {
303
+ label {
304
+ cursor: @cursor-disabled;
305
+ }
306
+ }
307
+ }
308
+
309
+
310
+ // Static form control text
311
+ //
312
+ // Apply class to a `p` element to make any string of text align with labels in
313
+ // a horizontal form layout.
314
+
315
+ .form-control-static {
316
+ // Size it appropriately next to real form controls
317
+ padding-top: (@padding-base-vertical + 1);
318
+ padding-bottom: (@padding-base-vertical + 1);
319
+ // Remove default margin from `p`
320
+ margin-bottom: 0;
321
+ min-height: (@line-height-computed + @font-size-base);
322
+
323
+ &.input-lg,
324
+ &.input-sm {
325
+ padding-left: 0;
326
+ padding-right: 0;
327
+ }
328
+ }
329
+
330
+
331
+ // Form control sizing
332
+ //
333
+ // Build on `.form-control` with modifier classes to decrease or increase the
334
+ // height and font-size of form controls.
335
+ //
336
+ // The `.form-group-* form-control` variations are sadly duplicated to avoid the
337
+ // issue documented in https://github.com/twbs/bootstrap/issues/15074.
338
+
339
+ .input-sm {
340
+ .input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
341
+ }
342
+ .form-group-sm {
343
+ .form-control {
344
+ height: @input-height-small;
345
+ padding: @padding-small-vertical @padding-small-horizontal;
346
+ font-size: @font-size-small;
347
+ line-height: @line-height-small;
348
+ border-radius: @input-border-radius-small;
349
+ }
350
+ select.form-control {
351
+ height: @input-height-small;
352
+ line-height: @input-height-small;
353
+ }
354
+ textarea.form-control,
355
+ select[multiple].form-control {
356
+ height: auto;
357
+ }
358
+ .form-control-static {
359
+ height: @input-height-small;
360
+ min-height: (@line-height-computed + @font-size-small);
361
+ padding: (@padding-small-vertical + 1) @padding-small-horizontal;
362
+ font-size: @font-size-small;
363
+ line-height: @line-height-small;
364
+ }
365
+ }
366
+
367
+ .input-lg {
368
+ .input-size(@input-height-large; @padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @input-border-radius-large);
369
+ }
370
+ .form-group-lg {
371
+ .form-control {
372
+ height: @input-height-large;
373
+ padding: @padding-large-vertical @padding-large-horizontal;
374
+ font-size: @font-size-large;
375
+ line-height: @line-height-large;
376
+ border-radius: @input-border-radius-large;
377
+ }
378
+ select.form-control {
379
+ height: @input-height-large;
380
+ line-height: @input-height-large;
381
+ }
382
+ textarea.form-control,
383
+ select[multiple].form-control {
384
+ height: auto;
385
+ }
386
+ .form-control-static {
387
+ height: @input-height-large;
388
+ min-height: (@line-height-computed + @font-size-large);
389
+ padding: (@padding-large-vertical + 1) @padding-large-horizontal;
390
+ font-size: @font-size-large;
391
+ line-height: @line-height-large;
392
+ }
393
+ }
394
+
395
+
396
+ // Form control feedback states
397
+ //
398
+ // Apply contextual and semantic states to individual form controls.
399
+
400
+ .has-feedback {
401
+ // Enable absolute positioning
402
+ position: relative;
403
+
404
+ // Ensure icons don't overlap text
405
+ .form-control {
406
+ padding-right: (@input-height-base * 1.25);
407
+ }
408
+ }
409
+ // Feedback icon (requires .glyphicon classes)
410
+ .form-control-feedback {
411
+ position: absolute;
412
+ top: 0;
413
+ right: 0;
414
+ z-index: 2; // Ensure icon is above input groups
415
+ display: block;
416
+ width: @input-height-base;
417
+ height: @input-height-base;
418
+ line-height: @input-height-base;
419
+ text-align: center;
420
+ pointer-events: none;
421
+ }
422
+ .input-lg + .form-control-feedback,
423
+ .input-group-lg + .form-control-feedback,
424
+ .form-group-lg .form-control + .form-control-feedback {
425
+ width: @input-height-large;
426
+ height: @input-height-large;
427
+ line-height: @input-height-large;
428
+ }
429
+ .input-sm + .form-control-feedback,
430
+ .input-group-sm + .form-control-feedback,
431
+ .form-group-sm .form-control + .form-control-feedback {
432
+ width: @input-height-small;
433
+ height: @input-height-small;
434
+ line-height: @input-height-small;
435
+ }
436
+
437
+ // Feedback states
438
+ .has-success {
439
+ .form-control-validation(@state-success-text; @state-success-text; @state-success-bg);
440
+ }
441
+ .has-warning {
442
+ .form-control-validation(@state-warning-text; @state-warning-text; @state-warning-bg);
443
+ }
444
+ .has-error {
445
+ .form-control-validation(@state-danger-text; @state-danger-text; @state-danger-bg);
446
+ }
447
+
448
+ // Reposition feedback icon if input has visible label above
449
+ .has-feedback label {
450
+
451
+ & ~ .form-control-feedback {
452
+ top: (@line-height-computed + 5); // Height of the `label` and its margin
453
+ }
454
+ &.sr-only ~ .form-control-feedback {
455
+ top: 0;
456
+ }
457
+ }
458
+
459
+
460
+ // Help text
461
+ //
462
+ // Apply to any element you wish to create light text for placement immediately
463
+ // below a form control. Use for general help, formatting, or instructional text.
464
+
465
+ .help-block {
466
+ display: block; // account for any element using help-block
467
+ margin-top: 5px;
468
+ margin-bottom: 10px;
469
+ color: lighten(@text-color, 25%); // lighten the text some for contrast
470
+ }
471
+
472
+
473
+ // Inline forms
474
+ //
475
+ // Make forms appear inline(-block) by adding the `.form-inline` class. Inline
476
+ // forms begin stacked on extra small (mobile) devices and then go inline when
477
+ // viewports reach <768px.
478
+ //
479
+ // Requires wrapping inputs and labels with `.form-group` for proper display of
480
+ // default HTML form controls and our custom form controls (e.g., input groups).
481
+ //
482
+ // Heads up! This is mixin-ed into `.navbar-form` in navbars.less.
483
+
484
+ .form-inline {
485
+
486
+ // Kick in the inline
487
+ @media (min-width: @screen-sm-min) {
488
+ // Inline-block all the things for "inline"
489
+ .form-group {
490
+ display: inline-block;
491
+ margin-bottom: 10px; // 原本是0px
492
+ margin-right: 10px; // 原本是0px
493
+ vertical-align: middle;
494
+ //原本没有,因为字体变为白色,所以加了black
495
+ color: black;
496
+ }
497
+
498
+ // In navbar-form, allow folks to *not* use `.form-group`
499
+ .form-control {
500
+ display: inline-block;
501
+ width: auto; // Prevent labels from stacking above inputs in `.form-group`
502
+ vertical-align: middle;
503
+ }
504
+
505
+ // Make static controls behave like regular ones
506
+ .form-control-static {
507
+ display: inline-block;
508
+ }
509
+
510
+ .input-group {
511
+ display: inline-table;
512
+ vertical-align: middle;
513
+
514
+ .input-group-addon,
515
+ .input-group-btn,
516
+ .form-control {
517
+ width: auto;
518
+ }
519
+ }
520
+
521
+ // Input groups need that 100% width though
522
+ .input-group > .form-control {
523
+ width: 100%;
524
+ }
525
+
526
+ .control-label {
527
+ margin-bottom: 0;
528
+ vertical-align: middle;
529
+ }
530
+
531
+ // Remove default margin on radios/checkboxes that were used for stacking, and
532
+ // then undo the floating of radios and checkboxes to match.
533
+ .radio,
534
+ .checkbox {
535
+ display: inline-block;
536
+ margin-top: 0;
537
+ margin-bottom: 0;
538
+ vertical-align: middle;
539
+
540
+ label {
541
+ padding-left: 0;
542
+ }
543
+ }
544
+ .radio input[type="radio"],
545
+ .checkbox input[type="checkbox"] {
546
+ position: relative;
547
+ margin-left: 0;
548
+ }
549
+
550
+ // Re-override the feedback icon.
551
+ .has-feedback .form-control-feedback {
552
+ top: 0;
553
+ }
554
+ }
555
+ }
556
+
557
+
558
+ // Horizontal forms
559
+ //
560
+ // Horizontal forms are built on grid classes and allow you to create forms with
561
+ // labels on the left and inputs on the right.
562
+
563
+ .form-horizontal {
564
+
565
+ // Consistent vertical alignment of radios and checkboxes
566
+ //
567
+ // Labels also get some reset styles, but that is scoped to a media query below.
568
+ .radio,
569
+ .checkbox,
570
+ .radio-inline,
571
+ .checkbox-inline {
572
+ margin-top: 0;
573
+ margin-bottom: 0;
574
+ padding-top: (@padding-base-vertical + 1); // Default padding plus a border
575
+ }
576
+ // Account for padding we're adding to ensure the alignment and of help text
577
+ // and other content below items
578
+ .radio,
579
+ .checkbox {
580
+ min-height: (@line-height-computed + (@padding-base-vertical + 1));
581
+ }
582
+
583
+ // Make form groups behave like rows
584
+ .form-group {
585
+ .make-row();
586
+ }
587
+
588
+ // Reset spacing and right align labels, but scope to media queries so that
589
+ // labels on narrow viewports stack the same as a default form example.
590
+ @media (min-width: @screen-sm-min) {
591
+ .control-label {
592
+ text-align: right;
593
+ margin-bottom: 0;
594
+ padding-top: (@padding-base-vertical + 1); // Default padding plus a border
595
+ }
596
+ }
597
+
598
+ // Validation states
599
+ //
600
+ // Reposition the icon because it's now within a grid column and columns have
601
+ // `position: relative;` on them. Also accounts for the grid gutter padding.
602
+ .has-feedback .form-control-feedback {
603
+ right: floor((@grid-gutter-width / 2));
604
+ }
605
+
606
+ // Form group sizes
607
+ //
608
+ // Quick utility class for applying `.input-lg` and `.input-sm` styles to the
609
+ // inputs and labels within a `.form-group`.
610
+ .form-group-lg {
611
+ @media (min-width: @screen-sm-min) {
612
+ .control-label {
613
+ padding-top: ((@padding-large-vertical * @line-height-large) + 1);
614
+ font-size: @font-size-large;
615
+ }
616
+ }
617
+ }
618
+ .form-group-sm {
619
+ @media (min-width: @screen-sm-min) {
620
+ .control-label {
621
+ padding-top: (@padding-small-vertical + 1);
622
+ font-size: @font-size-small;
623
+ }
624
+ }
625
+ }
626
+ }