123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- @header-trigger-prefix-cls: ~'@{namespace}-layout-header-trigger';
- @header-prefix-cls: ~'@{namespace}-layout-header';
- @locale-prefix-cls: ~'@{namespace}-app-locale-picker';
- @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: @white;
- align-items: center;
- justify-content: space-between;
- &--mobile {
- .@{breadcrumb-prefix-cls},
- .error-action,
- .notify-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: @header-height;
- min-width: 192px;
- padding: 0 10px;
- font-size: 14px;
- img {
- width: @logo-width;
- height: @logo-width;
- margin-right: 2px;
- }
- }
- &-left {
- display: flex;
- height: 100%;
- align-items: center;
- .@{header-trigger-prefix-cls} {
- display: flex;
- height: 100%;
- padding: 1px 10px 0 16px;
- cursor: pointer;
- align-items: center;
- .anticon {
- font-size: 16px;
- }
- &.light {
- &:hover {
- background: @header-light-bg-hover-color;
- }
- svg {
- fill: #000;
- }
- }
- &.dark {
- &:hover {
- background: @header-dark-bg-hover-color;
- }
- }
- }
- }
- &-menu {
- height: 100%;
- min-width: 0;
- flex: 1;
- align-items: center;
- }
- &-action {
- display: flex;
- min-width: 180px;
- padding-right: 12px;
- align-items: center;
- &__item {
- display: flex;
- height: @header-height;
- padding: 0 2px;
- font-size: 1.2em;
- cursor: pointer;
- align-items: center;
- .ant-badge {
- height: @header-height;
- line-height: @header-height;
- }
- .ant-badge-dot {
- top: 10px;
- right: 2px;
- }
- }
- span[role='img'] {
- padding: 0 8px;
- }
- }
- &--light {
- background: @white;
- border-bottom: 1px solid @header-light-bottom-border-color;
- border-left: 1px solid @header-light-bottom-border-color;
- .@{header-prefix-cls}-logo {
- color: @text-color-base;
- &:hover {
- background: @header-light-bg-hover-color;
- }
- }
- .@{header-prefix-cls}-action {
- &__item {
- &:hover {
- background: @header-light-bg-hover-color;
- }
- .@{locale-prefix-cls} {
- padding: 0 6px;
- color: rgba(0, 0, 0, 0.65);
- }
- }
- &-icon,
- span[role='img'] {
- color: @text-color-base;
- }
- }
- }
- &--dark {
- background: @header-dark-bg-color;
- .@{header-prefix-cls}-logo {
- &:hover {
- background: @header-dark-bg-hover-color;
- }
- }
- .@{header-prefix-cls}-action {
- &__item {
- &:hover {
- background: @header-dark-bg-hover-color;
- }
- }
- }
- }
- }
|