1 | @root-entry-name: 'default';
|
2 | @import (reference) '~antd/es/style/themes/index.less';
|
3 | @import (reference) '../../BasicLayout.less';
|
4 |
|
5 | @top-nav-header-prefix-cls: ~'@{ant-prefix}-pro-top-nav-header';
|
6 |
|
7 | .@{top-nav-header-prefix-cls} {
|
8 | position: relative;
|
9 | width: 100%;
|
10 | height: 100%;
|
11 | box-shadow: 0 1px 4px 0 rgba(0, 21, 41, 0.12);
|
12 | transition: background 0.3s, width 0.2s;
|
13 |
|
14 | .@{ant-prefix}-menu {
|
15 | background: transparent;
|
16 | }
|
17 |
|
18 | &.light {
|
19 | background-color: @component-background;
|
20 | .@{top-nav-header-prefix-cls}-logo {
|
21 | h1 {
|
22 | color: @heading-color;
|
23 | }
|
24 | }
|
25 | .anticon {
|
26 | color: inherit;
|
27 | }
|
28 | }
|
29 |
|
30 | &-main {
|
31 | display: flex;
|
32 | height: 100%;
|
33 | padding-left: 16px;
|
34 | &-left {
|
35 | display: flex;
|
36 | min-width: 192px;
|
37 | }
|
38 | }
|
39 |
|
40 | .anticon {
|
41 | color: @btn-primary-color;
|
42 | }
|
43 |
|
44 | &-logo {
|
45 | position: relative;
|
46 | min-width: 165px;
|
47 | height: 100%;
|
48 | overflow: hidden;
|
49 |
|
50 | img,
|
51 | a > svg {
|
52 | display: inline-block;
|
53 | height: 32px;
|
54 | vertical-align: middle;
|
55 | }
|
56 |
|
57 | h1 {
|
58 | display: inline-block;
|
59 | margin: 0 0 0 12px;
|
60 | color: @btn-primary-color;
|
61 | font-size: 16px;
|
62 | vertical-align: top;
|
63 | }
|
64 | }
|
65 |
|
66 | &-menu {
|
67 | min-width: 0;
|
68 | .@{ant-prefix}-menu.@{ant-prefix}-menu-horizontal {
|
69 | height: 100%;
|
70 | border: none;
|
71 | }
|
72 | }
|
73 | }
|