对接数据
This commit is contained in:
187
styles/article.scss
Normal file
187
styles/article.scss
Normal file
@ -0,0 +1,187 @@
|
||||
.article-content {
|
||||
font-family: 'Poppins-Regular', serif;
|
||||
color: #64748B;
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 600;
|
||||
margin-bottom: 20px;
|
||||
margin-top: 10px;
|
||||
font-family: 'Poppins-SemiBold', serif;
|
||||
color: #1E293B;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 1.3;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 6px;
|
||||
height: 26px;
|
||||
background: $header-backgroungd;
|
||||
margin-right: 8px;
|
||||
border-radius: 0 6px 6px 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 添加各层级标题的字体大小区分
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
p, li, span {
|
||||
color: #64748B;
|
||||
font-family: 'Poppins-Regular', serif;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
// 段落样式
|
||||
p {
|
||||
margin-bottom: 16px;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
// 列表样式
|
||||
ul, ol {
|
||||
margin: 16px 0;
|
||||
padding-left: 32px;
|
||||
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
// 链接样式
|
||||
a {
|
||||
color: #7B61FF;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px dashed #3b82f6;
|
||||
|
||||
&:hover {
|
||||
color: #2563eb;
|
||||
border-bottom-style: solid;
|
||||
}
|
||||
}
|
||||
|
||||
// 引用块样式
|
||||
blockquote {
|
||||
margin: 20px 0;
|
||||
padding: 20px;
|
||||
border-left: 4px solid $header-backgroungd;
|
||||
background-color: #f8fafc;
|
||||
border-radius: 0 8px 8px 0;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
font-style: italic;
|
||||
color: #64748B;
|
||||
}
|
||||
}
|
||||
|
||||
// 代码块样式
|
||||
pre {
|
||||
background-color: #f1f5f9;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
overflow-x: auto;
|
||||
margin: 20px 0;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.5;
|
||||
|
||||
code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 行内代码样式
|
||||
code {
|
||||
background-color: #f1f5f9;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
// 粗体和斜体
|
||||
strong, b {
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
em, i {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// 分割线
|
||||
hr {
|
||||
border: none;
|
||||
height: 1px;
|
||||
background-color: #cbd5e1;
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
// 表格样式
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 20px 0;
|
||||
|
||||
th, td {
|
||||
padding: 12px 15px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
th {
|
||||
background-color: #f1f5f9;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
tr:hover {
|
||||
background-color: #f8fafc;
|
||||
}
|
||||
}
|
||||
|
||||
// 图片样式
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 8px;
|
||||
margin: 10px 0;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
56
styles/flex.scss
Normal file
56
styles/flex.scss
Normal file
@ -0,0 +1,56 @@
|
||||
// 容器类
|
||||
.flex { display: flex; }
|
||||
.inline-flex { display: inline-flex; }
|
||||
|
||||
// 方向类
|
||||
.flex-row { flex-direction: row; }
|
||||
.flex-col { flex-direction: column; }
|
||||
.flex-row-reverse { flex-direction: row-reverse; }
|
||||
.flex-col-reverse { flex-direction: column-reverse; }
|
||||
|
||||
// 换行类
|
||||
.flex-wrap { flex-wrap: wrap; }
|
||||
.flex-nowrap { flex-wrap: nowrap; }
|
||||
|
||||
.justify-start { justify-content: flex-start; }
|
||||
.justify-center { justify-content: center; }
|
||||
.justify-end { justify-content: flex-end; }
|
||||
.justify-between { justify-content: space-between; }
|
||||
.justify-around { justify-content: space-around; }
|
||||
|
||||
.items-start { align-items: flex-start; }
|
||||
.items-center { align-items: center; }
|
||||
.items-end { align-items: flex-end; }
|
||||
.items-stretch { align-items: stretch; }
|
||||
.items-baseline { align-items: baseline; }
|
||||
|
||||
// 顶部对齐
|
||||
.flex-top-left { @extend .flex, .items-start, .justify-start; }
|
||||
.flex-top-center { @extend .flex, .items-start, .justify-center; }
|
||||
.flex-top-right { @extend .flex, .items-start, .justify-end; }
|
||||
|
||||
// 垂直居中对齐
|
||||
.flex-middle-left { @extend .flex, .items-center, .justify-start; }
|
||||
.flex-center { @extend .flex, .items-center, .justify-center; }
|
||||
.flex-middle-right { @extend .flex, .items-center, .justify-end; }
|
||||
|
||||
// 底部对齐
|
||||
.flex-bottom-left { @extend .flex, .items-end, .justify-start; }
|
||||
.flex-bottom-center { @extend .flex, .items-end, .justify-center; }
|
||||
.flex-bottom-right { @extend .flex, .items-end, .justify-end; }
|
||||
|
||||
// 拉伸对齐
|
||||
.flex-stretch { @extend .flex, .items-stretch; }
|
||||
|
||||
// 弹性类
|
||||
.flex-between-center { @extend .flex, .justify-between, .items-center; }
|
||||
.flex-around-center { @extend .flex, .justify-around, .items-center; }
|
||||
|
||||
.flex-1 { flex: 1; }
|
||||
.flex-auto { flex: auto; }
|
||||
.flex-none { flex: none; }
|
||||
|
||||
.self-start { align-self: flex-start; }
|
||||
.self-center { align-self: center; }
|
||||
.self-end { align-self: flex-end; }
|
||||
.self-stretch { align-self: stretch; }
|
||||
42
styles/font.scss
Normal file
42
styles/font.scss
Normal file
@ -0,0 +1,42 @@
|
||||
|
||||
@font-face {
|
||||
font-family: 'Poppins-Bold';
|
||||
src: url('/static/font/Poppins-Bold.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Poppins-Regular';
|
||||
src: url('/static/font/Poppins-Regular.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Poppins-Light';
|
||||
src: url('/static/font/Poppins-Light.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Poppins-Medium';
|
||||
src: url('/static/font/Poppins-Medium.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Poppins-SemiBold';
|
||||
src: url('/static/font/Poppins-SemiBold.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Poppins-ExtraBold';
|
||||
src: url('/static/font/Poppins-ExtraBold.otf') format('opentype');
|
||||
font-weight: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
@ -23,6 +23,28 @@ body {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
// 自定义滚动条样式
|
||||
::-webkit-scrollbar {
|
||||
width: 16px; // 滚动条宽度(背景槽宽度)
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: #f9fafc; // 滚动条背景槽颜色
|
||||
border-radius: 16px; // 背景槽圆角
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #2563eb; // 滑块颜色
|
||||
border-radius: 12px; // 滑块圆角
|
||||
width: 8px; // 滑块宽度
|
||||
}
|
||||
|
||||
// 为兼容Firefox浏览器的滚动条样式
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #2563eb #f9fafc;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
-webkit-user-drag: none;
|
||||
@ -81,11 +103,12 @@ a {
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
background-color: #ffffff;
|
||||
font-family: 'Poppins-Medium', serif;
|
||||
/* 白色背景 */
|
||||
color: #666666;
|
||||
/* 文字颜色 */
|
||||
outline: none;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: 0 20px 30px 0 #0000000f;
|
||||
/* 添加轻微阴影效果 */
|
||||
}
|
||||
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
@mixin font-color-transprent {
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
color: transparent !important;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@ -46,6 +46,14 @@
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
@mixin gradient-circle-border($start, $end) {
|
||||
background:
|
||||
linear-gradient(white, white) padding-box,
|
||||
linear-gradient(90deg, $start, $end) border-box;
|
||||
border-radius: 50%;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
@mixin scrollBar {
|
||||
|
||||
//滚动条轨道
|
||||
|
||||
@ -1,20 +1,14 @@
|
||||
.text-container {
|
||||
flex: 1;
|
||||
padding: 50px 0;
|
||||
.top{
|
||||
margin-top: 100px;
|
||||
margin-bottom: 50px;
|
||||
.title{
|
||||
flex: 1;
|
||||
padding: 50px 0;
|
||||
.top{
|
||||
margin-top: 142px;
|
||||
margin-bottom: 25px;
|
||||
.title{
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
font-size: $huge-font-size1;
|
||||
font-family: 'Poppins-Bold', serif;
|
||||
}
|
||||
.date{
|
||||
text-align: center;
|
||||
font-size: $mid-font-size;
|
||||
color: $main-color;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user