mock平台

Header.scss 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. @import '../../styles/mixin.scss';
  2. .nav-tooltip {
  3. color: red;
  4. }
  5. .user-menu.ant-menu.ant-menu-dark .ant-menu-item-selected {
  6. background: #32363a;
  7. color: rgba(255, 255, 255, 0.67);
  8. }
  9. .user-menu.ant-menu-dark .ant-menu-item-selected > a {
  10. color: rgba(255, 255, 255, 0.67);
  11. }
  12. /* .header-box.css */
  13. .header-box {
  14. height: .56rem;
  15. line-height: .56rem;
  16. padding: 0;
  17. .logo {
  18. position: relative;
  19. float: left;
  20. line-height: .56rem;
  21. height: .56rem;
  22. width: 56px;
  23. border-right: 1px solid #55616d;
  24. border-left: 1px solid #55616d;
  25. background-color: inherit;
  26. transition: all .2s;
  27. &:hover{
  28. background-color: #2395f1;
  29. }
  30. .href {
  31. text-decoration: none;
  32. display: block;
  33. }
  34. .logo-name {
  35. color: $color-white;
  36. font-size: .24rem;
  37. font-weight: 300;
  38. margin-left: .38rem;
  39. }
  40. .img {
  41. position: absolute;
  42. left: 0;
  43. top: 50%;
  44. left: 50%;
  45. transform: translate(-16px,-17px);
  46. }
  47. .ui-badge {
  48. position: absolute;
  49. right: -18px;
  50. top: 6px;
  51. width: 30px;
  52. height: 21px;
  53. background-size: 236px 21px;
  54. background-repeat: no-repeat;
  55. background-image: none;
  56. }
  57. // &:before, &:after {
  58. // content: '';
  59. // display: block;
  60. // width: 2px;
  61. // height: .56rem;
  62. // background-color: #222;
  63. // border-left: 1px solid #575D67;
  64. // position: relative;
  65. // top: 0;
  66. // }
  67. // &:before {
  68. // float: left;
  69. // left: -.08rem;
  70. // }
  71. // &:after {
  72. // float: right;
  73. // right: -.27rem;
  74. // }
  75. }
  76. .nav-toolbar {
  77. font-size: .15rem;
  78. float: left;
  79. }
  80. .user-menu{
  81. margin-top: 20px;
  82. }
  83. .user-toolbar{
  84. float: right;
  85. height: .54rem;
  86. display: flex;
  87. align-items: center;
  88. .item-search {
  89. width: 2rem;
  90. }
  91. .toolbar-li{
  92. float: left;
  93. font-size: .14rem;
  94. cursor: pointer;
  95. color: #ccc;
  96. margin-left: .16rem;
  97. transition: color .2s;
  98. & a {
  99. color: #ccc;
  100. }
  101. .dropdown-link {
  102. color: #ccc;
  103. transition: color .2s;
  104. // .ant-avatar-image{
  105. // margin-bottom: -10px;
  106. // }
  107. // .ant-avatar > img{
  108. // height: auto;
  109. // }
  110. .avatar-image{
  111. margin-bottom: -10px;
  112. display: inline-block;
  113. text-align: center;
  114. background: #ccc;
  115. color: #fff;
  116. white-space: nowrap;
  117. position: relative;
  118. overflow: hidden;
  119. width: 32px;
  120. height: 32px;
  121. line-height: 0;
  122. border-radius: 16px;
  123. }
  124. .avatar-image > img{
  125. height: auto;
  126. width:100%;
  127. display: bloack;
  128. }
  129. }
  130. .anticon.active {
  131. color: #2395f1;
  132. }
  133. &:hover{
  134. .dropdown-link {
  135. color: #2395f1;
  136. }
  137. }
  138. .name {
  139. margin-left: .08rem;
  140. }
  141. }
  142. }
  143. }