index.less 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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: var(--vent-header-bg-color);
  162. // background: linear-gradient(#005177, #0a344c);
  163. border-bottom: 1px solid #81aabf01;
  164. padding-bottom: 2px;
  165. box-shadow: 0 0 20px #44caff55 inset;
  166. .@{header-prefix-cls}-logo {
  167. //color: @text-color-base;
  168. color: #0a8fe9;
  169. &:hover {
  170. //background-color: @header-light-bg-hover-color;
  171. color: #0a8fe9;
  172. }
  173. }
  174. .@{header-prefix-cls}-action {
  175. height: 48px;
  176. &__item {
  177. //color: @text-color-base;
  178. color: @white;
  179. .app-iconify {
  180. padding: 0 10px;
  181. font-size: 16px !important;
  182. }
  183. &:hover {
  184. //background-color: @header-light-bg-hover-color;
  185. }
  186. }
  187. &-icon,
  188. span[role='img'] {
  189. //color: @text-color-base;
  190. color: @white;
  191. }
  192. }
  193. }
  194. &--dark {
  195. background-color: @header-dark-bg-color !important;
  196. // border-bottom: 1px solid @border-color-base;
  197. border-left: 1px solid @border-color-base;
  198. .@{header-prefix-cls}-logo {
  199. &:hover {
  200. background-color: @header-dark-bg-hover-color;
  201. }
  202. }
  203. .@{header-prefix-cls}-action {
  204. height: 48px;
  205. color: @white;
  206. &__item {
  207. .app-iconify {
  208. padding: 0 10px;
  209. font-size: 16px !important;
  210. }
  211. .@{ventSpace}-badge {
  212. span {
  213. color: @white;
  214. }
  215. }
  216. &:hover {
  217. background-color: @header-dark-bg-hover-color;
  218. }
  219. }
  220. }
  221. }
  222. }
  223. .vent-header {
  224. height: 120px !important;
  225. // background: url('/src/assets/images/vent/header-bg.png') no-repeat !important;
  226. background: url('/src/assets/images/vent/vent-header2.png') no-repeat !important;
  227. border: none !important;
  228. padding-bottom: 0px !important;
  229. box-shadow: none !important;
  230. position: fixed !important;
  231. width: 100%;
  232. z-index: 999;
  233. }