layout.scss 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. @import './theme.scss';
  2. $pageHeaderHeight: 50px;
  3. $pageSidebarWidth: 235px;
  4. $pageSidebarClosedWidth: 64px;
  5. $pageSidebarItemHeight: 40px;
  6. $pageFooterHeight: 40px;
  7. html,
  8. body {
  9. padding: 0 !important;
  10. margin: 0 !important;
  11. font-size: 14px;
  12. width: 100%;
  13. height: 100%;
  14. }
  15. #app {
  16. width: 100%;
  17. height: 100%;
  18. }
  19. /*---滚动条默认显示样式--*/
  20. ::-webkit-scrollbar-thumb{
  21. height:50px;
  22. outline-offset:-2px;
  23. outline:2px solid #dddee0;
  24. border: 2px solid #dddee0;
  25. background-color: #dddee0;
  26. border-radius: 4px;
  27. }
  28. /*---鼠标点击滚动条显示样式--*/
  29. ::-webkit-scrollbar-thumb:hover{
  30. height:50px;
  31. }
  32. /*---滚动条大小--*/
  33. ::-webkit-scrollbar{
  34. width:8px;
  35. height:8px;
  36. }
  37. /*---滚动框背景样式--*/
  38. ::-webkit-scrollbar-track-piece{
  39. }
  40. #page-main {
  41. width: 100%;
  42. height: 100%;
  43. display: flex;
  44. flex-direction: column;
  45. /* 垂直 从上到下 */
  46. justify-content: flex-start;
  47. /* 垂直 左对齐 */
  48. align-items: stretch;
  49. .page-header {
  50. order: 0;
  51. flex-grow: 0;
  52. flex-shrink: 0;
  53. height: $pageHeaderHeight;
  54. }
  55. .page-container {
  56. order: 1;
  57. flex-grow: 1;
  58. flex-shrink: 1;
  59. display: flex;
  60. flex-direction: row;
  61. /* 水平,从左到右 */
  62. justify-content: flex-start;
  63. /* 水平上对齐 */
  64. .page-sidebar-wrapper {
  65. width: $pageSidebarWidth;
  66. // overflow: auto;
  67. flex-grow: 0;
  68. flex-shrink: 0;
  69. }
  70. .page-content-wrapper {
  71. flex-grow: 1;
  72. flex-shrink: 1;
  73. }
  74. }
  75. .page-footer {
  76. order: 2;
  77. flex-grow: 0;
  78. flex-shrink: 0;
  79. height: $pageFooterHeight;
  80. line-height: $pageFooterHeight;
  81. text-align: center;
  82. color: #6d6d6d;
  83. }
  84. }
  85. #page-main .page-header {
  86. display: flex;
  87. flex-direction: row;
  88. /* 水平, 从左向右 */
  89. justify-content: flex-start;
  90. /* 垂直 左对齐 */
  91. .page-logo {
  92. flex-grow: 0;
  93. flex-shrink: 0;
  94. padding-left: 20px;
  95. padding-right: 20px;
  96. width: 195px;
  97. display: inline-flex;
  98. flex-direction: row;
  99. justify-content: space-between;
  100. >a {
  101. display: inline-block;
  102. .logo-default {
  103. margin: 18px 0 0;
  104. height: 18px;
  105. }
  106. }
  107. .menu-toggler.sidebar-toggler {
  108. margin-top: 10.5px;
  109. }
  110. }
  111. .data-menu {
  112. flex-grow: 0;
  113. flex-shrink: 1;
  114. width: 240px;
  115. height: 100%;
  116. line-height: $pageHeaderHeight;
  117. .data-menu-dropdown {
  118. height: 100%;
  119. line-height: $pageHeaderHeight;
  120. font-size: 18px;
  121. }
  122. .el-select .el-input--suffix .el-input__inner {
  123. height: 30px;
  124. line-height: 30px;
  125. }
  126. }
  127. .user-menu {
  128. flex-grow: 1;
  129. flex-shrink: 1;
  130. margin: 0 20px 0 0;
  131. padding: 0;
  132. height: 100%;
  133. display: inline-flex;
  134. flex-direction: row-reverse;
  135. .header-nav{
  136. margin-right: 10px;
  137. >li{
  138. float: left;
  139. width: 50px;
  140. height: 50px;
  141. padding: 0 4px;
  142. box-sizing: border-box;
  143. }
  144. }
  145. .user-menu-dropdown {
  146. height: 100%;
  147. line-height: $pageHeaderHeight;
  148. font-size: 18px;
  149. margin-left: 20px;
  150. }
  151. }
  152. }
  153. #page-main .page-container {
  154. .page-sidebar-wrapper {
  155. .el-menu {}
  156. }
  157. }
  158. #page-main .page-container #page-sidebar-wrapper {
  159. .sidebar-menu.el-menu {
  160. border-right: none;
  161. padding-bottom: 10px;
  162. .el-submenu {
  163. .el-menu-item {
  164. height: $pageSidebarItemHeight;
  165. line-height: $pageSidebarItemHeight;
  166. }
  167. }
  168. }
  169. }
  170. /** sidebar 弹框 */
  171. .el-menu--vertical {
  172. .el-menu.el-menu--popup.el-menu--popup-right-start {
  173. .el-menu-item.sidebar-menu-item {
  174. height: $pageSidebarItemHeight;
  175. line-height: $pageSidebarItemHeight;
  176. }
  177. }
  178. }
  179. #page-main .page-container .page-content-wrapper {
  180. margin: 0px 10px 10px 10px;
  181. display: flex;
  182. flex-direction: column;
  183. justify-content: flex-start;
  184. overflow: hidden;
  185. .page-bar {
  186. flex-grow: 0;
  187. flex-shrink: 0;
  188. height: 30px;
  189. padding: 0 10px;
  190. margin-bottom: 10px;
  191. border-bottom: 1px solid #333;
  192. .el-breadcrumb {
  193. font-size: 14px;
  194. line-height: 30px;
  195. }
  196. }
  197. .page-content {
  198. flex-grow: 1;
  199. flex-shrink: 1;
  200. overflow-y: auto;
  201. }
  202. }
  203. // #page-main #page-container #page-content-wrapper .page-content.page-table-template {
  204. #page-main #page-container #page-content-wrapper .page-table-template {
  205. // display: flex;
  206. // flex-direction: column;
  207. // justify-content: flex-start;
  208. // align-items: stretch;
  209. // flex-grow: 1;
  210. // flex-shrink: 1;
  211. height: 100%;
  212. >.query-form {
  213. flex-grow: 0;
  214. flex-shrink: 0;
  215. }
  216. >.data-table {
  217. // flex-grow: 1;
  218. // flex-shrink: 1;
  219. height: calc(100% - 54px);
  220. // overflow-x: auto;
  221. // overflow-y: auto;
  222. background: #fff;
  223. // margin-top: 10px;
  224. }
  225. >.data-table-pagination {
  226. // z-index: 99999;
  227. margin-top: 10px;
  228. // flex-grow: 0;
  229. // flex-shrink: 0;
  230. // display: flex;
  231. // justify-content: flex-end;
  232. text-align: right;
  233. // position: fixed;
  234. // bottom: 0;
  235. // background: #f2f2f2;
  236. // left: 242px;
  237. // right: 0;
  238. // padding-top: 10px;
  239. // padding-bottom: 10px;
  240. }
  241. }
  242. #page-main #page-container #page-content-wrapper .page-content>.query-form {
  243. padding: 5px 10px 0px 10px;
  244. margin-bottom: 10px;
  245. .el-form {
  246. .el-form-item {
  247. margin-bottom: 5px;
  248. vertical-align: middle;
  249. .el-form-item__label {
  250. //min-width: 72px;
  251. }
  252. .el-form-item__content {
  253. margin-left: 0px;
  254. }
  255. }
  256. .halving_line {
  257. width: 100%;
  258. border-top: 1px solid #dfe6ec;
  259. }
  260. }
  261. }
  262. #page-main #page-container #page-content-wrapper .page-content .data-table {}
  263. // #page-main #page-container #page-content-wrapper .page-content .data-table {
  264. .data-table {
  265. position: relative;
  266. >.el-table {
  267. position: absolute;
  268. .el-table__header-wrapper {
  269. .el-table__header {
  270. thead tr th {}
  271. }
  272. }
  273. .el-table__body-wrapper {
  274. .el-table__body {
  275. tr td {
  276. padding: 6px 0;
  277. .cell {
  278. line-height: 20px;
  279. }
  280. &.btn {
  281. padding: 2px 0;
  282. }
  283. }
  284. }
  285. }
  286. }
  287. }
  288. #page-main #page-container #page-content-wrapper .page-content.input-form {
  289. form {
  290. max-width: 800px;
  291. margin: 50px auto;
  292. >.el-form-item {
  293. margin-bottom: 18px;
  294. >.el-form-item__label {
  295. width: 180px;
  296. }
  297. >.el-form-item__content {
  298. max-width: 600px;
  299. margin-left: 180px;
  300. }
  301. }
  302. }
  303. }
  304. #page-main.page-sidebar-closed {
  305. .page-header {
  306. .page-logo {
  307. padding-left: 20px;
  308. padding-right: 20px;
  309. width: 20px;
  310. >a {
  311. display: none;
  312. }
  313. }
  314. }
  315. .page-container {
  316. .page-sidebar-wrapper {
  317. width: $pageSidebarClosedWidth;
  318. }
  319. }
  320. }
  321. // @media screen and (max-width: 1000px) {
  322. // #page-main {
  323. // .page-header {
  324. // .page-logo {
  325. // padding-left: 20px;
  326. // padding-right: 20px;
  327. // width: 20px;
  328. // > a {
  329. // display: none;
  330. // }
  331. // }
  332. // }
  333. // .page-container {
  334. // .page-sidebar-wrapper {
  335. // width: $pageSidebarClosedWidth;
  336. // }
  337. // }
  338. // }
  339. // }
  340. // @media screen and (max-width: 800px) {
  341. // #page-main {
  342. // .page-header {
  343. // .page-logo {
  344. // display: none;
  345. // }
  346. // }
  347. // .page-container {
  348. // display: flex;
  349. // flex-direction: column;
  350. // justify-content: flex-start;
  351. // .page-sidebar-wrapper {
  352. // width: 100%;
  353. // }
  354. // }
  355. // }
  356. // }
  357. // @media screen and (max-height: 700px) {
  358. // #page-main {
  359. // .page-footer {
  360. // display: none;
  361. // }
  362. // }
  363. // }
  364. .content-scrollbar {
  365. height: calc(100vh - 33px);
  366. background: #364150;
  367. .el-scrollbar__bar {
  368. &.is-vertical {
  369. display: none;
  370. }
  371. }
  372. }
  373. #page-main #page-container #page-content-wrapper .box {
  374. display: flex;
  375. flex-direction: column;
  376. .el-tabs {
  377. flex-grow: 1;
  378. flex-shrink: 1;
  379. display: flex;
  380. flex-direction: column;
  381. .el-tabs__header {
  382. flex-grow: 0;
  383. flex-shrink: 0;
  384. }
  385. .el-tabs__content {
  386. flex-grow: 1;
  387. flex-shrink: 1;
  388. display: flex;
  389. flex-direction: column;
  390. .el-tab-pane {
  391. height: 100%;
  392. // flex-grow: 1;
  393. // flex-shrink: 1;
  394. display: flex;
  395. flex-direction: column;
  396. // // > div {
  397. // // flex-grow: 1;
  398. // // flex-shrink: 1;
  399. // // }
  400. }
  401. }
  402. }
  403. }