common.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. html,
  2. body {
  3. height: 100%;
  4. width: 100%;
  5. overflow: visible;
  6. overflow-x: hidden;
  7. margin: 0;
  8. padding: 0;
  9. font-size: 14px;
  10. }
  11. body{
  12. background: #f0f2f5;
  13. }
  14. /* 常用 flex */
  15. .flex-center {
  16. display: flex;
  17. align-items: center;
  18. justify-content: center;
  19. }
  20. .flex-justify-between {
  21. display: flex;
  22. align-items: center;
  23. justify-content: space-between;
  24. }
  25. .flex-align-center {
  26. display: flex;
  27. align-items: center;
  28. }
  29. /* 移动端的时候由于屏幕变小隐藏头部导航栏 */
  30. @media screen and ( max-width: 540px ) {
  31. .app-breadcrumb{
  32. display: none!important;
  33. }
  34. }
  35. /** 设置滚动条 **/
  36. ::-webkit-scrollbar {
  37. width: 7px;
  38. height: 8px;
  39. }
  40. ::-webkit-scrollbar-track {
  41. background-color: rgb(0 0 0 / 5%);
  42. }
  43. ::-webkit-scrollbar-thumb {
  44. // background: rgba(0, 0, 0, 0.6);
  45. background-color: rgb(144 147 153 / 30%);
  46. // background-color: rgba(144, 147, 153, 0.3);
  47. border-radius: 2px;
  48. box-shadow: inset 0 0 6px rgb(0 0 0 / 20%);
  49. }
  50. /* nprogress样式 */
  51. #nprogress .bar {
  52. background: $primaryColor !important;
  53. }
  54. #nprogress .spinner-icon {
  55. border-top-color: $primaryColor !important;
  56. border-left-color: $primaryColor !important;
  57. }
  58. #nprogress .peg {
  59. box-shadow: 0 0 10px $primaryColor, 0 0 5px $primaryColor !important;
  60. }
  61. .app-container {
  62. height: 100%;
  63. width: 100%;
  64. padding: 10px 12px;
  65. box-sizing: border-box;
  66. display: flex;
  67. flex-direction: column;
  68. }
  69. .app-container-inner{
  70. height: 100%;
  71. width: 100%;
  72. box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
  73. background: white;
  74. padding: 20px;
  75. box-sizing: border-box;
  76. }
  77. .layout-horizontal{
  78. .header-icon{
  79. color:#bfcbd9!important;
  80. }
  81. .el-dropdown-link{
  82. color:#bfcbd9!important;
  83. }
  84. }
  85. .el-pager li:focus {
  86. border: none;
  87. }
  88. .el-dropdown:focus {
  89. border: none;
  90. outline: none!important;
  91. }
  92. .svg-icon:focus {
  93. border: none!important;
  94. outline: none!important;
  95. }