_header.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. $bg-color :#20222a;
  2. $color-white :#fff;
  3. $color-active :#2168fe;
  4. .z-header{
  5. height:60px;
  6. width:100%;
  7. background-color: $bg-color;
  8. color: $color-white;
  9. .logo-box{
  10. padding: 0 15px;
  11. width:265px;
  12. line-height: 60px;
  13. font-size: 1.3em;
  14. .user-img,.user-name{
  15. float: left;
  16. height: 60px;
  17. padding: 0 10px;
  18. line-height: 60px;
  19. }
  20. .user-name{
  21. overflow: hidden;
  22. display: inline-block;
  23. width: 150px;
  24. overflow: hidden;
  25. white-space: nowrap;
  26. text-overflow:ellipsis;
  27. }
  28. img{
  29. height: 30px;
  30. }
  31. .user-drop{
  32. cursor: pointer;
  33. color: #808186;
  34. }
  35. .z-drop-box{
  36. top:16px;
  37. }
  38. .dividing{
  39. float: right;
  40. height: 20px;
  41. width: 1px;
  42. background-color: #808186;
  43. margin-top: 20px;
  44. }
  45. }
  46. .layui-nav{
  47. z-index: 10;
  48. .layui-this:after{
  49. display: none;
  50. }
  51. }
  52. .header-menu{
  53. .layui-nav{
  54. background-color: $bg-color;
  55. height: 60px;
  56. transition: all .5s;
  57. &:hover{
  58. height: auto;
  59. }
  60. &.layui-layout-left{
  61. left: 280px;
  62. right: 340px;
  63. overflow: hidden;
  64. }
  65. .layui-nav-bar{
  66. display: none;
  67. }
  68. .layui-this:after{
  69. display: none;
  70. }
  71. .layui-nav-item{
  72. text-align: center;
  73. line-height: 20px;
  74. transition: 0.3s;
  75. a{
  76. padding: 10px 15px;
  77. white-space: nowrap;
  78. &:hover{
  79. cursor: pointer;
  80. }
  81. }
  82. &.layui-this{
  83. background-color:#121318;
  84. color: $color-active;
  85. a{
  86. color: $color-active;
  87. }
  88. }
  89. &:hover{
  90. background-color:#121318;
  91. color: $color-active;
  92. a{
  93. color: $color-active;
  94. }
  95. }
  96. .fas{
  97. font-size: 1.2em;
  98. display: block;
  99. line-height: 1.2;
  100. &.lit{
  101. font-size: 1em;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. .layui-nav.header-operation{
  108. background-color: $bg-color;
  109. .layui-nav-bar{
  110. background-color: $color-active;
  111. }
  112. }
  113. }