headertop.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. $headerTextColor: #ffffff;
  2. #app {
  3. .header-container {
  4. min-width: 1300px;
  5. position: fixed;
  6. top: 0;
  7. left: 0;
  8. z-index: 100;
  9. width: 100%;
  10. height: $headerHeight;
  11. background: url("/images/bg.png") repeat-x;
  12. padding-left: 20px;
  13. color: $headerTextColor;
  14. // line-height: $headerHeight;
  15. .header-left {
  16. float: left;
  17. height: $headerHeight;
  18. display: flex;
  19. align-items: center;
  20. img.logo {
  21. height: 78px;
  22. }
  23. }
  24. .tip-box {
  25. margin-left: 10px;
  26. display: flex;
  27. flex-direction: column;
  28. justify-content: center;
  29. .tip-system {
  30. font-size: 2em;
  31. font-weight: 400;
  32. letter-spacing: 2px;
  33. }
  34. .tip-theme {
  35. display: flex;
  36. justify-content: space-between;
  37. font-size: 1.3em;
  38. font-weight: 200;
  39. letter-spacing: 20px;
  40. margin: 10px 0 0 2px;
  41. .tip-theme-right {
  42. margin-right: -14px;
  43. }
  44. }
  45. }
  46. .header-right {
  47. float: right;
  48. height: $headerHeight;
  49. margin-right: 10px;
  50. }
  51. .right-top {
  52. height: $headerHeight / 2;
  53. margin-top: 5px;
  54. display: flex;
  55. align-items: center;
  56. font-size: 14px;
  57. }
  58. .right-top-item {
  59. margin-left: 20px;
  60. cursor: pointer;
  61. transition: background .3s;
  62. &:hover {
  63. background: rgba(0, 0, 0, .025)
  64. }
  65. .item-message-badge .el-badge__content {
  66. display: none;
  67. }
  68. .item-title {
  69. margin-left: 10px;
  70. }
  71. .badge-item {
  72. .el-badge__content {
  73. font-size: 8px;
  74. height: 15px;
  75. line-height: 14px;
  76. padding: 0 3px;
  77. &.is-fixed {
  78. top: -3px;
  79. transform: translateY(-50%) translateX(100%) scale(0.8);
  80. }
  81. }
  82. }
  83. .el-avatar,
  84. .user-name {
  85. vertical-align: middle;
  86. font-size: 14px;
  87. color: $headerTextColor;
  88. }
  89. .user-name {
  90. margin-left: 5px;
  91. }
  92. }
  93. }
  94. }