index.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. @header-trigger-prefix-cls: ~'@{namespace}-layout-header-trigger';
  2. @header-prefix-cls: ~'@{namespace}-layout-header';
  3. @breadcrumb-prefix-cls: ~'@{namespace}-layout-breadcrumb';
  4. @logo-prefix-cls: ~'@{namespace}-app-logo';
  5. @ventSpace: zxm;
  6. .@{header-prefix-cls} {
  7. display: flex;
  8. height: @header-height;
  9. padding: 0;
  10. margin-left: -1px;
  11. line-height: @header-height;
  12. color: @white;
  13. // background-color: @white;
  14. // align-items: center;
  15. justify-content: space-between;
  16. &--mobile {
  17. .@{breadcrumb-prefix-cls},
  18. .error-action,
  19. .notify-item,
  20. .lock-item,
  21. .fullscreen-item {
  22. display: none;
  23. }
  24. .@{logo-prefix-cls} {
  25. min-width: unset;
  26. padding-right: 0;
  27. &__title {
  28. display: none;
  29. }
  30. }
  31. .@{header-trigger-prefix-cls} {
  32. padding: 0 4px 0 8px !important;
  33. }
  34. .@{header-prefix-cls}-action {
  35. padding-right: 4px;
  36. }
  37. }
  38. &--fixed {
  39. position: fixed;
  40. top: 0;
  41. left: 0;
  42. z-index: @layout-header-fixed-z-index;
  43. width: 100%;
  44. }
  45. &-logo {
  46. height: 100%;
  47. // height: @header-height;
  48. min-width: 192px;
  49. padding: 0 10px;
  50. font-size: 14px;
  51. img {
  52. width: @logo-width;
  53. height: @logo-width;
  54. margin-right: 5px;
  55. }
  56. }
  57. &-left {
  58. display: flex;
  59. flex: 1;
  60. //height: 100%;
  61. height: 48px;
  62. //align-items: center;
  63. .@{header-trigger-prefix-cls} {
  64. display: flex;
  65. height: 100%;
  66. padding: 1px 10px 0 10px;
  67. cursor: pointer;
  68. //align-items: center;
  69. .anticon {
  70. font-size: 16px;
  71. }
  72. &.light {
  73. &:hover {
  74. background-color: @header-light-bg-hover-color;
  75. }
  76. svg {
  77. fill: #000;
  78. }
  79. }
  80. &.dark {
  81. &:hover {
  82. background-color: @header-dark-bg-hover-color;
  83. }
  84. }
  85. }
  86. }
  87. &-menu {
  88. height: 100%;
  89. min-width: 0;
  90. flex: 1;
  91. align-items: center;
  92. }
  93. &-vent {
  94. height: 48px;
  95. flex: 1;
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. font-size: 26px; //#ffa500 ffbb63
  100. font-weight: 600;
  101. //text-shadow: -1px -1px 1px #fff8ef;
  102. // text-shadow: -0px -1px 0px #ffbb63, -1px -1px 1px #fff8ef, 0px 2px 0 #74520022, 0px 3px 0 #74520022, 0px 4px 0 #74520022, 0px 5px 0 #74520022,
  103. // 0px 6px 0 #74520022, 0px 7px 0 #28282822,
  104. // //0px 8px 0 #28282822,
  105. // //0px 9px 0 #28282822,
  106. // //0px 10px 0 #28282822,
  107. // //0px 11px 0 #28282822,
  108. // // 0px 12px 0 #181818,
  109. // // 0px 13px 0 #161616,
  110. // // 0px 14px 0 #141414,
  111. // // 0px 15px 0 #121212,
  112. // 2px 15px 5px rgba(0, 0, 0, 0.3),
  113. // 5px 18px 5px rgba(0, 0, 0, 0.1), 8px 24px 8px rgba(0, 0, 0, 0.2), 8px 28px 35px rgba(0, 0, 0, 0.9);
  114. &:before {
  115. content: attr(text);
  116. position: absolute;
  117. z-index: 10;
  118. color: pink;
  119. -webkit-mask: linear-gradient(to left, red, transparent);
  120. }
  121. }
  122. &-action {
  123. display: flex;
  124. flex: 1;
  125. //min-width: 180px;
  126. // padding-right: 12px;
  127. align-items: center;
  128. .right-position {
  129. position: absolute;
  130. right: 0;
  131. }
  132. &__item {
  133. display: flex !important;
  134. //height: @header-height;
  135. height: 48px;
  136. padding: 0 2px;
  137. font-size: 1.2em;
  138. cursor: pointer;
  139. align-items: center;
  140. .@{ventSpace}-badge {
  141. //height: @header-height;
  142. //line-height: @header-height;
  143. height: 48px;
  144. line-height: 48px;
  145. }
  146. .@{ventSpace}-badge-dot {
  147. top: 10px;
  148. right: 2px;
  149. }
  150. }
  151. span[role='img'] {
  152. padding: 0 8px;
  153. }
  154. }
  155. &--light {
  156. // background-color: transparent !important;
  157. // border-bottom: 1px solid @header-light-bottom-border-color;
  158. // border-left: 1px solid @header-light-bottom-border-color;
  159. // background: linear-gradient(#02050c 0%, #03114c 100%);
  160. // border: none;
  161. background: linear-gradient(#005177, #0a344c);
  162. border-bottom: 1px solid #81aabf01;
  163. padding-bottom: 2px;
  164. box-shadow: 0 0 20px #44caff55 inset;
  165. .@{header-prefix-cls}-logo {
  166. //color: @text-color-base;
  167. color: #0a8fe9;
  168. &:hover {
  169. //background-color: @header-light-bg-hover-color;
  170. color: #0a8fe9;
  171. }
  172. }
  173. .@{header-prefix-cls}-action {
  174. height: 48px;
  175. &__item {
  176. //color: @text-color-base;
  177. color: @white;
  178. .app-iconify {
  179. padding: 0 10px;
  180. font-size: 16px !important;
  181. }
  182. &:hover {
  183. //background-color: @header-light-bg-hover-color;
  184. }
  185. }
  186. &-icon,
  187. span[role='img'] {
  188. //color: @text-color-base;
  189. color: @white;
  190. }
  191. }
  192. }
  193. &--dark {
  194. background-color: @header-dark-bg-color !important;
  195. // border-bottom: 1px solid @border-color-base;
  196. border-left: 1px solid @border-color-base;
  197. .@{header-prefix-cls}-logo {
  198. &:hover {
  199. background-color: @header-dark-bg-hover-color;
  200. }
  201. }
  202. .@{header-prefix-cls}-action {
  203. height: 48px;
  204. color: @white;
  205. &__item {
  206. .app-iconify {
  207. padding: 0 10px;
  208. font-size: 16px !important;
  209. }
  210. .@{ventSpace}-badge {
  211. span {
  212. color: @white;
  213. }
  214. }
  215. &:hover {
  216. background-color: @header-dark-bg-hover-color;
  217. }
  218. }
  219. }
  220. }
  221. }
  222. .vent-header {
  223. height: 120px !important;
  224. // background: url('/src/assets/images/vent/header-bg.png') no-repeat !important;
  225. background: url('/src/assets/images/vent/vent-header2.png') no-repeat !important;
  226. border: none !important;
  227. padding-bottom: 0px !important;
  228. box-shadow: none !important;
  229. position: fixed !important;
  230. width: 100%;
  231. z-index: 999;
  232. }