1 | @root-entry-name: 'default';
|
2 | @import (reference) '~antd/es/style/themes/index.less';
|
3 | @import (reference) '../../BasicLayout.less';
|
4 |
|
5 | @pro-layout-global-header-prefix-cls: ~'@{ant-prefix}-pro-global-header';
|
6 |
|
7 | @pro-layout-header-bg: @component-background;
|
8 | @pro-layout-header-hover-bg: @component-background;
|
9 | @pro-layout-header-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
10 |
|
11 | .@{pro-layout-global-header-prefix-cls} {
|
12 | position: relative;
|
13 | display: flex;
|
14 | align-items: center;
|
15 | height: 100%;
|
16 | padding: 0 16px;
|
17 | background: @pro-layout-header-bg;
|
18 | box-shadow: @pro-layout-header-box-shadow;
|
19 | > * {
|
20 | height: 100%;
|
21 | }
|
22 |
|
23 | &-collapsed-button {
|
24 | display: flex;
|
25 | align-items: center;
|
26 | margin-left: 16px;
|
27 | font-size: 20px;
|
28 | }
|
29 |
|
30 | &-layout {
|
31 | &-mix {
|
32 | background-color: @layout-sider-background;
|
33 | .@{pro-layout-global-header-prefix-cls}-logo {
|
34 | h1 {
|
35 | color: @btn-primary-color;
|
36 | }
|
37 | }
|
38 | .anticon {
|
39 | color: @btn-primary-color;
|
40 | }
|
41 | }
|
42 | }
|
43 |
|
44 | &-logo {
|
45 | position: relative;
|
46 | overflow: hidden;
|
47 | a {
|
48 | display: flex;
|
49 | align-items: center;
|
50 | height: 100%;
|
51 | img {
|
52 | height: 28px;
|
53 | }
|
54 | h1 {
|
55 | height: 32px;
|
56 | margin: 0 0 0 12px;
|
57 | color: @primary-color;
|
58 | font-weight: 600;
|
59 | font-size: 18px;
|
60 | line-height: 32px;
|
61 | }
|
62 | }
|
63 | }
|
64 |
|
65 | &-logo-rtl {
|
66 | a {
|
67 | h1 {
|
68 | margin: 0 12px 0 0;
|
69 | }
|
70 | }
|
71 | }
|
72 |
|
73 | &-menu {
|
74 | .anticon {
|
75 | margin-right: 8px;
|
76 | }
|
77 | .@{ant-prefix}-dropdown-menu-item {
|
78 | min-width: 160px;
|
79 | }
|
80 | }
|
81 |
|
82 | .dark {
|
83 | height: @pro-layout-header-height;
|
84 | .action {
|
85 | color: rgba(255, 255, 255, 0.85);
|
86 | > i {
|
87 | color: rgba(255, 255, 255, 0.85);
|
88 | }
|
89 | &:hover,
|
90 | &.opened {
|
91 | background: @primary-color;
|
92 | }
|
93 | .@{ant-prefix}-badge {
|
94 | color: rgba(255, 255, 255, 0.85);
|
95 | }
|
96 | }
|
97 | }
|
98 | }
|