| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- @import '~antd/es/style/themes/default.less';
- @pro-header-hover-bg: rgba(0, 0, 0, 0.025);
- .menu {
- :global(.anticon) {
- margin-right: 8px;
- }
- :global(.ant-dropdown-menu-item) {
- min-width: 160px;
- }
- }
- .right {
- display: flex;
- float: right;
- height: 48px;
- margin-left: auto;
- overflow: hidden;
- .action {
- display: flex;
- align-items: center;
- height: 100%;
- padding: 0 12px;
- cursor: pointer;
- transition: all 0.3s;
- > span {
- vertical-align: middle;
- }
- &:hover {
- background: @pro-header-hover-bg;
- }
- &:global(.opened) {
- background: @pro-header-hover-bg;
- }
- }
- .search {
- padding: 0 12px;
- &:hover {
- background: transparent;
- }
- }
- .account {
- .avatar {
- margin: ~'calc((@{layout-header-height} - 24px) / 2)' 0;
- margin-right: 8px;
- color: @primary-color;
- vertical-align: top;
- background: rgba(255, 255, 255, 0.85);
- }
- }
- }
- .dark {
- .action {
- color: rgba(255, 255, 255, 0.85);
- > span {
- color: rgba(255, 255, 255, 0.85);
- }
- &:hover,
- &:global(.opened) {
- background: @primary-color;
- }
- }
- }
- :global(.ant-pro-global-header) {
- .dark {
- .action {
- color: @text-color;
- > span {
- color: @text-color;
- }
- &:hover {
- color: rgba(255, 255, 255, 0.85);
- > span {
- color: rgba(255, 255, 255, 0.85);
- }
- }
- }
- }
- }
|