
Use color variables to set color in less and jsx, this makes it easy to change the theme for all pages. Change-Id: I9b82c4624826854d40d11da4e6ce4a9137b86085
337 lines
5.5 KiB
Plaintext
337 lines
5.5 KiB
Plaintext
@import '~styles/variables';
|
|
|
|
.nav {
|
|
left: -(@nav-width + 10px);
|
|
}
|
|
|
|
.header {
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: @header-height;
|
|
padding: 0;
|
|
color: @white;
|
|
}
|
|
|
|
.header-collapsed {
|
|
&:extend(.header);
|
|
|
|
padding-left: 40px;
|
|
}
|
|
|
|
.logo {
|
|
height: 32px;
|
|
margin: @size-medium 38px;
|
|
}
|
|
|
|
.logo-collapse {
|
|
margin: @size-medium 24px;
|
|
}
|
|
|
|
.logo-image {
|
|
height: 29px;
|
|
}
|
|
|
|
.logo-image-hover {
|
|
margin-left: -20px;
|
|
}
|
|
|
|
.site-layout-background {
|
|
background: #fff;
|
|
}
|
|
|
|
.sider {
|
|
position: relative;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
|
|
:global {
|
|
.ant-layout-sider-trigger {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 48px;
|
|
width: 32px !important;
|
|
height: 75px;
|
|
font-size: 16px;
|
|
line-height: 75px;
|
|
background-color: @sider-background;
|
|
border-width: 32px;
|
|
border-radius: 4px 0 0 4px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu {
|
|
max-height: calc(100vh - 64px);
|
|
padding-right: 14px;
|
|
padding-left: 14px;
|
|
overflow-y: auto;
|
|
|
|
&::-webkit-scrollbar {
|
|
width: 12px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
border-radius: 10px;
|
|
box-shadow: inset 0 0 6px rgba(0, 0, 0, 30%);
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
border-radius: 10px;
|
|
box-shadow: inset 0 0 6px rgba(0, 0, 0, 50%);
|
|
}
|
|
|
|
:global {
|
|
a {
|
|
color: inherit !important;
|
|
}
|
|
|
|
.ant-menu-item {
|
|
font-size: @size-normal;
|
|
}
|
|
|
|
.ant-menu-submenu-title {
|
|
font-size: @size-normal;
|
|
}
|
|
|
|
.anticon {
|
|
float: left;
|
|
margin-right: 20px;
|
|
font-size: @size-normal;
|
|
line-height: 44px;
|
|
}
|
|
|
|
& .ant-menu-item-selected {
|
|
background-color: @primary-color;
|
|
border-radius: @border-radius;
|
|
}
|
|
}
|
|
}
|
|
|
|
.menu-item {
|
|
font-size: @size-normal;
|
|
|
|
:global {
|
|
a {
|
|
color: inherit;
|
|
}
|
|
|
|
a::before {
|
|
width: 5px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.content {
|
|
height: calc(100vh - @header-height);
|
|
background-color: @background-color;
|
|
}
|
|
|
|
.sub-menu {
|
|
font-size: 10px;
|
|
|
|
:global {
|
|
.ant-menu-sub.ant-menu-inline {
|
|
padding-right: 5px;
|
|
padding-left: 5px;
|
|
}
|
|
|
|
.ant-menu-item > span::before {
|
|
position: absolute;
|
|
top: 18px;
|
|
bottom: 0;
|
|
left: 30px;
|
|
width: 5px;
|
|
height: 5px;
|
|
background-color: rgba(255, 255, 255, 65%);
|
|
border-radius: 50%;
|
|
content: '';
|
|
}
|
|
|
|
.ant-menu-item-selected > span::before {
|
|
background-color: #fff !important;
|
|
}
|
|
|
|
.ant-menu-item-active > span::before {
|
|
background-color: @primary-color;
|
|
}
|
|
|
|
.ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal)
|
|
.ant-menu-item-selected {
|
|
background-color: @primary-color;
|
|
border-radius: @border-radius;
|
|
}
|
|
}
|
|
}
|
|
|
|
.breadcrumb {
|
|
height: @breadcrumb-height;
|
|
padding-left: @body-padding-left;
|
|
background-color: #fff;
|
|
|
|
.breadcrumb-item {
|
|
line-height: @breadcrumb-height;
|
|
}
|
|
|
|
.breadcrumb-link {
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
|
|
.breadcrumb-has-tab {
|
|
height: @breadcrumb-height + 30px;
|
|
}
|
|
|
|
.main {
|
|
height: calc(100vh - @header-height - @breadcrumb-height);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.main-no-breadcrumb {
|
|
height: calc(100vh - @header-height);
|
|
}
|
|
|
|
.main-has-tab {
|
|
margin-top: -42px;
|
|
}
|
|
|
|
.trigger-wrapper {
|
|
position: absolute;
|
|
right: -24px;
|
|
bottom: 48px;
|
|
width: 24px !important;
|
|
height: 70px;
|
|
font-size: 16px;
|
|
line-height: 70px;
|
|
border-width: 24px;
|
|
border-radius: 4px 0 0 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.trigger {
|
|
position: absolute;
|
|
left: 0;
|
|
color: #fff;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.trigger::before {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
background: rgba(0, 0, 0, 35%);
|
|
border-right: none;
|
|
border-radius: 0 4px 4px 0;
|
|
transform: scaleX(2.2) perspective(50px) rotateY(50deg);
|
|
transform: scaleX(2.2) perspective(50px) rotateY(50deg);
|
|
transform-origin: bottom;
|
|
transform-origin: left;
|
|
content: '';
|
|
}
|
|
|
|
.trigger-icon {
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.base-layout {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100vh;
|
|
}
|
|
|
|
.base-layout-sider {
|
|
position: absolute;
|
|
top: @header-height;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 1;
|
|
width: 230px;
|
|
padding-top: 10px;
|
|
background-color: @sider-background;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.base-layout-sider-collapsed {
|
|
width: 40px;
|
|
transition: all 0.2s;
|
|
|
|
.menu-collapsed {
|
|
padding-right: 0;
|
|
padding-left: 0;
|
|
|
|
.menu-item-collapsed {
|
|
padding-left: 12px !important;
|
|
text-overflow: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
.base-layout-right {
|
|
position: absolute;
|
|
top: 40px;
|
|
right: 0;
|
|
left: 230px;
|
|
height: calc(100vh - 40px);
|
|
}
|
|
|
|
.base-layout-right-collapsed {
|
|
left: 40px;
|
|
}
|
|
|
|
.base-layout-sider-hover {
|
|
width: 230px;
|
|
transition: all 0.2s;
|
|
|
|
.menu-collapsed {
|
|
padding-right: 14px;
|
|
padding-left: 14px;
|
|
|
|
.menu-item-collapsed {
|
|
padding-left: 48px !important;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
}
|
|
|
|
.notice {
|
|
position: absolute;
|
|
top: 48px;
|
|
right: 0;
|
|
z-index: 1100;
|
|
display: flex;
|
|
align-items: center;
|
|
width: 384px;
|
|
max-width: calc(100vw - 48px);
|
|
margin: 0 24px 0 0;
|
|
margin-bottom: 16px;
|
|
padding: 16px 24px;
|
|
overflow: hidden;
|
|
color: @primary-color;
|
|
font-size: 18px;
|
|
line-height: 24px;
|
|
word-wrap: break-word;
|
|
background: #fff;
|
|
border-radius: 4px;
|
|
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 12%), 0 6px 16px 0 rgba(0, 0, 0, 8%),
|
|
0 9px 28px 8px rgba(0, 0, 0, 5%);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.menu-item-title {
|
|
font-size: @size-normal;
|
|
|
|
span {
|
|
display: inline-block;
|
|
max-width: 140px;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|