input-styles.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  1. /**
  2. * 输入框 复选框 CSS 样式
  3. * Copyright (c) 2024
  4. */
  5. /* 基本样式 */
  6. .styled-input {
  7. /*display: block; /* 使其独占一行 */
  8. width: 200px; /* 宽度为容器宽度 */
  9. height: 30px;
  10. padding: 6px; /* 内边距 */
  11. font-size: 14px; /* 字体大小 */
  12. color: #333; /* 字体颜色 */
  13. /*background-color: #fff; !* 背景颜色 *!*/
  14. border: 1px solid #ccc; /* 边框 */
  15. border-radius: 4px; /* 圆角边框 */
  16. outline: none; /* 移除轮廓 */
  17. transition: all 0.3s ease; /* 过渡动画 */
  18. }
  19. /*证件类型前面的小input*/
  20. .styled-input.short {
  21. /*display: block; /* 使其独占一行 */
  22. width: 80px; /* 宽度为容器宽度 */
  23. height: 30px;
  24. padding: 6px; /* 内边距 */
  25. font-size: 14px; /* 字体大小 */
  26. color: #333; /* 字体颜色 */
  27. /*background-color: #fff; !* 背景颜色 *!*/
  28. border: 1px solid #ccc; /* 边框 */
  29. border-radius: 4px; /* 圆角边框 */
  30. outline: none; /* 移除轮廓 */
  31. transition: all 0.3s ease; /* 过渡动画 */
  32. }
  33. .styled-input.edit_inputs1 {
  34. /*display: block; /* 使其独占一行 */
  35. width: 400px; /* 宽度为容器宽度 */
  36. height: 30px;
  37. padding: 6px; /* 内边距 */
  38. font-size: 14px; /* 字体大小 */
  39. color: #333; /* 字体颜色 */
  40. /*background-color: #fff; !* 背景颜色 *!*/
  41. border: 1px solid #ccc; /* 边框 */
  42. border-radius: 4px; /* 圆角边框 */
  43. outline: none; /* 移除轮廓 */
  44. transition: all 0.3s ease; /* 过渡动画 */
  45. }
  46. .customize-form-group .styled-input.edit_inputs {
  47. /*display: block; /* 使其独占一行 */
  48. width: 480px; /* 宽度为容器宽度 */
  49. height: 30px;
  50. padding: 6px; /* 内边距 */
  51. font-size: 14px; /* 字体大小 */
  52. color: #333; /* 字体颜色 */
  53. /*background-color: #fff; !* 背景颜色 *!*/
  54. border: 1px solid #ccc; /* 边框 */
  55. border-radius: 4px; /* 圆角边框 */
  56. outline: none; /* 移除轮廓 */
  57. transition: all 0.3s ease; /* 过渡动画 */
  58. }
  59. /* 聚焦时的效果 */
  60. .styled-input:focus {
  61. border-color: #55acee; /* 聚焦时边框颜色 */
  62. box-shadow: 0 0 5px rgba(85, 170, 238, 0.5); /* 阴影效果 */
  63. }
  64. /* 输入框有内容时的效果 */
  65. /*.styled-input:not(:placeholder-shown) {
  66. border-color: #5cb85c; !* 输入框有内容时边框颜色 *!
  67. }*/
  68. /* 鼠标悬停时的效果 */
  69. .styled-input:hover {
  70. border-color: #55acee; /* 悬停时边框颜色 */
  71. }
  72. /* 输入框禁用时的效果 */
  73. .styled-input:disabled {
  74. background-color: #eee; /* 禁用时背景颜色 */
  75. color: #999; /* 禁用时字体颜色 */
  76. cursor: not-allowed; /* 禁用时鼠标光标 */
  77. }
  78. /* 已经改变过的下拉框样式 */
  79. .styled-input.changed {
  80. border-color: #f6e5e5; /* 改变过的边框颜色 */
  81. box-shadow: 0 0 5px rgba(85, 170, 238, 0.5); /* 改变过的阴影 */
  82. background-color: rgb(232, 240, 254);
  83. }
  84. /* 名字后面的勾的状态*/
  85. .customize-form-group .fa {
  86. position: relative;
  87. top: -7px; /* 根据需要调整这个值 */
  88. }
  89. /*判断为1的数据显示红色*/
  90. .customize-form-group .fa-check {
  91. color: red;
  92. }
  93. /*勾后面字的位置*/
  94. .customize-form-group .status {
  95. position: relative;
  96. top: -5px; /* 根据需要调整这个值 */
  97. width: 50px;
  98. border: none;
  99. }
  100. /*用于一行显示 数据不够填充长度*/
  101. .span_line{
  102. width: 66px;
  103. }
  104. .input-groups {
  105. display: inline-flex; /* 使用inline-flex布局 */
  106. flex-wrap: nowrap; /* 防止单选按钮换行 */
  107. white-space: nowrap; /* 防止文字换行 */
  108. overflow: hidden; /* 当内容超出时隐藏多余部分 */
  109. text-overflow: ellipsis; /* 显示省略号表示被截断的内容 */
  110. width:480px;
  111. height: 30px;
  112. transform: translateY(20%); /* 向上移动一半的高度 */
  113. vertical-align: middle; /* 垂直居中对齐 */
  114. }
  115. .form-check-radio {
  116. margin-right: 0.5em; /* 调整单选按钮与文字间的距离 */
  117. margin: 1px 5px 10px 10px !important;
  118. margin-top: 1px;
  119. line-height: normal;
  120. position: relative;
  121. }
  122. /*这个是保险 input 多选方式宽度 */
  123. .mySelectClass {
  124. width: 480px !important;
  125. }
  126. input{
  127. width: 15px;
  128. }
  129. input[type="text"]:focus {
  130. background-color: #55AAEE7F;
  131. }
  132. input[type="text"] {
  133. background-color: #fff;
  134. }
  135. input[type="text"] {
  136. transition: background-color 0.3s ease; /* 平滑过渡效果 */
  137. }
  138. input[type="text"]:not(.has-content):focus {
  139. background-color: #fff; /* 输入框无内容时获得焦点的背景颜色 */
  140. }
  141. input[type="text"].has-content:focus {
  142. background-color: #f0ad4e; /* 输入框有内容时获得焦点的背景颜色 */
  143. }
  144. input[type="text"].has-content:not(:focus) {
  145. background-color: rgb(232, 240, 254); /* 输入框有内容且失去焦点的背景颜色 */
  146. }
  147. li {
  148. /*background-color: lightblue; *//* 背景颜色 */
  149. /*padding: 1px; !* 内边距 *!*/
  150. text-align: left; /* 文本居中 */
  151. }
  152. /*---------页面查询表单自适应 样式-------------*/
  153. .customize-search-form {
  154. display: flex; /* 使用 Flexbox 布局 */
  155. flex-direction: row; /* 主轴方向为从左到右 */
  156. flex-wrap: wrap; /* 允许子元素在必要时换行 */
  157. align-items: center; /* 在交叉轴上居中对齐子元素 */
  158. gap: 1em; /* 子元素之间的间隔 */
  159. max-width: 100%; /* 最大宽度为100%,防止超出父容器 */
  160. padding: 1em 1px 1px 1px; /* 上 右 下 左的内边距 */
  161. box-sizing: border-box; /* 包括边框和内边距在内的宽度计算 */
  162. position: relative; /* 添加相对定位,用于绝对定位的子元素 */
  163. }
  164. .customize-form-group-container {
  165. display: flex; /* 使用 Flexbox 布局 */
  166. flex-wrap: wrap; /* 允许子元素换行 */
  167. align-items: center; /* 垂直居中对齐子元素 */
  168. gap: 0.1em; /* 子元素之间的间隙 */
  169. }
  170. .customize-form-group {
  171. display: flex; /* 使用 Flexbox 布局 */
  172. align-items: end; /* 垂直居中对齐子元素 */
  173. flex-basis: calc(5% - 0.5em); /* 计算每个子元素的基础大小,减去一定的间隔 */
  174. margin-bottom: 0.5em; /* 每个子元素底部的外边距 */
  175. }
  176. .customize-form-group.edit {
  177. display: flex; /* 使用 Flexbox 布局 */
  178. align-items: end; /* 垂直居中对齐子元素 */
  179. flex-basis: calc(5% - 0.5em); /* 计算每个子元素的基础大小,减去一定的间隔 */
  180. margin-bottom: 0.5em; /* 每个子元素底部的外边距 */
  181. }
  182. /* 控制输入框前面的label 标签显示的内容 */
  183. .customize-form-group label {
  184. width: 150px; /* 标签的宽度 */
  185. text-align: right; /* 文本右对齐 */
  186. margin-right: 0.5em; /* 标签右侧的外边距 */
  187. }
  188. .customize-form-group .styled-input,
  189. .customize-form-group .time-input {
  190. flex-grow: 1; /* 输入框可以扩展以填充可用空间 */
  191. padding: 0.5em; /* 输入框内部的填充 */
  192. border: 1px solid #ccc; /* 输入框的边框 */
  193. border-radius: 4px; /* 输入框的圆角 */
  194. }
  195. .customize-form-group-container .select-time {
  196. flex-basis: calc(5% - 0.5em); /* 时间选择框的基础宽度,计算后减去一定的间隔 */
  197. }
  198. .customize-form-group-container .select-time label {
  199. /*margin-right: 1em; !* 时间选择框标签右侧的外边距 *!*/
  200. }
  201. .customize-form-group-container .select-time .time-input {
  202. width: 92px; /* 时间输入框的宽度 */
  203. /*margin-right: 0.5em;*/ /* 可选的右侧内边距 */
  204. }
  205. .time-input2 {
  206. width: 200px !important; /* 使用 !important 提高优先级 */ /* 时间输入框的宽度 */
  207. }
  208. /* 小屏幕设备 */
  209. @media (max-width: 768px) {
  210. .customize-form-group {
  211. display: block; /* 取消 flex 布局,改为块级元素 */
  212. margin-bottom: 1em; /* 增加底部外边距 */
  213. }
  214. .customize-form-group.edit {
  215. display: block; /* 取消 flex 布局,改为块级元素 */
  216. margin-bottom: 1em; /* 增加底部外边距 */
  217. }
  218. .mySelectClass {
  219. width:285px !important;
  220. }
  221. .customize-form-group .styled-input.edit_inputs {
  222. /*display: block; !* 使其独占一行 *!*/
  223. width:285px; /* 宽度为容器宽度 */
  224. height: 30px;
  225. padding: 6px; /* 内边距 */
  226. font-size: 14px; /* 字体大小 */
  227. color: #333; /* 字体颜色 */
  228. /*background-color: #fff; !* 背景颜色 *!*/
  229. border: 1px solid #ccc; /* 边框 */
  230. border-radius: 4px; /* 圆角边框 */
  231. outline: none; /* 移除轮廓 */
  232. transition: all 0.3s ease; /* 过渡动画 */
  233. }
  234. .customize-form-group label {
  235. width: 100%; /* 标签占据整行 */
  236. text-align: left; /* 文本左对齐 */
  237. margin-bottom: 0.5em; /* 标签和输入框之间的间距 */
  238. }
  239. .customize-form-group .styled-input,
  240. .customize-form-group .time-input {
  241. width: 85%; /* 输入框占据整行 */
  242. white-space: normal; /* 允许换行 */
  243. word-break: break-all; /* 长单词或 URL 地址换行 */
  244. }
  245. .customize-search-form {
  246. display: block; /* 取消 flex 布局,改为块级元素 */
  247. margin-bottom: 1em; /* 增加底部外边距 */
  248. }
  249. .query-condition-container {
  250. display: block; /* 取消 flex 布局,改为块级元素 */
  251. align-items: flex-start; /* 对齐方式调整为左对齐 */
  252. }
  253. .query-condition-title {
  254. width: 100%; /* 查询条件标题占据整行 */
  255. margin-bottom: 0.5em; /* 增加底部外边距 */
  256. }
  257. .query-buttons {
  258. display: block; /* 取消 flex 布局,改为块级元素 */
  259. text-align: left; /* 查询按钮左对齐 */
  260. margin-top: 1em; /* 增加顶部外边距 */
  261. }
  262. .textareas{
  263. width: 100%!important;
  264. }
  265. .styled-input.short {
  266. /*display: block; /* 使其独占一行 */
  267. width: 20%; /* 宽度为容器宽度 */
  268. height: 30px;
  269. padding: 6px; /* 内边距 */
  270. font-size: 14px; /* 字体大小 */
  271. color: #333; /* 字体颜色 */
  272. /*background-color: #fff; !* 背景颜色 *!*/
  273. border: 1px solid #ccc; /* 边框 */
  274. border-radius: 4px; /* 圆角边框 */
  275. outline: none; /* 移除轮廓 */
  276. transition: all 0.3s ease; /* 过渡动画 */
  277. }
  278. .styled-input.edit_inputs1 {
  279. /*display: block; /* 使其独占一行 */
  280. width: 57%; /* 宽度为容器宽度 */
  281. height: 30px;
  282. padding: 6px; /* 内边距 */
  283. font-size: 14px; /* 字体大小 */
  284. color: #333; /* 字体颜色 */
  285. /*background-color: #fff; !* 背景颜色 *!*/
  286. border: 1px solid #ccc; /* 边框 */
  287. border-radius: 4px; /* 圆角边框 */
  288. outline: none; /* 移除轮廓 */
  289. transition: all 0.3s ease; /* 过渡动画 */
  290. }
  291. .input-groups {
  292. display: block; /* 改变为块级元素 */
  293. overflow-x: auto; /* 允许水平滚动 */
  294. flex-wrap: wrap; /* 允许内容换行 */
  295. white-space: normal; /* 允许文字换行 */
  296. overflow: visible; /* 不隐藏多余部分 */
  297. text-overflow: clip; /* 不显示省略号 */
  298. width: 100%; /* 宽度为100% */
  299. height: auto; /* 高度自动调整 */
  300. transform: none; /* 移除向上移动 */
  301. vertical-align: baseline; /* 默认对齐方式 */
  302. }
  303. }
  304. /* 固定表格布局 */
  305. .fixed-layout-table {
  306. table-layout: fixed; /* 固定表格布局 */
  307. }
  308. .fixed-layout-table td, .fixed-layout-table th {
  309. min-width: 120px; /* 设置最小宽度 */
  310. width: 140px; /* 设置最小宽度 */
  311. white-space: nowrap;
  312. overflow: hidden;
  313. text-overflow: ellipsis;
  314. }
  315. /* 查询条件容器 */
  316. .query-condition-container {
  317. display: flex; /* 使用 Flexbox 布局 */
  318. align-items: center; /* 在交叉轴上居中对齐子元素 */
  319. border-bottom: 1px solid #ccc; /* 底部边框 */
  320. padding-bottom: 0.5em; /* 底部内边距,使边框上方有一些空间 */
  321. }
  322. /* 查询条件标题 */
  323. .query-condition-title {
  324. flex: 1; /* 占据剩余空间,使文本靠左 */
  325. text-align: left; /* 文本左对齐 */
  326. }
  327. /* 查询按钮容器 */
  328. .query-buttons {
  329. flex: 1; /* 占据剩余空间,使按钮靠右 */
  330. display: flex; /* 使用 Flexbox 布局 */
  331. justify-content: flex-end; /* 在主轴上靠右对齐子元素 */
  332. margin-top: 0.2em; /* 顶部外边距 */
  333. }
  334. /*---------页面查询表单自适应 样式-------------*/
  335. .fixed-layout-table {
  336. table-layout: fixed; /* 固定表格布局 */
  337. }
  338. .fixed-layout-table td, .fixed-layout-table th {
  339. min-width: 120px; /* 设置最小宽度 */
  340. /*word-wrap: break-word !important; !* 允许内容换行 *!*/
  341. width: 140px; /* 设置最小宽度 */
  342. white-space: nowrap;
  343. overflow: hidden;
  344. text-overflow: ellipsis;
  345. }