前端开源初始化提交

This commit is contained in:
hukdoesn
2025-06-30 11:57:32 +08:00
parent 00090a0aca
commit fa52e9e571
50 changed files with 12349 additions and 12 deletions

View File

@@ -0,0 +1,125 @@
/* 定义自定义PingFang字体 - 强制使用项目中的字体文件 */
@font-face {
font-family: 'PingFangCustom';
src: url('../font/PingFang.ttc') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'PingFangCustom';
src: url('../font/PingFang.ttc') format('truetype');
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'PingFangCustom';
src: url('../font/PingFang.ttc') format('truetype');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'PingFangCustom';
src: url('../font/PingFang.ttc') format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'PingFangCustom';
src: url('../font/PingFang.ttc') format('truetype');
font-weight: 700;
font-style: normal;
font-display: swap;
}
* {
font-family: 'PingFangCustom', Arial, sans-serif !important;
}
body, html {
font-family: 'PingFangCustom', Arial, sans-serif !important;
margin: 0;
padding: 0;
}
:root {
font-family: 'PingFangCustom', Arial, sans-serif !important;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.ant-typography,
.ant-btn,
.ant-input,
.ant-select,
.ant-table,
.ant-menu,
.ant-dropdown,
.ant-modal,
.ant-message,
.ant-notification,
.ant-form,
.ant-card,
.ant-tabs,
.ant-breadcrumb,
.ant-pagination,
.ant-steps,
.ant-tree,
.ant-list,
.ant-drawer,
.ant-popover,
.ant-tooltip,
.ant-alert,
.ant-badge,
.ant-tag,
.ant-progress,
.ant-spin,
.ant-switch,
.ant-radio,
.ant-checkbox,
.ant-rate,
.ant-slider,
.ant-upload,
.ant-calendar,
.ant-date-picker,
.ant-time-picker,
.ant-config-provider,
.ant-app {
font-family: 'PingFangCustom', Arial, sans-serif !important;
}
[class*="ant-"] {
font-family: 'PingFangCustom', Arial, sans-serif !important;
}
input, textarea, select, button {
font-family: 'PingFangCustom', Arial, sans-serif !important;
}
.ant-input,
.ant-input-affix-wrapper,
.ant-input-number,
.ant-select-selector,
.ant-cascader-picker,
.ant-picker,
.ant-mentions,
.ant-checkbox-wrapper,
.ant-radio-wrapper {
font-family: 'PingFangCustom', Arial, sans-serif !important;
}

View File

@@ -0,0 +1,43 @@
/* global.css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}