@import '~styles/variables';
.menu {
color: @avatar-dropdown-text-color;
background-color: @avatar-dropdown-background-color;
:global(.anticon) {
margin-right: 8px;
}
:global {
.ant-dropdown-menu-item {
min-width: 245px;
color: @avatar-dropdown-text-color;
&:hover {
color: @avatar-dropdown-hover-text-color;
background-color: @avatar-dropdown-hover-background-color;
}
}
}
.no-hover {
overflow: hidden;
&:hover {
background-color: @avatar-dropdown-hover-background-color;
}
}
.name-item {
padding: 0 12px;
font-weight: bold;
line-height: 40px;
.user-label {
margin-right: 8px;
}
span {
line-height: 40px;
}
}
.menu-item {
line-height: 30px;
:global {
.ant-btn {
color: @avatar-dropdown-button-color;
}
.ant-btn-link[disabled] {
color: @avatar-dropdown-button-disabled-color;
}
}
}
.menu-btn {
color: @avatar-dropdown-button-color;
}
.menu-divider {
background-color: @avatar-dropdown-divider-color;
}
}
.no-padding-top {
padding-top: 0;
}
.logout {
float: right;
line-height: 40px;
}
.right {
position: absolute;
top: 0;
right: 31px;
line-height: @header-height;
.action {
display: inline-block;
}
}
.project-menu {
:global(.ant-dropdown-menu) {
width: 170px;
}
:global {
.ant-dropdown-menu-item:hover,
.ant-dropdown-menu-submenu-title:hover {
cursor: pointer;
}
.ant-dropdown-menu-item-disabled,
.ant-dropdown-menu-submenu-title-disabled {
cursor: pointer;
}
}
.title {
cursor: auto;
&:hover {
background-color: #fff;
}
}
}
.project {
display: flex;
align-items: center;
float: left;
height: @header-height;
padding: 0;
color: @layout-text-color;
font-size: 14px;
line-height: @header-height;
background: transparent;
cursor: pointer;
:global {
.ant-divider {
margin-right: 24px;
margin-left: 24px;
background-color: #d2d2d2;
}
.ant-btn-link {
position: absolute;
top: 0;
min-width: 230px;
min-height: @header-height;
}
}
.domain {
color: rgba(0, 0, 0, 45%);
font-size: 14px;
}
.region-container {
display: flex;
align-items: center;
.region-select {
:global {
.ant-select-selector {
height: 32px !important;
padding: 0 !important;
line-height: 32px !important;
background: transparent !important;
}
.ant-select-selection-item {
color: @primary-color;
font-weight: 500;
font-size: 13px;
}
.ant-select-arrow {
right: 0;
color: @primary-color;
}
}
&:hover {
:global {
.ant-select-selection-item {
color: darken(@primary-color, 10%);
}
}
}
}
.region-icon {
margin-right: 6px;
color: @primary-color;
font-size: 14px;
}
}
.has-multi-regions {
:global {
.anticon-global {
color: @primary-color;
}
}
}
}
.header {
position: relative;
z-index: 200;
flex-grow: 1;
height: 100%;
padding-left: 0;
overflow: hidden;
color: @layout-text-color;
background-color: @layout-header-color;
box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 9%);
.nav-items {
display: flex;
align-items: center;
margin-left: 24px;
.default-text {
margin-right: 16px;
padding-right: 16px;
color: @title-color;
font-weight: 500;
font-size: 14px;
border-right: 1px solid #d2d2d2;
}
}
}
.avatar {
width: 30px;
height: 30px;
color: @avatar-color;
border: none;
box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 9%);
}
.domain {
font-size: 14px;
}
.links {
display: inline-block;
margin-right: 20px;
:global {
.ant-divider {
margin-right: 24px;
margin-left: 24px;
background-color: #d2d2d2;
}
}
.link {
color: @title-color;
&:hover {
color: @primary-color;
}
}
.active {
color: @primary-color;
}
}
.password-btn {
max-width: 100px;
span {
max-width: 80px;
}
}
.single-link {
margin-right: 5px;
color: @layout-link-color;
&:hover {
color: @layout-link-color;
}
}
.token {
pre {
padding: 0.4em 0.6em;
white-space: pre-wrap;
word-wrap: break-word;
background: hsla(0%, 0%, 58.8%, 10%);
border: 1px solid hsla(0%, 0%, 39.2%, 20%);
border-radius: 3px;
}
}
.logo {
float: left;
width: @layout-header-logo-wrapper-width;
height: @header-height;
line-height: @header-height;
text-align: center;
img {
height: @layout-header-logo-image-height;
}
}
.region-dropdown {
:global {
.ant-select-dropdown {
min-width: 140px;
padding: 4px 0;
}
.ant-select-item {
min-height: 36px;
padding: 8px 12px;
font-size: 13px;
line-height: 1.5;
&:hover {
background-color: #f5f5f5;
}
}
.ant-select-item-option-selected {
color: @primary-color;
font-weight: 500;
background-color: #e6f7ff;
.ant-select-item-option-state {
color: @primary-color;
}
}
.ant-select-item-option-active {
background-color: #f5f5f5;
}
}
}