| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- @font-face {
- font-family: 'Source Han Sans CN';
- src: url('~/assets/fonts/SourceHanSansCN-VF.ttf.woff2') format('woff2');
- font-weight: 200 900;
- font-style: normal;
- font-display: swap;
- }
- body,
- html {
- background-color: #030014;
- font-family: 'Source Han Sans CN', sans-serif;
- }
- // 断点定义
- // - mobile: ≤ 767px (手机)
- // - tablet: 768px - 1024px (平板)
- // - desktop: > 1024px (桌面端)
- // 手机端断点 (≤ 767px)
- @media (max-width: 767px) {
- html {
- font-size: clamp(32px, 10vw, 46px);
- }
- }
- // 平板断点 (768px - 1024px)
- @media (min-width: 768px) and (max-width: 1024px) {
- html {
- font-size: clamp(37.5px, 5vw, 45px);
- }
- }
- // 平板横屏适配 (1025px - 1280px)
- @media (min-width: 1025px) and (max-width: 1280px) {
- html {
- font-size: 42px;
- }
- }
- html,
- body,
- ul,
- li,
- ol,
- dl,
- dd,
- dt,
- p,
- h1,
- h2,
- h3,
- h4,
- h5,
- h6,
- form,
- fieldset,
- legend,
- img {
- margin: 0;
- padding: 0;
- }
- fieldset,
- img,
- input,
- button {
- /*fieldset组合表单中的相关元素*/
- border: none;
- padding: 0;
- margin: 0;
- outline-style: none;
- }
- ul,
- ol {
- list-style: none; /*清除列表风格*/
- }
- input {
- padding-top: 0;
- padding-bottom: 0;
- }
- select,
- input {
- vertical-align: middle;
- }
- select,
- input,
- textarea {
- font-size: 12px;
- margin: 0;
- }
- textarea {
- resize: none;
- }
- /*防止多行文本框拖动*/
- img {
- border: 0;
- vertical-align: middle;
- }
- /* 去掉图片低测默认的3像素空白缝隙*/
- table {
- border-collapse: collapse; /*合并外边线*/
- }
- .clearfix:before,
- .clearfix:after {
- content: '';
- display: table;
- }
- .clearfix:after {
- clear: both;
- }
- .clearfix {
- *zoom: 1; /*IE/7/6*/
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- text-decoration: none;
- font-weight: normal;
- font-size: 100%;
- }
- s,
- i,
- em {
- font-style: normal;
- text-decoration: none;
- }
|