xinhua-theme.css 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709
  1. /*
  2. * 新华 ERP — 简洁后台主题
  3. */
  4. .skin-blue-light .main-header {
  5. box-shadow: none !important;
  6. border: none !important;
  7. }
  8. .skin-blue-light .main-header .navbar {
  9. background: #ffffff !important;
  10. color: #1f1f1f !important;
  11. border-bottom: 1px solid #f0f0f0;
  12. box-shadow: none !important;
  13. }
  14. .skin-blue-light .main-header .logo {
  15. background: #1a3a6e !important;
  16. border: none !important;
  17. border-right: 1px solid #152f5c !important;
  18. border-bottom: none !important;
  19. color: #ffffff !important;
  20. font-weight: 600;
  21. font-size: 15px !important;
  22. /* 与下方侧栏无缝衔接,避免露出白线空隙 */
  23. box-shadow: none !important;
  24. }
  25. .skin-blue-light .main-header .logo:hover {
  26. background: #163560 !important;
  27. color: #ffffff !important;
  28. }
  29. .skin-blue-light .main-header .navbar .nav > li > a,
  30. .skin-blue-light .main-header .navbar .sidebar-toggle {
  31. color: #595959 !important;
  32. }
  33. .skin-blue-light .main-header .navbar .nav > li > a:hover,
  34. .skin-blue-light .main-header .navbar .nav > li > a:focus,
  35. .skin-blue-light .main-header .navbar .sidebar-toggle:hover {
  36. background: #f5f5f5 !important;
  37. color: #1f1f1f !important;
  38. }
  39. .skin-blue-light .wrapper {
  40. background: #f5f6f8 !important;
  41. }
  42. .skin-blue-light .main-sidebar,
  43. .skin-blue-light .left-side,
  44. .skin-blue-light .main-sidebar .sidebar {
  45. background: #1a3a6e !important;
  46. background-color: #1a3a6e !important;
  47. }
  48. /* fixed 布局必须留出顶栏高度,否则用户信息会顶到 logo 下面 */
  49. .fixed.skin-blue-light .main-sidebar,
  50. .fixed.skin-blue-light .left-side {
  51. padding-top: 50px !important;
  52. }
  53. .skin-blue-light .main-sidebar {
  54. border-right: 1px solid #152f5c !important;
  55. box-shadow: none !important;
  56. border-top: none !important;
  57. }
  58. .skin-blue-light .content-wrapper,
  59. .skin-blue-light .main-footer {
  60. background: #f5f6f8 !important;
  61. border-left: none !important;
  62. }
  63. /* 侧栏收起/展开瞬间完成,避免内容区宽度动画过程中表格列反复跳动 */
  64. .skin-blue-light .content-wrapper,
  65. .skin-blue-light .right-side,
  66. .skin-blue-light .main-footer,
  67. .skin-blue-light .main-sidebar,
  68. .skin-blue-light .left-side {
  69. -webkit-transition: none !important;
  70. -moz-transition: none !important;
  71. -o-transition: none !important;
  72. transition: none !important;
  73. }
  74. .skin-blue-light .sidebar .user-panel {
  75. border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  76. padding-bottom: 12px;
  77. margin-bottom: 6px;
  78. }
  79. .skin-blue-light .sidebar .user-panel > .info {
  80. left: 55px;
  81. line-height: 45px;
  82. }
  83. .skin-blue-light .sidebar .user-panel > .info > p {
  84. margin: 0;
  85. }
  86. .skin-blue-light .sidebar-menu > li.header {
  87. background: transparent !important;
  88. color: rgba(255, 255, 255, 0.45) !important;
  89. font-size: 12px;
  90. }
  91. .skin-blue-light .sidebar-menu > li > a {
  92. border-radius: 6px;
  93. margin: 1px 8px;
  94. padding: 10px 12px !important;
  95. color: rgba(255, 255, 255, 0.92) !important;
  96. border-left: none !important;
  97. }
  98. .skin-blue-light .sidebar-menu > li > a > .fa,
  99. .skin-blue-light .sidebar-menu > li > a > .glyphicon,
  100. .skin-blue-light .sidebar-menu > li > a > .ion,
  101. .skin-blue-light .sidebar-menu > li > a > .pull-right-container > .fa {
  102. color: rgba(255, 255, 255, 0.8) !important;
  103. }
  104. /* 悬停:白底黑字 */
  105. .skin-blue-light .sidebar-menu > li:hover > a {
  106. background: #ffffff !important;
  107. color: #1f1f1f !important;
  108. }
  109. .skin-blue-light .sidebar-menu > li:hover > a > .fa,
  110. .skin-blue-light .sidebar-menu > li:hover > a > .glyphicon,
  111. .skin-blue-light .sidebar-menu > li:hover > a > .ion,
  112. .skin-blue-light .sidebar-menu > li:hover > a > .pull-right-container > .fa {
  113. color: #1f1f1f !important;
  114. }
  115. .skin-blue-light .sidebar-menu > li.active > a {
  116. background: #ffffff !important;
  117. color: #1f1f1f !important;
  118. font-weight: 500;
  119. box-shadow: none !important;
  120. }
  121. .skin-blue-light .sidebar-menu > li.active > a > .fa,
  122. .skin-blue-light .sidebar-menu > li.active > a > .glyphicon,
  123. .skin-blue-light .sidebar-menu > li.active > a > .ion,
  124. .skin-blue-light .sidebar-menu > li.active > a > .pull-right-container > .fa {
  125. color: #1f1f1f !important;
  126. }
  127. .skin-blue-light .treeview-menu > li > a {
  128. color: rgba(255, 255, 255, 0.78) !important;
  129. }
  130. .skin-blue-light .treeview-menu > li.active > a,
  131. .skin-blue-light .treeview-menu > li > a:hover {
  132. background: #ffffff !important;
  133. color: #1f1f1f !important;
  134. }
  135. .skin-blue-light .sidebar-menu > li > .treeview-menu {
  136. background: rgba(0, 0, 0, 0.18) !important;
  137. }
  138. /* 侧栏收起后悬浮层:标题与子菜单贴合成一块,贴紧 50px 侧栏 */
  139. @media (min-width: 768px) {
  140. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li {
  141. position: relative !important;
  142. }
  143. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
  144. margin: 0 !important;
  145. border-radius: 0 !important;
  146. padding-left: 0 !important;
  147. padding-right: 0 !important;
  148. text-align: center !important;
  149. }
  150. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a,
  151. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a {
  152. width: 50px !important;
  153. background: #ffffff !important;
  154. color: #1f1f1f !important;
  155. }
  156. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .fa,
  157. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.active > a > .fa {
  158. color: #1f1f1f !important;
  159. }
  160. /* 无子菜单:不弹出标题白条 */
  161. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.treeview):hover > a > span,
  162. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li:not(.treeview):hover > a > .pull-right-container {
  163. display: none !important;
  164. }
  165. /* 有子菜单:标题 + 列表同一左缘、无空隙 */
  166. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > a > span:not(.pull-right),
  167. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > .treeview-menu {
  168. display: block !important;
  169. position: absolute !important;
  170. left: 50px !important;
  171. margin: 0 !important;
  172. margin-left: 0 !important;
  173. width: 200px !important;
  174. background: #ffffff !important;
  175. color: #1f1f1f !important;
  176. z-index: 1200 !important;
  177. box-sizing: border-box !important;
  178. }
  179. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > a > span:not(.pull-right) {
  180. top: 0 !important;
  181. height: 40px !important;
  182. line-height: 40px !important;
  183. padding: 0 14px !important;
  184. font-weight: 600;
  185. border: 1px solid #e2e8f0 !important;
  186. border-bottom: 1px solid #f0f0f0 !important;
  187. border-radius: 0 6px 0 0 !important;
  188. box-shadow: none !important;
  189. overflow: hidden;
  190. white-space: nowrap;
  191. text-overflow: ellipsis;
  192. }
  193. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > a > .pull-right-container {
  194. display: none !important;
  195. visibility: hidden !important;
  196. }
  197. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview > .treeview-menu,
  198. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > .treeview-menu {
  199. top: 40px !important;
  200. background: #ffffff !important;
  201. border: 1px solid #e2e8f0 !important;
  202. border-top: none !important;
  203. border-radius: 0 0 6px 6px !important;
  204. box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.1) !important;
  205. padding: 2px 0 4px !important;
  206. min-width: 200px !important;
  207. max-height: 70vh;
  208. overflow-y: auto;
  209. }
  210. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > .treeview-menu > li > a {
  211. color: #1f1f1f !important;
  212. background: transparent !important;
  213. padding: 8px 14px !important;
  214. white-space: nowrap;
  215. border-radius: 0 !important;
  216. margin: 0 !important;
  217. text-align: left !important;
  218. width: 100% !important;
  219. box-sizing: border-box !important;
  220. }
  221. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > .treeview-menu > li > a > .fa,
  222. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > .treeview-menu > li > a > .glyphicon,
  223. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > .treeview-menu > li > a > .ion {
  224. color: #595959 !important;
  225. width: 18px;
  226. text-align: center;
  227. }
  228. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > .treeview-menu > li > a:hover,
  229. .skin-blue-light.sidebar-mini.sidebar-collapse .sidebar-menu > li.treeview:hover > .treeview-menu > li.active > a {
  230. background: #f0f5fb !important;
  231. color: #1f1f1f !important;
  232. }
  233. .skin-black.sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu,
  234. .skin-black.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
  235. background: #222d32 !important;
  236. border: 1px solid #1a2226 !important;
  237. box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
  238. z-index: 1100 !important;
  239. }
  240. }
  241. .skin-blue-light .sidebar-form {
  242. border: 1px solid #f0f0f0 !important;
  243. border-radius: 6px !important;
  244. background: #fafafa !important;
  245. }
  246. .skin-blue-light .user-panel > .info,
  247. .skin-blue-light .user-panel > .info > a {
  248. color: rgba(255, 255, 255, 0.92) !important;
  249. }
  250. .user-panel > .image,
  251. .user-panel > .image.is-brand-logo-avatar,
  252. .main-header .user-image.is-brand-logo-avatar-img {
  253. background-color: #f5f5f5 !important;
  254. }
  255. /* 顶栏多标签:紧凑、可横向滚动,去掉灰底块 */
  256. #firstnav {
  257. box-shadow: none !important;
  258. border-bottom: 1px solid #f0f0f0 !important;
  259. }
  260. #firstnav .nav-addtabs {
  261. overflow-x: auto;
  262. overflow-y: hidden;
  263. white-space: nowrap;
  264. scrollbar-width: thin;
  265. }
  266. #firstnav .nav-addtabs::-webkit-scrollbar {
  267. height: 3px;
  268. }
  269. #firstnav .nav-addtabs::-webkit-scrollbar-thumb {
  270. background: #e8e8e8;
  271. border-radius: 3px;
  272. }
  273. .skin-blue-light .nav-addtabs > li > a {
  274. color: #8c8c8c !important;
  275. border-radius: 0;
  276. padding: 0 22px 0 14px !important;
  277. height: 48px !important;
  278. line-height: 48px !important;
  279. border-right: 1px solid #f5f5f5 !important;
  280. font-size: 13px;
  281. }
  282. .skin-blue-light .nav-addtabs > li > a:hover,
  283. .skin-blue-light .nav-addtabs > li > a:focus {
  284. background: #fafafa !important;
  285. color: #434343 !important;
  286. border-right-color: #f5f5f5 !important;
  287. }
  288. .skin-blue-light .nav-addtabs > li.active > a,
  289. .skin-blue-light .nav-addtabs > li.active > a:hover,
  290. .skin-blue-light .nav-addtabs > li.active > a:focus {
  291. color: #1677ff !important;
  292. background: #ffffff !important;
  293. border-bottom: 2px solid #1677ff !important;
  294. border-right: 1px solid #f5f5f5 !important;
  295. font-weight: 500;
  296. }
  297. /* 白底顶栏:恢复页签关闭 ×(原色 #eee/#f6f6f6 在白底上看不见) */
  298. .skin-blue-light .nav-addtabs > li {
  299. position: relative;
  300. }
  301. .skin-blue-light .main-header .navbar .nav-addtabs li > .close-tab,
  302. .skin-blue-light .nav-addtabs > li > .close-tab {
  303. color: #bfbfbf !important;
  304. right: 4px;
  305. z-index: 120;
  306. }
  307. .skin-blue-light .nav-addtabs > li:hover > .close-tab,
  308. .skin-blue-light .nav-addtabs > li.active > .close-tab {
  309. display: block !important;
  310. color: #8c8c8c !important;
  311. }
  312. .skin-blue-light .nav-addtabs > li > .close-tab:hover {
  313. color: #1677ff !important;
  314. }
  315. body.inside-header.inside-aside,
  316. body.inside-header.inside-aside #main,
  317. body.inside-header.inside-aside .tab-content,
  318. body.inside-header.inside-aside #content {
  319. background: #f5f6f8 !important;
  320. }
  321. /* 去掉页面内灰条标题区 */
  322. .panel-intro {
  323. background: transparent !important;
  324. border: none !important;
  325. box-shadow: none !important;
  326. }
  327. .panel-intro > .panel-heading,
  328. .panel-nav .panel-heading {
  329. background: #ffffff !important;
  330. border-color: #f0f0f0 !important;
  331. border-bottom: 1px solid #f0f0f0 !important;
  332. padding: 12px 16px 0 !important;
  333. }
  334. .panel-intro > .panel-body,
  335. .panel-nav .panel-body {
  336. background: #ffffff !important;
  337. border: 1px solid #f0f0f0 !important;
  338. border-top: none !important;
  339. border-radius: 0 0 8px 8px !important;
  340. }
  341. /* 普通列表页:白底区域由表格 heightFill 撑满,分页贴底;勿再叠一层整页滚动条 */
  342. body:not(.is-dialog) .panel.panel-intro:not(#procuremen-layout) {
  343. margin-bottom: 0 !important;
  344. display: flex;
  345. flex-direction: column;
  346. box-sizing: border-box;
  347. overflow: hidden;
  348. }
  349. body:not(.is-dialog) .panel.panel-intro:not(#procuremen-layout) > .panel-heading {
  350. flex: 0 0 auto;
  351. }
  352. body:not(.is-dialog) .panel.panel-intro:not(#procuremen-layout) > .panel-body {
  353. flex: 1 1 auto;
  354. display: flex;
  355. flex-direction: column;
  356. min-height: 0;
  357. overflow: hidden;
  358. }
  359. body:not(.is-dialog) .panel.panel-intro:not(#procuremen-layout) > .panel-body > .widget-body {
  360. flex: 1 1 auto;
  361. min-height: 0;
  362. overflow: hidden;
  363. }
  364. body:not(.is-dialog) .panel.panel-intro:not(#procuremen-layout) .bootstrap-table > .fixed-table-pagination {
  365. padding: 8px 10px !important;
  366. border-top: 1px solid #f0f0f0;
  367. background: #fff;
  368. }
  369. .panel-intro > .panel-heading .nav-tabs,
  370. .panel-nav .nav-tabs {
  371. border-bottom: 1px solid #f0f0f0 !important;
  372. margin-bottom: 0 !important;
  373. }
  374. .panel-intro > .panel-heading .nav-tabs > li > a,
  375. .panel-nav .nav-tabs > li > a {
  376. margin-right: 0 !important;
  377. padding: 10px 16px !important;
  378. color: #8c8c8c !important;
  379. background: transparent !important;
  380. border: none !important;
  381. border-bottom: 2px solid transparent !important;
  382. border-radius: 0 !important;
  383. }
  384. .panel-intro > .panel-heading .nav-tabs > li > a:hover,
  385. .panel-intro > .panel-heading .nav-tabs > li > a:focus,
  386. .panel-nav .nav-tabs > li > a:hover,
  387. .panel-nav .nav-tabs > li > a:focus {
  388. color: #434343 !important;
  389. background: transparent !important;
  390. border: none !important;
  391. border-bottom: 2px solid #d9d9d9 !important;
  392. }
  393. .panel-intro > .panel-heading .nav-tabs > li.active > a,
  394. .panel-intro > .panel-heading .nav-tabs > li.active > a:hover,
  395. .panel-intro > .panel-heading .nav-tabs > li.active > a:focus,
  396. .panel-nav .nav-tabs > li.active > a,
  397. .panel-nav .nav-tabs > li.active > a:hover,
  398. .panel-nav .nav-tabs > li.active > a:focus {
  399. color: #1677ff !important;
  400. background: transparent !important;
  401. border: none !important;
  402. border-bottom: 2px solid #1677ff !important;
  403. }
  404. .panel-default > .panel-heading {
  405. background: #ffffff !important;
  406. border-color: #f0f0f0 !important;
  407. }
  408. .panel,
  409. .box {
  410. border-radius: 8px !important;
  411. border: 1px solid #f0f0f0 !important;
  412. background: #ffffff !important;
  413. box-shadow: none !important;
  414. }
  415. /* iframe 内容区保留少量左右内边距,避免贴边裁切工具栏/侧栏 */
  416. .content-wrapper .content,
  417. body.inside-aside .content,
  418. #content .content {
  419. padding: 8px 10px !important;
  420. }
  421. /* 导航与内容仅竖线分隔;勿清 content-wrapper 的 margin-left(侧栏占位依赖它) */
  422. .skin-blue-light .main-sidebar {
  423. border-right: 1px solid #152f5c !important;
  424. }
  425. .skin-blue-light .content-wrapper {
  426. border-left: none !important;
  427. }
  428. /* 左侧菜单略收窄(默认 230 → 200) */
  429. @media (min-width: 768px) {
  430. .skin-blue-light .main-sidebar,
  431. .skin-blue-light .left-side {
  432. width: 200px !important;
  433. }
  434. .skin-blue-light .main-header .logo {
  435. width: 200px !important;
  436. }
  437. .skin-blue-light:not(.sidebar-collapse) .content-wrapper,
  438. .skin-blue-light:not(.sidebar-collapse) .right-side,
  439. .skin-blue-light:not(.sidebar-collapse) .main-footer {
  440. margin-left: 200px !important;
  441. }
  442. .skin-blue-light:not(.sidebar-collapse) .main-header .navbar {
  443. margin-left: 200px !important;
  444. }
  445. }
  446. .skin-blue-light .sidebar-menu > li > a {
  447. padding-left: 10px !important;
  448. padding-right: 8px !important;
  449. }
  450. .skin-blue-light .sidebar-menu .treeview-menu > li > a {
  451. padding-left: 28px !important;
  452. }
  453. /* 只清 iframe / 页签内容的边距,绝不能清 .content-wrapper 自身的 margin-left */
  454. .skin-blue-light .content-wrapper > .tab-pane,
  455. .skin-blue-light .content-wrapper.tab-addtabs > .tab-pane,
  456. .skin-blue-light .content-wrapper iframe,
  457. .skin-blue-light .content-wrapper.tab-addtabs iframe {
  458. margin: 0 !important;
  459. padding: 0 !important;
  460. border: 0 !important;
  461. }
  462. /* 明确恢复 AdminLTE 侧栏占位,避免内容整体贴到左侧被侧栏挡住 */
  463. @media (min-width: 768px) {
  464. .skin-blue-light.sidebar-mini.sidebar-collapse .content-wrapper,
  465. .skin-blue-light.sidebar-mini.sidebar-collapse .right-side,
  466. .skin-blue-light.sidebar-mini.sidebar-collapse .main-footer {
  467. margin-left: 50px !important;
  468. }
  469. .skin-blue-light.sidebar-mini.sidebar-collapse .main-header .navbar {
  470. margin-left: 50px !important;
  471. }
  472. .skin-blue-light.sidebar-mini.sidebar-collapse .main-header .logo {
  473. width: 50px !important;
  474. }
  475. /* 侧栏收起时不显示左上角品牌短名(如「生产」) */
  476. .sidebar-mini.sidebar-collapse .main-header .logo .logo-mini,
  477. .sidebar-mini.sidebar-collapse .main-header .logo .logo-lg {
  478. display: none !important;
  479. visibility: hidden !important;
  480. width: 0 !important;
  481. height: 0 !important;
  482. overflow: hidden !important;
  483. opacity: 0 !important;
  484. }
  485. }
  486. /* 表格区域 */
  487. .bootstrap-table .fixed-table-toolbar {
  488. padding: 8px 0 !important;
  489. }
  490. .bootstrap-table .fixed-table-toolbar .btn {
  491. border-radius: 6px !important;
  492. }
  493. /* 列显隐下拉:勾选框与文字贴紧(去掉文字前多余空隙) */
  494. .bootstrap-table .fixed-table-toolbar .dropdown-menu > li > label,
  495. .procuremen-toolbar-host .dropdown-menu > li > label {
  496. display: block;
  497. padding: 4px 14px 4px 10px !important;
  498. margin: 0 !important;
  499. font-weight: 400;
  500. white-space: nowrap;
  501. cursor: pointer;
  502. line-height: 1.4;
  503. }
  504. .bootstrap-table .fixed-table-toolbar .dropdown-menu > li > label input[type="checkbox"],
  505. .procuremen-toolbar-host .dropdown-menu > li > label input[type="checkbox"] {
  506. margin: 0 4px 0 0 !important;
  507. padding: 0 !important;
  508. position: static !important;
  509. float: none !important;
  510. vertical-align: -2px;
  511. }
  512. .bootstrap-table .table,
  513. .table {
  514. border: 1px solid #e4e7ed !important;
  515. border-color: #e4e7ed !important;
  516. }
  517. /* 浅灰表头 + 完整单元格边框(含竖线)
  518. * 注意:bootstrap-table 表头 padding 只能加在 .th-inner 上,勿同时给 th 加 padding,否则表头色条与文字错位 */
  519. .bootstrap-table .table > thead > tr > th,
  520. .table > thead > tr > th {
  521. background: #f5f7fa !important;
  522. color: #303133 !important;
  523. border: 1px solid #e4e7ed !important;
  524. font-weight: 600;
  525. font-size: 13px;
  526. }
  527. .bootstrap-table .fixed-table-container thead th,
  528. .bootstrap-table .table > thead > tr > th {
  529. padding: 0 !important;
  530. }
  531. .bootstrap-table .fixed-table-container thead th .th-inner,
  532. .bootstrap-table .fixed-table-container thead th .th-inner.sortable,
  533. .bootstrap-table .fixed-table-container thead th .sortable {
  534. padding: 8px 10px !important;
  535. line-height: 1.4;
  536. background-image: none;
  537. }
  538. .bootstrap-table .table > tbody > tr > td,
  539. .table > tbody > tr > td {
  540. border: 1px solid #ebeef5 !important;
  541. color: #606266;
  542. font-size: 13px;
  543. background-color: #ffffff !important;
  544. padding: 8px 10px !important;
  545. }
  546. /* 覆盖 backend.css 固定 47px 行高,避免换行单元格/表头被裁切 */
  547. .bootstrap-table .table:not(.table-condensed) > tbody > tr > td,
  548. .bootstrap-table .table:not(.table-condensed) > thead > tr > th {
  549. height: auto !important;
  550. }
  551. .bootstrap-table .table-bordered,
  552. .table-bordered {
  553. border: 1px solid #e4e7ed !important;
  554. }
  555. .bootstrap-table .table-bordered > thead > tr > th,
  556. .bootstrap-table .table-bordered > tbody > tr > td,
  557. .table-bordered > thead > tr > th,
  558. .table-bordered > tbody > tr > td {
  559. border: 1px solid #e4e7ed !important;
  560. }
  561. /* 取消斑马纹:全部白底 */
  562. .table-striped > tbody > tr:nth-of-type(odd),
  563. .table-striped > tbody > tr:nth-of-type(even),
  564. .table-striped > tbody > tr:nth-of-type(odd) > td,
  565. .table-striped > tbody > tr:nth-of-type(even) > td,
  566. .bootstrap-table .table-striped > tbody > tr:nth-of-type(odd) > td,
  567. .bootstrap-table .table-striped > tbody > tr:nth-of-type(even) > td {
  568. background-color: #ffffff !important;
  569. }
  570. .bootstrap-table .table > tbody > tr:hover > td,
  571. .table-striped > tbody > tr:hover > td {
  572. background: #fafafa !important;
  573. }
  574. /* FastAdmin autocontent 默认 max-width:250px,列变宽后仍提前省略;改为占满单元格 */
  575. .bootstrap-table td.autocontent {
  576. vertical-align: middle !important;
  577. }
  578. .bootstrap-table td.autocontent > .autocontent-item {
  579. max-width: 100% !important;
  580. width: 100% !important;
  581. box-sizing: border-box !important;
  582. display: block;
  583. margin: 0 !important;
  584. padding: 0 !important;
  585. }
  586. /* 无数据占位:文案垂直居中铺满表体 */
  587. .bootstrap-table .fixed-table-body tr.no-records-found > td {
  588. color: #8c8c8c !important;
  589. font-size: 14px !important;
  590. vertical-align: middle !important;
  591. text-align: center !important;
  592. }
  593. .fixed-table-pagination {
  594. border-top: 1px solid #d9d9d9 !important;
  595. background: #ffffff !important;
  596. }
  597. .btn-primary {
  598. background: #1677ff !important;
  599. border-color: #1677ff !important;
  600. }
  601. .btn-primary:hover,
  602. .btn-primary:focus {
  603. background: #4096ff !important;
  604. border-color: #4096ff !important;
  605. }
  606. .btn-danger {
  607. background: #fff !important;
  608. border-color: #ffccc7 !important;
  609. color: #ff4d4f !important;
  610. }
  611. .btn-danger:hover,
  612. .btn-danger:focus {
  613. background: #fff1f0 !important;
  614. border-color: #ffa39e !important;
  615. color: #ff4d4f !important;
  616. }
  617. .form-control {
  618. border-color: #d9d9d9 !important;
  619. border-radius: 6px !important;
  620. box-shadow: none !important;
  621. }
  622. .form-control:focus {
  623. border-color: #1677ff !important;
  624. box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1) !important;
  625. }
  626. /* Toastr 提示压过 Layer 弹层遮罩 */
  627. #toast-container {
  628. z-index: 21000000 !important;
  629. }
  630. @media (max-width: 767px) {
  631. .skin-blue-light .main-header .navbar {
  632. background: #ffffff !important;
  633. }
  634. }