| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- @import '~antd/lib/style/themes/default.less';
- .header {
- height: 64px;
- padding: 0 12px 0 0;
- background: #fff;
- box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
- position: relative;
- }
- .logo {
- height: 64px;
- line-height: 58px;
- vertical-align: top;
- display: inline-block;
- padding: 0 0 0 24px;
- cursor: pointer;
- font-size: 20px;
- img {
- display: inline-block;
- vertical-align: middle;
- }
- }
- .menu {
- :global(.anticon) {
- margin-right: 8px;
- }
- :global(.ant-dropdown-menu-item) {
- width: 160px;
- }
- }
- i.trigger {
- font-size: 20px;
- line-height: 64px;
- cursor: pointer;
- transition: all 0.3s, padding 0s;
- padding: 24px;
- &:hover {
- background: @primary-1;
- }
- }
- .right {
- float: right;
- height: 100%;
- .action {
- cursor: pointer;
- padding: 0 12px;
- display: inline-block;
- transition: all 0.3s;
- height: 100%;
- > i {
- font-size: 16px;
- vertical-align: middle;
- color: @text-color;
- }
- &:hover {
- background: @primary-1;
- }
- :global(&.ant-popover-open) {
- background: @primary-1;
- }
- }
- .search {
- padding: 0 12px;
- &:hover {
- background: transparent;
- }
- }
- .account {
- .avatar {
- margin: 20px 8px 20px 0;
- color: @primary-color;
- background: rgba(255, 255, 255, 0.85);
- vertical-align: middle;
- }
- }
- }
- .dark {
- height: 64px;
- .action {
- color: rgba(255, 255, 255, 0.85);
- > i {
- color: rgba(255, 255, 255, 0.85);
- }
- &:hover,
- &:global(.ant-popover-open) {
- background: @primary-color;
- }
- :global(.ant-badge) {
- color: rgba(255, 255, 255, 0.85);
- }
- }
- }
- @media only screen and (max-width: @screen-md) {
- .header {
- :global(.ant-divider-vertical) {
- vertical-align: unset;
- }
- .name {
- display: none;
- }
- i.trigger {
- padding: 24px 12px;
- }
- .logo {
- padding-right: 12px;
- position: relative;
- }
- .right {
- position: absolute;
- right: 12px;
- top: 0;
- background: #fff;
- .account {
- .avatar {
- margin-right: 0;
- }
- }
- }
- }
- }
|