_header.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. .header-menu {
  47. .layui-nav{
  48. background-color: $bg-color;
  49. height: 60px;
  50. transition: all .5s;
  51. &:hover{
  52. height: auto;
  53. }
  54. &.layui-layout-left{
  55. left: 280px;
  56. right: 340px;
  57. }
  58. .layui-nav-bar{
  59. display: none;
  60. }
  61. .layui-this:after{
  62. display: none;
  63. }
  64. .layui-nav-item{
  65. text-align: center;
  66. line-height: 20px;
  67. padding: 10px 0;
  68. transition: 0.3s;
  69. width: 85px;
  70. a{
  71. padding:0 15px;
  72. white-space: nowrap;
  73. }
  74. &:hover{
  75. background-color:#121318;
  76. color: $color-active;
  77. cursor: pointer;
  78. & a{
  79. color: $color-active;
  80. }
  81. }
  82. .fas{
  83. font-size: 1.2em;
  84. &.lit{
  85. font-size: 1em;
  86. }
  87. }
  88. }
  89. }
  90. }
  91. .layui-nav.header-operation{
  92. background-color: $bg-color;
  93. .layui-nav-bar{
  94. background-color: $color-active;
  95. }
  96. }
  97. }