layout.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. $color: #c0c4cc;
  2. $bgColor: #232526;
  3. .layout {
  4. height: 100%;
  5. width: 100%;
  6. // 头部
  7. header {
  8. height: 60px;
  9. background-color: #1f1f1f;
  10. // line-height: 60px;
  11. color: white;
  12. display: flex;
  13. justify-content: space-between;
  14. .text {
  15. padding: 5px;
  16. line-height: 60px;
  17. }
  18. .name {
  19. font-size: 24px;
  20. }
  21. .msg_out {
  22. padding: 5px;
  23. .offline,
  24. .online {
  25. display: inline-block;
  26. width: 16px;
  27. height: 16px;
  28. border-radius: 50%;
  29. }
  30. .offline {
  31. background-color: red;
  32. }
  33. .online {
  34. background-color: green;
  35. }
  36. .msg {
  37. font-size: 24x;
  38. cursor: pointer;
  39. }
  40. .out {
  41. line-height: 60px;
  42. padding: 0 20px;
  43. cursor: pointer;
  44. }
  45. }
  46. .refresh_tool {
  47. font-size: 24x;
  48. padding: 0 20px;
  49. cursor: pointer;
  50. }
  51. }
  52. .main {
  53. display: flex;
  54. // max-width: 100%;
  55. max-height: calc(100% - 60px);
  56. width: 100%;
  57. height: calc(100% - 60px);
  58. min-height: calc(100% - 60px);
  59. // overflow-y: auto;
  60. @import './scrolbar.scss';
  61. // 左侧
  62. .left_main {
  63. width: 150px;
  64. text-align: center;
  65. transition: width 0.5s;
  66. background-color: $bgColor;
  67. overflow-y: auto;
  68. .el-menu {
  69. border: none;
  70. height: 100%;
  71. text-align: left;
  72. }
  73. // 关键,必须加上,否则在折叠时会出现第一个文字卡顿后消失
  74. .el-menu:not(.el-menu--collapse) {
  75. width: 100%;
  76. }
  77. .el-submenu .el-menu-item {
  78. min-width: 150px;
  79. }
  80. .open_close {
  81. position: absolute;
  82. left: 20px;
  83. bottom: 20px;
  84. color: white;
  85. font-size: 20px;
  86. cursor: pointer;
  87. }
  88. }
  89. // 右侧
  90. .right_main {
  91. flex: 1;
  92. color: $color;
  93. width: 100%;
  94. // overflow-y: auto;
  95. background-color: #000000;
  96. position: relative;
  97. @import './scrolbar.scss';
  98. .router_view {
  99. @import './table.scss';
  100. @import './date.scss';
  101. overflow-y: auto;
  102. position: absolute;
  103. left: 5px;
  104. right: 5px;
  105. top: 5px;
  106. bottom: 5px;
  107. background-color: #1f1f1f;
  108. border-radius: 8px;
  109. }
  110. // .open_close {
  111. // position: absolute;
  112. // left: 0;
  113. // top: 0;
  114. // color: white;
  115. // font-size: 20px;
  116. // cursor: pointer;
  117. // }
  118. }
  119. .left_main_show {
  120. width: 64px;
  121. }
  122. }
  123. }
  124. /deep/ .el-input__inner::placeholder {
  125. color: #606266;
  126. }
  127. // 全局弹窗样式
  128. /deep/ .el-dialog {
  129. border-radius: 17px;
  130. background-color: $bgColor;
  131. // 头部
  132. .el-dialog__header {
  133. border-radius: 15px 15px 0 0;
  134. .el-dialog__title {
  135. color: $color;
  136. }
  137. }
  138. // 主要内容
  139. .el-dialog__body {
  140. color: $color;
  141. // 禁用状态下
  142. .el-input.is-disabled .el-input__inner {
  143. background-color: #303133;
  144. }
  145. }
  146. // 底部
  147. .el-button--default {
  148. background-color: $bgColor;
  149. border-color: #606266;
  150. color: #c0c4cc;
  151. }
  152. .el-button--default:hover {
  153. color: white;
  154. border-color: $color;
  155. }
  156. }