_header.scss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. &.layui-layout-left{
  49. left: 280px;
  50. }
  51. background-color: $bg-color;
  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 17px;
  62. transition: 0.3s;
  63. &:hover{
  64. background-color:#121318;
  65. color: $color-active;
  66. cursor: pointer;
  67. }
  68. .fas{
  69. font-size: 1.2em;
  70. &.lit{
  71. font-size: 1em;
  72. }
  73. }
  74. }
  75. }
  76. }
  77. }