123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- @header-trigger-prefix-cls: ~'@{namespace}-layout-header-trigger';
- @header-prefix-cls: ~'@{namespace}-layout-header';
- @breadcrumb-prefix-cls: ~'@{namespace}-layout-breadcrumb';
- @logo-prefix-cls: ~'@{namespace}-app-logo';
- .@{header-prefix-cls} {
- display: flex;
- height: @header-height;
- padding: 0;
- margin-left: -1px;
- line-height: @header-height;
- color: @white;
- // background-color: @white;
- // align-items: center;
- justify-content: space-between;
- &--mobile {
- .@{breadcrumb-prefix-cls},
- .error-action,
- .notify-item,
- .lock-item,
- .fullscreen-item {
- display: none;
- }
- .@{logo-prefix-cls} {
- min-width: unset;
- padding-right: 0;
- &__title {
- display: none;
- }
- }
- .@{header-trigger-prefix-cls} {
- padding: 0 4px 0 8px !important;
- }
- .@{header-prefix-cls}-action {
- padding-right: 4px;
- }
- }
- &--fixed {
- position: fixed;
- top: 0;
- left: 0;
- z-index: @layout-header-fixed-z-index;
- width: 100%;
- }
- &-logo {
- height: 100%;
- // height: @header-height;
- min-width: 192px;
- padding: 0 10px;
- font-size: 14px;
- img {
- // width: @logo-width;
- // height: @logo-width;
- width: 40px;
- height: @logo-width;
- margin-right: 5px;
- }
- }
- &-left {
- display: flex;
- flex: 1;
- //height: 100%;
- height: 48px;
- //align-items: center;
- .@{header-trigger-prefix-cls} {
- display: flex;
- height: 100%;
- padding: 1px 10px 0 10px;
- cursor: pointer;
- //align-items: center;
- .anticon {
- font-size: 16px;
- }
- &.light {
- &:hover {
- background-color: @header-light-bg-hover-color;
- }
- svg {
- fill: #000;
- }
- }
- &.dark {
- &:hover {
- background-color: @header-dark-bg-hover-color;
- }
- }
- }
- }
- &-menu {
- height: 100%;
- min-width: 0;
- flex: 1;
- align-items: center;
- }
- &-vent {
- height: 48px;
- flex: 1;
- display: flex;
- justify-content: center;
- align-items: center;
- //font-family: Geneva, sans-serif;
- font-size: 22px; //#ffa500 ffbb63
- //color: #ff9900;
- color: #ffa500;
- letter-spacing: 0.15em;
- //text-shadow: -1px -1px 1px #fff8ef;
- 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,
- 0px 6px 0 #74520022, 0px 7px 0 #28282822,
- //0px 8px 0 #28282822,
- //0px 9px 0 #28282822,
- //0px 10px 0 #28282822,
- //0px 11px 0 #28282822,
- // 0px 12px 0 #181818,
- // 0px 13px 0 #161616,
- // 0px 14px 0 #141414,
- // 0px 15px 0 #121212,
- 2px 15px 5px rgba(0, 0, 0, 0.3),
- 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);
- &:before {
- content: attr(text);
- position: absolute;
- z-index: 10;
- color: pink;
- -webkit-mask: linear-gradient(to left, red, transparent);
- }
- }
- &-action {
- display: flex;
- flex: 1;
- //min-width: 180px;
- // padding-right: 12px;
- align-items: center;
- .right-position {
- position: absolute;
- right: 0;
- }
- &__item {
- display: flex !important;
- //height: @header-height;
- height: 48px;
- padding: 0 2px;
- font-size: 1.2em;
- cursor: pointer;
- align-items: center;
- .ant-badge {
- //height: @header-height;
- //line-height: @header-height;
- height: 48px;
- line-height: 48px;
- }
- .ant-badge-dot {
- top: 10px;
- right: 2px;
- }
- }
- span[role='img'] {
- padding: 0 8px;
- }
- }
- &--light {
- // background-color: transparent !important;
- // border-bottom: 1px solid @header-light-bottom-border-color;
- // border-left: 1px solid @header-light-bottom-border-color;
- // background: linear-gradient(#02050c 0%, #03114c 100%);
- // border: none;
- background: linear-gradient(#005177, #0a344c);
- border-bottom: 1px solid #81aabf01;
- padding-bottom: 2px;
- box-shadow: 0 0 20px #44caff55 inset;
- .@{header-prefix-cls}-logo {
- //color: @text-color-base;
- color: #0a8fe9;
- &:hover {
- //background-color: @header-light-bg-hover-color;
- color: #0a8fe9;
- }
- }
- .@{header-prefix-cls}-action {
- height: 48px;
- &__item {
- //color: @text-color-base;
- color: @white;
- .app-iconify {
- padding: 0 10px;
- font-size: 16px !important;
- }
- &:hover {
- //background-color: @header-light-bg-hover-color;
- }
- }
- &-icon,
- span[role='img'] {
- //color: @text-color-base;
- color: @white;
- }
- }
- }
- &--dark {
- background-color: @header-dark-bg-color !important;
- // border-bottom: 1px solid @border-color-base;
- border-left: 1px solid @border-color-base;
- .@{header-prefix-cls}-logo {
- &:hover {
- background-color: @header-dark-bg-hover-color;
- }
- }
- .@{header-prefix-cls}-action {
- height: 48px;
- color: @white;
- &__item {
- .app-iconify {
- padding: 0 10px;
- font-size: 16px !important;
- }
- .ant-badge {
- span {
- color: @white;
- }
- }
- &:hover {
- background-color: @header-dark-bg-hover-color;
- }
- }
- }
- }
- }
- .vent-header {
- height: 120px !important;
- background: url('/src/assets/images/vent/header-bg.png') no-repeat !important;
- border: none !important;
- padding-bottom: 0px !important;
- box-shadow: none !important;
- }
|