422 lines
4.2 KiB
CSS
422 lines
4.2 KiB
CSS
/* 公共CSS文件 */
|
|
@import "./color.css";
|
|
|
|
.w100 {
|
|
width: 100%
|
|
}
|
|
|
|
.h100 {
|
|
height: 100%;
|
|
}
|
|
|
|
/* 文本样式 */
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.text-left {
|
|
text-align: left;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.text-primary {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.text-success {
|
|
color: var(--success-color);
|
|
}
|
|
|
|
.text-warning {
|
|
color: var(--warning-color);
|
|
}
|
|
|
|
.text-error {
|
|
color: var(--error-color);
|
|
}
|
|
|
|
.text-sm {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.text-lg {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.text-xl {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* 间距工具类 */
|
|
.m-0 {
|
|
margin: 0;
|
|
}
|
|
|
|
.m-1 {
|
|
margin: 4px;
|
|
}
|
|
|
|
.m-2 {
|
|
margin: 8px;
|
|
}
|
|
|
|
.m-3 {
|
|
margin: 16px;
|
|
}
|
|
|
|
.m-4 {
|
|
margin: 24px;
|
|
}
|
|
|
|
.mt-0 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.mt-1 {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.mt-2 {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.mt-3 {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.mt-4 {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.mb-0 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.mb-1 {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.mb-2 {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.mb-3 {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.mb-4 {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.ml-0 {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.ml-1 {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.ml-2 {
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.ml-3 {
|
|
margin-left: 16px;
|
|
}
|
|
|
|
.ml-4 {
|
|
margin-left: 24px;
|
|
}
|
|
|
|
.mr-0 {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.mr-1 {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.mr-2 {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.mr-3 {
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.mr-4 {
|
|
margin-right: 24px;
|
|
}
|
|
|
|
.p-0 {
|
|
padding: 0;
|
|
}
|
|
|
|
.p-1 {
|
|
padding: 4px;
|
|
}
|
|
|
|
.p-2 {
|
|
padding: 8px;
|
|
}
|
|
|
|
.p-3 {
|
|
padding: 16px;
|
|
}
|
|
|
|
.p-4 {
|
|
padding: 24px;
|
|
}
|
|
|
|
.pt-0 {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.pt-1 {
|
|
padding-top: 4px;
|
|
}
|
|
|
|
.pt-2 {
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.pt-3 {
|
|
padding-top: 16px;
|
|
}
|
|
|
|
.pt-4 {
|
|
padding-top: 24px;
|
|
}
|
|
|
|
.pb-0 {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.pb-1 {
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.pb-2 {
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.pb-3 {
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.pb-4 {
|
|
padding-bottom: 24px;
|
|
}
|
|
|
|
.pl-0 {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.pl-1 {
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.pl-2 {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.pl-3 {
|
|
padding-left: 16px;
|
|
}
|
|
|
|
.pl-4 {
|
|
padding-left: 24px;
|
|
}
|
|
|
|
.pr-0 {
|
|
padding-right: 0;
|
|
}
|
|
|
|
.pr-1 {
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.pr-2 {
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.pr-3 {
|
|
padding-right: 16px;
|
|
}
|
|
|
|
.pr-4 {
|
|
padding-right: 24px;
|
|
}
|
|
|
|
/* 布局工具类 */
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.shrink-0 {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.flex-column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.flex-center {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.flex-between {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.flex-justify-between {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.flex-align-center {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.flex-align-start {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.flex-justify-center {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.flex-wrap {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.flex-1 {
|
|
flex: 1;
|
|
}
|
|
|
|
/* 边框样式 */
|
|
|
|
/* 圆角 */
|
|
.rounded-full {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* 背景色 */
|
|
.bg-primary {
|
|
background-color: var(--bg-primary);
|
|
}
|
|
|
|
.bg-secondary {
|
|
background-color: var(--bg-secondary);
|
|
}
|
|
|
|
.bg-primary-color {
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
.bg-success-color {
|
|
background-color: var(--success-color);
|
|
}
|
|
|
|
.bg-warning-color {
|
|
background-color: var(--warning-color);
|
|
}
|
|
|
|
.bg-error-color {
|
|
background-color: var(--error-color);
|
|
}
|
|
|
|
|
|
/* 隐藏元素 */
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* 显示元素 */
|
|
.block {
|
|
display: block;
|
|
}
|
|
|
|
.over-hidden {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.over-scroll {
|
|
overflow: scroll;
|
|
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
/* 文本截断 */
|
|
.text-ellipsis {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
/* 字体 */
|
|
|
|
.font-w500 {
|
|
font-weight: 500;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "alipayNumber";
|
|
src: url("/static/font/AlipayNumber.ttf") format("truetype");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "wxNumberRegular";
|
|
src: url("/static/font/WeChatSansStd-Regular.otf");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "wxNumberMedium";
|
|
src: url("/static/font/WeChatSansStd-Medium.otf");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "wxNumberLight";
|
|
src: url("/static/font/WeChatSansStd-Light.otf");
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "sacramento";
|
|
src: url("/static/font/Sacramento-Regular.ttf");
|
|
}
|
|
|
|
.alipay-font {
|
|
font-family: "alipayNumber";
|
|
}
|
|
|
|
.wx-font-regular {
|
|
font-family: "wxNumberRegular";
|
|
}
|
|
|
|
.wx-font-medium {
|
|
font-family: "wxNumberMedium";
|
|
}
|
|
|
|
.wx-font-light {
|
|
font-family: "wxNumberLight";
|
|
}
|
|
|
|
.sacramento-font {
|
|
font-family: "sacramento";
|
|
} |