index.less 5.8 KB

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