Files
certd/packages/ui/certd-client/src/style/common.less
T

458 lines
5.5 KiB
Plaintext
Raw Normal View History

2025-06-29 16:57:28 +08:00
//@import "./theme/index.less";
//@import "./theme/default.less";
2025-06-29 14:09:09 +08:00
@import "./scroll.less";
@import "./transition.less";
@import "./fix-windicss.less";
@import "./antdv4.less";
@import "./certd.less";
html,
body {
2023-01-29 13:44:19 +08:00
margin: 0;
padding: 0;
height: 100%;
width: 100%;
box-sizing: border-box;
}
div#app {
2025-06-29 14:09:09 +08:00
height: 100%;
2023-01-29 13:44:19 +08:00
}
2026-01-25 13:01:12 +08:00
pre.pre {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
2025-10-05 07:59:56 +00:00
}
2025-06-29 14:09:09 +08:00
h1,
h2,
h3,
h4,
h5,
h6 {
2023-01-29 13:44:19 +08:00
margin-bottom: 0;
margin-top: 0;
2023-01-29 13:44:19 +08:00
}
.fs-desc {
font-size: 12px;
color: #888888;
margin-left: 5px;
margin-right: 5px;
}
2023-01-29 13:44:19 +08:00
.ant-btn-link {
height: 24px;
}
.ant-input-affix-wrapper {
padding: 4px 11px;
}
.anticon {
vertical-align: 0 !important;
}
.pointer {
cursor: pointer;
2024-09-02 18:36:12 +08:00
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
2024-08-14 21:24:12 +08:00
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.flex-vc {
2024-12-23 23:33:13 +08:00
align-items: center;
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.flex-vb {
2024-12-23 23:33:13 +08:00
align-items: baseline;
}
2026-01-25 13:01:12 +08:00
.flex-o {
2024-07-15 02:05:26 +08:00
display: flex !important;
align-items: center;
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.flex-baseline {
2024-12-23 23:33:13 +08:00
display: flex !important;
align-items: baseline;
}
2024-07-15 02:05:26 +08:00
2024-11-30 01:57:09 +08:00
.flex-between {
display: flex;
justify-content: space-between;
2024-12-23 23:33:13 +08:00
align-items: baseline;
2024-11-30 01:57:09 +08:00
}
2026-01-27 00:32:03 +08:00
.flex-evenly {
display: flex;
justify-content: space-evenly;
}
.flex {
display: flex;
}
2026-01-25 13:01:12 +08:00
2024-10-30 13:21:28 +08:00
.flex-inline {
display: inline-flex;
align-items: center;
}
.flex-1 {
2024-07-15 02:05:26 +08:00
flex: 1;
}
2026-01-25 13:01:12 +08:00
2024-12-02 14:06:55 +08:00
.flex-0 {
flex: 0;
}
2024-07-15 02:05:26 +08:00
.flex-col {
display: flex;
flex-direction: column;
2024-09-09 16:55:14 +08:00
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.align-left {
text-align: left;
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.align-right {
text-align: right;
}
2024-09-09 16:55:14 +08:00
.scroll-y {
overflow-y: auto;
2024-09-09 16:55:14 +08:00
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.m-0 {
margin: 0 !important;
2024-12-20 01:00:13 +08:00
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.m-2 {
margin: 2px !important;
2024-10-25 16:51:36 +08:00
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.m-3 {
margin: 3px !important;
2024-10-25 16:51:36 +08:00
}
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
.m-5 {
margin: 5px !important;
2024-10-30 13:21:28 +08:00
}
2026-01-25 13:01:12 +08:00
2024-10-30 13:21:28 +08:00
.m-10 {
2025-06-29 14:09:09 +08:00
margin: 10px !important;
2024-10-30 13:21:28 +08:00
}
2024-09-09 16:55:14 +08:00
2025-06-29 14:09:09 +08:00
.m-20 {
margin: 20px !important;
2024-10-30 13:21:28 +08:00
}
2026-01-25 13:01:12 +08:00
.mb-2 {
2025-06-29 14:09:09 +08:00
margin-bottom: 2px !important;
2024-08-27 13:46:19 +08:00
}
2024-10-25 16:51:36 +08:00
.mb-5 {
2025-06-29 14:09:09 +08:00
margin-bottom: 5px !important;
2024-10-25 16:51:36 +08:00
}
2026-01-25 13:01:12 +08:00
.ml-5 {
2025-06-29 14:09:09 +08:00
margin-left: 5px !important;
}
.ml-10 {
2025-06-29 14:09:09 +08:00
margin-left: 10px !important;
2024-09-05 01:39:46 +08:00
}
.ml-20 {
2025-06-29 14:09:09 +08:00
margin-left: 20px !important;
2024-07-15 02:05:26 +08:00
}
.ml-15 {
2025-06-29 14:09:09 +08:00
margin-left: 15px !important;
2024-07-15 02:05:26 +08:00
}
.mr-5 {
2025-06-29 14:09:09 +08:00
margin-right: 5px !important;
}
.mr-10 {
2025-06-29 14:09:09 +08:00
margin-right: 10px !important;
2024-09-05 01:39:46 +08:00
}
.mr-20 {
2025-06-29 14:09:09 +08:00
margin-right: 20px !important;
2024-07-15 02:05:26 +08:00
}
.mr-15 {
2025-06-29 14:09:09 +08:00
margin-right: 15px !important;
2024-07-15 02:05:26 +08:00
}
.mt-5 {
2025-06-29 14:09:09 +08:00
margin-top: 5px !important;
2024-08-27 13:46:19 +08:00
}
.mt-10 {
2025-03-06 21:11:07 +08:00
margin-top: 10px !important;
}
.mb-10 {
2025-06-29 14:09:09 +08:00
margin-bottom: 10px !important;
}
.p-5 {
2025-06-29 14:09:09 +08:00
padding: 5px !important;
2024-06-16 02:12:02 +08:00
}
.p-10 {
2025-06-29 14:09:09 +08:00
padding: 10px !important;
2024-07-15 02:05:26 +08:00
}
2024-11-08 17:33:30 +08:00
.p-20 {
2025-06-29 14:09:09 +08:00
padding: 20px !important;
2024-11-08 17:33:30 +08:00
}
2026-01-25 13:01:12 +08:00
2024-07-15 02:05:26 +08:00
.ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.w-100 {
width: 100%;
2024-07-15 02:05:26 +08:00
}
2024-09-09 16:55:14 +08:00
.h-100 {
height: 100%;
}
.overflow-hidden {
overflow: hidden;
}
2024-08-21 12:38:09 +08:00
.block-header {
margin: 3px;
2024-08-21 12:38:09 +08:00
padding-top: 15px;
padding-bottom: 3px;
2024-08-21 12:38:09 +08:00
border-bottom: 1px solid #dedede;
}
2024-09-02 18:36:12 +08:00
2025-06-29 14:09:09 +08:00
.color-plus {
2024-11-30 01:57:09 +08:00
color: #c5913f;
}
2026-01-25 13:01:12 +08:00
.color-blue {
color: #1890ff;
}
2024-10-28 16:44:10 +08:00
.color-red {
color: red;
}
.color-green {
color: green;
}
2026-01-25 13:01:12 +08:00
2024-11-25 00:53:36 +08:00
.color-gray {
color: gray;
}
2024-10-28 16:44:10 +08:00
2025-06-29 14:09:09 +08:00
.iconify {
//font-size: 16px;
}
.icon-box {
display: inline-flex;
align-items: center;
justify-content: center;
.fs-icon {
display: flex;
align-items: center;
justify-content: center;
}
2024-09-05 14:33:45 +08:00
}
.need-plus {
color: #c5913f !important;
}
2024-09-11 16:49:50 +08:00
.deleted {
color: #c7c7c7;
2024-09-11 16:49:50 +08:00
//删除线
text-decoration: line-through;
}
.cursor-move {
cursor: move !important;
}
.cursor-pointer {
cursor: pointer;
2024-09-29 00:38:17 +08:00
}
2024-10-05 01:46:25 +08:00
.helper {
color: #aeaeae;
font-size: 12px;
2025-06-29 14:09:09 +08:00
margin-top: 3px;
margin-bottom: 3px;
2026-01-25 13:01:12 +08:00
2025-06-29 14:09:09 +08:00
&.error {
color: #ff4d4f;
}
}
.fs-copyable {
2024-10-15 17:12:42 +08:00
display: inline-flex;
2026-01-25 13:01:12 +08:00
.text {
2025-06-29 14:09:09 +08:00
flex: 1;
}
.copy-button {
position: relative !important;
/* right: 0; */
}
2024-10-05 01:46:25 +08:00
}
2025-06-29 14:09:09 +08:00
.fs-16 {
2026-01-27 00:32:03 +08:00
font-size: 16px !important;
}
.fs-28 {
font-size: 28px !important;
}
2024-12-18 09:07:52 +08:00
2025-06-29 14:09:09 +08:00
.w-50\% {
width: 50%;
2025-03-11 23:11:24 +08:00
}
.ant-drawer-content-wrapper {
max-width: 95vw;
2025-06-19 18:17:35 +08:00
}
2025-06-29 14:09:09 +08:00
.block-title {
2025-06-19 18:17:35 +08:00
font-size: 14px;
2025-06-29 14:09:09 +08:00
padding: 10px;
color: #6e6e6e;
}
2026-01-25 13:01:12 +08:00
.ant-modal-body {
.fs-form-body {
max-height: 66vh;
overflow-y: auto;
}
2026-01-13 00:30:30 +08:00
}
2026-01-25 13:01:12 +08:00
.ant-input-number {
2026-01-13 00:30:30 +08:00
min-width: 100px;
2026-01-25 02:09:16 +08:00
}
.cd-table {
width: 100%;
2026-01-25 13:01:12 +08:00
border-collapse: separate;
border-spacing: 0;
2026-01-25 02:09:16 +08:00
overflow: auto;
2026-01-25 13:01:12 +08:00
.fs-loading {
2026-01-25 02:09:16 +08:00
position: absolute;
2026-01-25 13:01:12 +08:00
left: 0;
top: 0;
2026-01-25 02:09:16 +08:00
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.05);
z-index: 10000
}
table {
width: 1000px;
min-width: 100%;
table-layout: fixed;
font-size: 16px;
2026-01-25 13:01:12 +08:00
2026-01-25 02:09:16 +08:00
}
thead {
position: sticky;
top: 0;
z-index: 100;
}
.position-sticky-right {
position: sticky;
right: 0;
z-index: 100;
border-left: 0px;
&::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 1px;
/* 边框宽度 */
background: #eee;
/* 边框颜色 */
}
}
th,
td {
text-align: left;
border-bottom: 1px solid #eee;
border-left: 1px solid #eee;
}
th {
2026-01-25 13:01:12 +08:00
padding: 10px 5px;
background: #fbfbfb;
2026-01-25 02:09:16 +08:00
font-weight: 600;
2026-01-25 13:01:12 +08:00
color: #000000;
2026-01-25 02:09:16 +08:00
font-size: 14px;
2026-01-25 13:01:12 +08:00
border-top: 1px solid #eee;
2026-01-25 02:09:16 +08:00
&:last-child {
border-right: 1px solid #eee;
}
}
td {
padding: 10px;
font-size: 14px;
&:last-child {
border-right: 1px solid #eee;
}
}
td.position-sticky-right {
background-color: #fff;
}
tr.hover-color:hover td {
background: #f9f9ff;
}
.status {
padding: 5px 10px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
}
.status-active {
background: #e7f6e9;
color: #2e7d32;
}
.status-pending {
background: #ffecb3;
color: #f57c00;
}
}