_header.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. &.layui-layout-left{
  50. left: 280px;
  51. }
  52. .layui-nav-bar{
  53. display: none;
  54. }
  55. .layui-this:after{
  56. display: none;
  57. }
  58. .layui-nav-item{
  59. text-align: center;
  60. line-height: 20px;
  61. padding: 10px 0;
  62. transition: 0.3s;
  63. a{
  64. padding:0 15px;
  65. }
  66. &:hover{
  67. background-color:#121318;
  68. color: $color-active;
  69. cursor: pointer;
  70. & a{
  71. color: $color-active;
  72. }
  73. }
  74. .fas{
  75. font-size: 1.2em;
  76. &.lit{
  77. font-size: 1em;
  78. }
  79. }
  80. }
  81. }
  82. }
  83. }