system-clients 3.3.6 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/.eslintrc.js +16 -16
  2. package/SystemClient.iml +8 -8
  3. package/build/webpack.base.conf.js +85 -85
  4. package/build.gradle +6 -6
  5. package/examples/LoginPage/App.vue +21 -21
  6. package/examples/LoginPage/index.html +11 -11
  7. package/examples/LoginPage/main.js +15 -15
  8. package/index.html +21 -21
  9. package/package.json +105 -105
  10. package/src/App.vue +24 -24
  11. package/src/LodopFuncs.js +155 -155
  12. package/src/components/Main.vue +935 -935
  13. package/src/components/TabButton.vue +201 -201
  14. package/src/components/Tabs.vue +67 -67
  15. package/src/components/Util.js +343 -343
  16. package/src/components/addressManage/AddressCascadingMenu.vue +145 -145
  17. package/src/components/common/ProgressBase.vue +83 -83
  18. package/src/components/equipment/EquipmentManage.vue +83 -83
  19. package/src/components/equipment/PcAdd.vue +115 -115
  20. package/src/components/equipment/PcList.vue +119 -119
  21. package/src/components/equipment/PcManage.vue +61 -61
  22. package/src/components/equipment/PhoneAdd.vue +118 -118
  23. package/src/components/equipment/PhoneList.vue +113 -113
  24. package/src/components/equipment/PhoneManage.vue +61 -61
  25. package/src/components/equipment/PosAdd.vue +319 -319
  26. package/src/components/equipment/PosList.vue +292 -292
  27. package/src/components/equipment/PosManage.vue +138 -138
  28. package/src/components/equipment/PosManageBoth.vue +125 -125
  29. package/src/components/equipment/PosParamAdd.vue +236 -236
  30. package/src/components/equipment/PosParamList.vue +121 -121
  31. package/src/components/equipment/PosParamManage.vue +51 -51
  32. package/src/components/materialManage/materialData.vue +44 -44
  33. package/src/components/materialManage/materialList.vue +255 -255
  34. package/src/components/parammanage/ParamManage.vue +42 -42
  35. package/src/components/parammanage/ParamPage.vue +337 -337
  36. package/src/components/parammanage/ParamPages.vue +222 -222
  37. package/src/components/parammanage/SinglePage.vue +235 -235
  38. package/src/components/parammanage/SinglePages.vue +167 -167
  39. package/src/components/server/AddChangeMsg.vue +66 -66
  40. package/src/components/server/ChangeDeclare.vue +45 -45
  41. package/src/components/server/ImageVieweTest.vue +56 -56
  42. package/src/components/server/ImageViewer.vue +350 -350
  43. package/src/components/server/LeftTree.vue +111 -111
  44. package/src/components/server/LoadData.vue +55 -55
  45. package/src/components/server/Login.vue +615 -615
  46. package/src/components/server/LoginPage.vue +235 -235
  47. package/src/components/server/LoginView.vue +128 -128
  48. package/src/components/server/Menu.vue +188 -188
  49. package/src/components/server/ModifyPw.vue +126 -126
  50. package/src/components/server/PcdBuildingSelect.vue +243 -243
  51. package/src/components/server/ResSelect.vue +172 -172
  52. package/src/components/server/ResSelectGroup.vue +211 -211
  53. package/src/components/server/RightTree.vue +348 -348
  54. package/src/components/server/RoleSelector.vue +90 -90
  55. package/src/components/server/TestResSelect.vue +58 -58
  56. package/src/components/server/TestResSelectGroup.vue +388 -388
  57. package/src/filiale/baole/Login.vue +570 -570
  58. package/src/filiale/baole/system.js +5 -5
  59. package/src/filiale/bayan/PosAdd.vue +368 -368
  60. package/src/filiale/bayan/PosList.vue +341 -341
  61. package/src/filiale/bayan/PosManage.vue +138 -138
  62. package/src/filiale/bayan/system.js +6 -6
  63. package/src/filiale/chengtou/Login.vue +539 -539
  64. package/src/filiale/chengtou/system.js +5 -5
  65. package/src/filiale/dongguan/Login.vue +902 -902
  66. package/src/filiale/dongguan/Main.vue +717 -717
  67. package/src/filiale/dongguan/system.js +6 -6
  68. package/src/filiale/furuike/Login.vue +587 -587
  69. package/src/filiale/furuike/Main.vue +840 -840
  70. package/src/filiale/furuike/system.js +7 -7
  71. package/src/filiale/gehua/Main.vue +809 -809
  72. package/src/filiale/gehua/system.js +6 -6
  73. package/src/filiale/konggang/Login.vue +472 -472
  74. package/src/filiale/konggang/system.js +7 -7
  75. package/src/filiale/qianneng/Login.vue +584 -584
  76. package/src/filiale/qianneng/Main.vue +818 -818
  77. package/src/filiale/qianneng/ModifyPw.vue +108 -108
  78. package/src/filiale/qianneng/system.js +11 -11
  79. package/src/filiale/rizhao/LeftTree.vue +111 -111
  80. package/src/filiale/rizhao/Login.vue +793 -793
  81. package/src/filiale/rizhao/Main.vue +611 -611
  82. package/src/filiale/rizhao/system.js +14 -14
  83. package/src/filiale/ruihua/Login.vue +576 -576
  84. package/src/filiale/ruihua/system.js +5 -5
  85. package/src/filiale/shiquan/Login.vue +566 -566
  86. package/src/filiale/shiquan/system.js +8 -8
  87. package/src/filiale/tianyi/Login.vue +573 -573
  88. package/src/filiale/tianyi/system.js +5 -5
  89. package/src/filiale/tongchuan/Login.vue +563 -563
  90. package/src/filiale/tongchuan/Main.vue +1021 -1021
  91. package/src/filiale/tongchuan/system.js +7 -7
  92. package/src/filiale/weinan/Main.vue +924 -924
  93. package/src/filiale/weinan/system.js +7 -7
  94. package/src/filiale/wenxi/Login.vue +537 -537
  95. package/src/filiale/wenxi/Main.vue +787 -787
  96. package/src/filiale/wenxi/system.js +10 -10
  97. package/src/filiale/wuhai/LeftTree.vue +141 -141
  98. package/src/filiale/wuhai/Main.vue +810 -810
  99. package/src/filiale/wuhai/system.js +10 -10
  100. package/src/filiale/yuchuan/Login.vue +891 -891
  101. package/src/filiale/yuchuan/Main.vue +866 -866
  102. package/src/filiale/yuchuan/system.js +10 -10
  103. package/src/filiale/zhoukou/Main.vue +809 -809
  104. package/src/filiale/zhoukou/system.js +6 -6
  105. package/src/plugins/EncryptUtil.js +53 -53
  106. package/src/plugins/GetLoginInfoService.js +480 -480
  107. package/src/plugins/HeatGetLoginInfoService.js +491 -491
  108. package/src/plugins/validation.js +15 -15
  109. package/src/project/State.js +17 -17
  110. package/src/stores/AppData.js +38 -38
  111. package/src/stores/HeatAppData.js +38 -38
  112. package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
  113. package/src/styles/less/.csscomb.json +304 -304
  114. package/src/styles/less/.csslintrc +19 -19
  115. package/src/styles/less/alerts.less +73 -73
  116. package/src/styles/less/aofeng/animate.min.css +10 -10
  117. package/src/styles/less/aofeng/expandcss.less +569 -569
  118. package/src/styles/less/aofeng/login.less +367 -367
  119. package/src/styles/less/aofeng/standard.less +2507 -2507
  120. package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +690 -690
  121. package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
  122. package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
  123. package/src/styles/less/aofeng/themeOne.less +17 -17
  124. package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
  125. package/src/styles/less/aofeng/themeTwo.less +3 -3
  126. package/src/styles/less/badges.less +66 -66
  127. package/src/styles/less/bootstrap.less +66 -66
  128. package/src/styles/less/breadcrumbs.less +26 -26
  129. package/src/styles/less/button-groups.less +247 -247
  130. package/src/styles/less/buttons.less +172 -172
  131. package/src/styles/less/carousel.less +269 -269
  132. package/src/styles/less/close.less +34 -34
  133. package/src/styles/less/code.less +69 -69
  134. package/src/styles/less/component-animations.less +33 -33
  135. package/src/styles/less/dropdowns.less +216 -216
  136. package/src/styles/less/fonts-list.less +25 -25
  137. package/src/styles/less/forms.less +626 -626
  138. package/src/styles/less/glyphicons.less +305 -305
  139. package/src/styles/less/grid.less +84 -84
  140. package/src/styles/less/input-groups.less +167 -167
  141. package/src/styles/less/jumbotron.less +52 -52
  142. package/src/styles/less/labels.less +64 -64
  143. package/src/styles/less/list-group.less +141 -141
  144. package/src/styles/less/manageStyle/manageChile.less +180 -180
  145. package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -180
  146. package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -1102
  147. package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -498
  148. package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
  149. package/src/styles/less/manageStyle/safeStyle.less +498 -498
  150. package/src/styles/less/media.less +66 -66
  151. package/src/styles/less/mixins/alerts.less +14 -14
  152. package/src/styles/less/mixins/background-variant.less +9 -9
  153. package/src/styles/less/mixins/border-radius.less +18 -18
  154. package/src/styles/less/mixins/buttons.less +69 -69
  155. package/src/styles/less/mixins/center-block.less +7 -7
  156. package/src/styles/less/mixins/clearfix.less +22 -22
  157. package/src/styles/less/mixins/forms.less +90 -90
  158. package/src/styles/less/mixins/gradients.less +59 -59
  159. package/src/styles/less/mixins/grid-framework.less +92 -92
  160. package/src/styles/less/mixins/grid.less +122 -122
  161. package/src/styles/less/mixins/hide-text.less +21 -21
  162. package/src/styles/less/mixins/image.less +33 -33
  163. package/src/styles/less/mixins/labels.less +12 -12
  164. package/src/styles/less/mixins/list-group.less +30 -30
  165. package/src/styles/less/mixins/nav-divider.less +10 -10
  166. package/src/styles/less/mixins/nav-vertical-align.less +9 -9
  167. package/src/styles/less/mixins/opacity.less +8 -8
  168. package/src/styles/less/mixins/pagination.less +24 -24
  169. package/src/styles/less/mixins/panels.less +24 -24
  170. package/src/styles/less/mixins/progress-bar.less +10 -10
  171. package/src/styles/less/mixins/reset-filter.less +8 -8
  172. package/src/styles/less/mixins/reset-text.less +18 -18
  173. package/src/styles/less/mixins/resize.less +6 -6
  174. package/src/styles/less/mixins/responsive-visibility.less +15 -15
  175. package/src/styles/less/mixins/size.less +10 -10
  176. package/src/styles/less/mixins/tab-focus.less +9 -9
  177. package/src/styles/less/mixins/table-row.less +44 -44
  178. package/src/styles/less/mixins/text-emphasis.less +9 -9
  179. package/src/styles/less/mixins/text-overflow.less +8 -8
  180. package/src/styles/less/mixins/vendor-prefixes.less +227 -227
  181. package/src/styles/less/mixins.less +40 -40
  182. package/src/styles/less/modals.less +151 -151
  183. package/src/styles/less/navbar.less +660 -660
  184. package/src/styles/less/navs.less +285 -285
  185. package/src/styles/less/normalize.less +424 -424
  186. package/src/styles/less/pager.less +76 -76
  187. package/src/styles/less/pagination.less +89 -89
  188. package/src/styles/less/panels.less +275 -275
  189. package/src/styles/less/popovers.less +131 -131
  190. package/src/styles/less/print.less +101 -101
  191. package/src/styles/less/progress-bars.less +87 -87
  192. package/src/styles/less/responsive-embed.less +35 -35
  193. package/src/styles/less/responsive-utilities.less +194 -194
  194. package/src/styles/less/scaffolding.less +161 -161
  195. package/src/styles/less/stand.less +207 -207
  196. package/src/styles/less/tables.less +312 -312
  197. package/src/styles/less/theme.less +291 -291
  198. package/src/styles/less/thumbnails.less +36 -36
  199. package/src/styles/less/tooltip.less +102 -102
  200. package/src/styles/less/type.less +316 -316
  201. package/src/styles/less/utilities.less +55 -55
  202. package/src/styles/less/variables.less +899 -899
  203. package/src/styles/less/wells.less +29 -29
  204. package/src/system.js +122 -122
  205. package/src/util/Daiban.json +12 -12
  206. package/yarn-error.log +6896 -6896
  207. package/.gradle/8.5/checksums/checksums.lock +0 -0
  208. package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
  209. package/.gradle/8.5/dependencies-accessors/gc.properties +0 -0
  210. package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
  211. package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
  212. package/.gradle/8.5/fileChanges/last-build.bin +0 -0
  213. package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
  214. package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
  215. package/.gradle/8.5/gc.properties +0 -0
  216. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  217. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  218. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  219. package/.gradle/file-system.probe +0 -0
  220. package/.gradle/vcs-1/gc.properties +0 -0
  221. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  222. package/gradle/wrapper/gradle-wrapper.properties +0 -7
  223. package/gradlew +0 -249
  224. package/gradlew.bat +0 -92
@@ -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
+ }