378 lines
8.7 KiB
Plaintext
378 lines
8.7 KiB
Plaintext
@import url('src/assets/styles/common.less');
|
|
@import url('src/assets/styles/menu.less');
|
|
|
|
html {
|
|
--ant-color-fill-tertiary: rgba(0, 0, 0, 4%);
|
|
--color-fill-1: var(--ant-color-fill-tertiary);
|
|
// --color-fill-1: #fff;
|
|
--color-fill-2: #fff;
|
|
--color-fill-3: #f3f6fa;
|
|
--menu-border-radius-base: 20px;
|
|
--border-radius-base: 16px;
|
|
--border-radius-middle: 20px;
|
|
--border-radius-small: 8px;
|
|
--color-white-1: rgba(255, 255, 255, 100%);
|
|
--font-weight-normal: 500;
|
|
--font-weight-bold: 700;
|
|
--color-text-1: var(--ant-color-text);
|
|
--color-bg-light-1: #f0fff6;
|
|
--font-size-base: 12px;
|
|
--font-size-large: 16px;
|
|
--font-size-middle: 14px;
|
|
--ant-color-fill-secondary: rgba(0, 0, 0, 6%);
|
|
--table-td-radius: 20px;
|
|
--checkbox-border-radius: 4px;
|
|
--ant-table-cell-padding-inline: 16px;
|
|
--ant-table-cell-padding-block: 16px;
|
|
--ant-table-header-border-radius: 16px;
|
|
--ant-table-header-split-color: #f0f0f0;
|
|
--ant-table-row-selected-bg: #f0fff6;
|
|
--ant-table-row-selected-hover-bg: #d8f2e4;
|
|
--ant-table-row-hover-bg: rgba(230, 230, 230, 70%);
|
|
--color-chart-red: #ff7875;
|
|
--color-chart-green: #54cc98;
|
|
--color-chart-glod: #ffd666;
|
|
--seal-transition-func: cubic-bezier(0, 0, 1, 1);
|
|
// ======== input ============
|
|
--ant-input-active-shadow: 0 0 0 2px rgba(5, 255, 105, 6%);
|
|
--ant-input-active-border-color: #2fbf85;
|
|
--ant-input-hover-border-color: #54cc98;
|
|
--box-shadow-base: 0 4px 12px rgb(227, 232, 240);
|
|
|
|
.css-var-rf {
|
|
--ant-font-size: var(--font-size-base);
|
|
}
|
|
|
|
.css-var-rg,
|
|
.css-var-ri,
|
|
.css-var-rh {
|
|
--ant-font-size: var(--font-size-base);
|
|
|
|
&.ant-menu-css-var {
|
|
--ant-menu-item-height: 46px;
|
|
--ant-menu-item-selected-bg: var(--color-white-1);
|
|
--ant-menu-item-border-radius: 16px;
|
|
--ant-menu-item-selected-color: var(--ant-color-primary);
|
|
--ant-menu-item-hover-bg: var(--color-white-1);
|
|
--ant-menu-item-color: var(--color-text-1);
|
|
--ant-menu-item-active-bg: var(--color-white-1);
|
|
}
|
|
}
|
|
|
|
.css-var-r0 {
|
|
// --ant-control-height: 36px;
|
|
--ant-font-size-sm: var(--font-size-base);
|
|
--ant-font-size-lg: var(--font-size-base);
|
|
--ant-font-size-xl: 20px;
|
|
--ant-font-size: var(--font-size-base);
|
|
--ant-padding-sm: 14px;
|
|
--ant-border-radius-lg: 16px;
|
|
--ant-color-error: #ff4d4f;
|
|
--ant-color-bg-mask: rgba(0, 0, 0, 35%);
|
|
--ant-color-border: rgb(217 217 217 / 50%);
|
|
|
|
&.ant-popover {
|
|
--ant-popover-inner-padding: 26px;
|
|
--ant-popover-title-margin-bottom: 22px;
|
|
}
|
|
|
|
&.ant-btn {
|
|
--ant-button-content-font-size-lg: 13px;
|
|
--ant-button-content-font-size: 12px;
|
|
--ant-button-content-font-size-sm: 12px;
|
|
}
|
|
|
|
&.ant-table-css-var {
|
|
--ant-table-row-hover-bg: #e6e6e6;
|
|
}
|
|
|
|
&.ant-modal-css-var {
|
|
--ant-modal-title-font-size: 14px;
|
|
--ant-modal-header-margin-bottom: 26px;
|
|
--ant-modal-footer-margin-top: 30px;
|
|
}
|
|
}
|
|
|
|
.css-var-rf.ant-menu-css-var,
|
|
.css-var-ri.ant-menu-css-var,
|
|
.css-var-rh.ant-menu-css-var {
|
|
--ant-menu-item-height: 46px;
|
|
--ant-menu-item-selected-bg: var(--color-white-1);
|
|
--ant-menu-item-border-radius: 20px;
|
|
--ant-menu-item-selected-color: var(--ant-color-primary);
|
|
--ant-menu-item-hover-bg: var(--color-white-1);
|
|
--ant-menu-item-color: var(--color-text-1);
|
|
--ant-menu-item-active-bg: var(--color-white-1);
|
|
}
|
|
|
|
.css-var-r0.ant-input-css-var {
|
|
--ant-input-input-font-size: var(--font-size-base);
|
|
--ant-input-input-font-size-lg: var(--font-size-base);
|
|
--ant-input-input-font-size-sm: var(--font-size-base);
|
|
--ant-input-padding-inline-lg: 14px;
|
|
}
|
|
|
|
.css-var-r0.ant-select-css-var {
|
|
--ant-select-option-active-bg: var(--color-fill-1);
|
|
--ant-select-option-font-size: var(--font-size-base);
|
|
}
|
|
}
|
|
|
|
body * {
|
|
font-weight: var(--font-weight-normal);
|
|
}
|
|
|
|
body {
|
|
.ant-checkbox {
|
|
.ant-checkbox-inner {
|
|
border-radius: var(--checkbox-border-radius) !important;
|
|
}
|
|
}
|
|
|
|
// table
|
|
.ant-table-wrapper {
|
|
.ant-table-selection-column {
|
|
padding-inline-start: 16px !important;
|
|
}
|
|
}
|
|
|
|
.ant-table-container .ant-table-content table {
|
|
border-spacing: 0 20px;
|
|
|
|
.ant-table-thead th.ant-table-column-sort {
|
|
background-color: transparent;
|
|
|
|
&::before {
|
|
background-color: var(--ant-table-header-split-color) !important;
|
|
}
|
|
}
|
|
|
|
.ant-checkbox {
|
|
.ant-checkbox-inner::after {
|
|
display: flex !important;
|
|
}
|
|
}
|
|
|
|
.ant-checkbox-indeterminate .ant-checkbox-inner::after {
|
|
display: flex !important;
|
|
}
|
|
|
|
tr > th {
|
|
background-color: var(--color-white-1);
|
|
border: none;
|
|
padding-block: 0;
|
|
}
|
|
|
|
tr > td {
|
|
// background-color: var(--color-fill-1);
|
|
border-bottom: none;
|
|
height: 70px;
|
|
|
|
&:first-child {
|
|
border-top-left-radius: var(--table-td-radius);
|
|
border-bottom-left-radius: var(--table-td-radius);
|
|
}
|
|
|
|
&:last-child {
|
|
border-top-right-radius: var(--table-td-radius);
|
|
border-bottom-right-radius: var(--table-td-radius);
|
|
}
|
|
}
|
|
}
|
|
// input
|
|
.ant-input-css-var.ant-input {
|
|
height: 40px;
|
|
}
|
|
|
|
.ant-input-outlined.ant-input-status-error:not(.ant-input-disabled) {
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.ant-input-outlined.ant-input-status-error:not(.ant-input-disabled):focus,
|
|
.ant-input-outlined.ant-input-status-error:not(
|
|
.ant-input-disabled
|
|
):focus-within {
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
// input number
|
|
.ant-input-number-outlined.ant-input-number-status-error:not(
|
|
.ant-input-number-disabled
|
|
) {
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.ant-input-number-outlined.ant-input-number-status-error:not(
|
|
.ant-input-number-disabled
|
|
):focus,
|
|
.ant-input-number-outlined.ant-input-number-status-error:not(
|
|
.ant-input-disabled
|
|
):focus-within {
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
// form item help
|
|
.ant-form-item-with-help .ant-form-item-explain {
|
|
padding-left: 24px;
|
|
}
|
|
|
|
// icon
|
|
.anticon {
|
|
&.size-16 {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
// ============== new theme style start ===============
|
|
.ant-pro-layout {
|
|
background-color: var(--color-fill-1);
|
|
height: 100%;
|
|
|
|
.ant-pro-sider .ant-layout-sider-children {
|
|
background-color: var(--color-white-1);
|
|
box-shadow: var(--box-shadow-base);
|
|
}
|
|
}
|
|
|
|
.ant-table-wrapper .ant-table {
|
|
background-color: unset;
|
|
}
|
|
|
|
.ant-table-content table {
|
|
.ant-table-thead > tr > th {
|
|
background-color: unset;
|
|
}
|
|
|
|
.ant-table-tbody {
|
|
.ant-table-row {
|
|
border-radius: var(--table-td-radius);
|
|
background-color: var(--color-white-1);
|
|
box-shadow: var(--box-shadow-base);
|
|
|
|
> td {
|
|
background-color: unset;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// ============== new theme style end =================
|
|
}
|
|
|
|
// ======== menu style start ============
|
|
.ant-pro-sider-collapsed-button {
|
|
display: none;
|
|
}
|
|
|
|
.ant-pro-layout {
|
|
height: 100vh;
|
|
|
|
.ant-pro-sider-logo {
|
|
padding-left: 22px;
|
|
border-block-end: none;
|
|
}
|
|
|
|
.ant-layout {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.ant-pro-layout-bg-list {
|
|
background: transparent !important;
|
|
}
|
|
|
|
.ant-pro-layout-container {
|
|
// background-color: var(--color-fill-2);
|
|
}
|
|
|
|
.ant-pro-sider {
|
|
.ant-menu {
|
|
.ant-menu-item {
|
|
border-radius: 16px;
|
|
|
|
&:active {
|
|
background-color: var(--ant-menu-item-selected-bg);
|
|
}
|
|
}
|
|
|
|
.ant-menu-item:not(.ant-menu-item-selected) {
|
|
color: var(--ant-color-text);
|
|
}
|
|
|
|
.ant-menu-item:hover {
|
|
color: var(--ant-color-text);
|
|
}
|
|
|
|
.ant-menu-item.ant-menu-item-selected:hover {
|
|
color: var(--ant-color-primary);
|
|
}
|
|
|
|
.ant-menu-item.ant-menu-item-selected {
|
|
color: var(--ant-color-primary);
|
|
background-color: unset;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// ======== menu style end ============
|
|
|
|
// ======== monaco editor style ============
|
|
.monaco-editor {
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.background {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
// background: radial-gradient(
|
|
// circle,
|
|
// rgba(47, 191, 133, 0.02),
|
|
// rgba(55, 125, 184, 0.2)
|
|
// );
|
|
background: url('./assets/images/bg.png') center center no-repeat;
|
|
background-size: cover;
|
|
|
|
&::after {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
z-index: 1;
|
|
backdrop-filter: blur(100px);
|
|
filter: blur(100px);
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.ant-pro-page-container {
|
|
background: transparent;
|
|
}
|
|
|
|
@keyframes skeleton-loading {
|
|
0% {
|
|
background-position: 100% 50%;
|
|
}
|
|
|
|
100% {
|
|
background-position: 0 50%;
|
|
}
|
|
}
|
|
|
|
.skeleton-loading {
|
|
animation: skeleton-loading 2.5s ease infinite;
|
|
background: linear-gradient(
|
|
90deg,
|
|
rgba(255, 255, 255, 4%) 25%,
|
|
rgba(0, 0, 0, 8%) 37%,
|
|
rgba(255, 255, 255, 4%) 63%
|
|
);
|
|
background-size: 400% 100%;
|
|
}
|