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