index.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @import "../layout_common";
  2. .#{$prefix}layout-wrap--top {
  3. width: 100%;
  4. height: 100%;
  5. .#{$prefix}layout-header {
  6. box-sizing: border-box;
  7. display: flex;
  8. align-items: center;
  9. justify-content: space-between;
  10. height: $header_height;
  11. padding: 0;
  12. background-color: var(--el-header-bg-color);
  13. border-bottom: 1px solid var(--el-header-border-color);
  14. //box-shadow: 0 1px 4px -1px var(--el-header-border-color);
  15. //z-index: $header_index;
  16. .logo {
  17. display: flex;
  18. align-items: center;
  19. justify-content: center;
  20. width: 210px;
  21. margin-right: 10px;
  22. .logo-img {
  23. //width: 28px;
  24. width: 36px;
  25. height: 36px;
  26. object-fit: contain;
  27. margin: 0 6px;
  28. }
  29. .logo-text {
  30. font-size: 15px;
  31. font-weight: bold;
  32. color: var(--el-color-primary);
  33. white-space: nowrap;
  34. }
  35. }
  36. .layout-menu-wrap {
  37. flex: 1;
  38. height: 100%;
  39. overflow: hidden;
  40. border-bottom: none;
  41. margin-top: 0;
  42. .el-sub-menu__hide-arrow {
  43. width: 65px;
  44. //height: $header_height - 1px;
  45. }
  46. .el-menu-item,
  47. .el-sub-menu__title {
  48. margin-top: 0;
  49. &::before {
  50. left: 0;
  51. right: 0;
  52. }
  53. }
  54. .is-active {
  55. border-bottom-color: var(--el-color-primary) !important;
  56. /*&::before {
  57. width: 0;
  58. }*/
  59. .el-sub-menu__title {
  60. border-bottom-color: var(--el-color-primary) !important;
  61. }
  62. }
  63. }
  64. }
  65. @media screen and (width <= 730px) {
  66. .logo {
  67. display: none !important;
  68. }
  69. }
  70. .app-main {
  71. min-height: 0;
  72. }
  73. }
  74. .layout-menu-popper-wrap.el-menu--horizontal {
  75. --el-menu-horizontal-sub-item-height: 42px;
  76. .el-menu-item::before,
  77. .el-sub-menu__title::before {
  78. left: 0;
  79. right: 0;
  80. }
  81. }