feat:重构模块
This commit is contained in:
51
src/styles/blog/blog.archive.module.scss
Normal file
51
src/styles/blog/blog.archive.module.scss
Normal file
@@ -0,0 +1,51 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
.blog-archive {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3vh;
|
||||
padding: 10vh 2vw;
|
||||
|
||||
::v-deep(.el-date-editor) {
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.total {
|
||||
align-self: center;
|
||||
font-size: blog.$normal-font-size;
|
||||
color: blog.$normal-text-color;
|
||||
}
|
||||
|
||||
.time-line {
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
overflow: auto;
|
||||
|
||||
.item {
|
||||
height: 5vh;
|
||||
|
||||
.date {
|
||||
color: blog.$normal-text-color;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: blog.$normal-font-size;
|
||||
color: blog.$normal-text-color;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.2rem;
|
||||
}
|
||||
|
||||
.title:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.blog-archive {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
}
|
||||
59
src/styles/blog/blog.category.detail.module.scss
Normal file
59
src/styles/blog/blog.category.detail.module.scss
Normal file
@@ -0,0 +1,59 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
.blog-category-detail {
|
||||
padding: 10vh 2vw;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3vh;
|
||||
|
||||
.name {
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
font-size: blog.$large-font-size;
|
||||
}
|
||||
|
||||
.category-detail-list {
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2vh;
|
||||
|
||||
.item {
|
||||
display: grid;
|
||||
grid-template-columns: 40px 200px 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
cursor: pointer;
|
||||
color: blog.$normal-text-color;
|
||||
|
||||
padding-bottom: 0.5vh;
|
||||
border: none;
|
||||
border-bottom: 1px dashed blog.$gray-text-color;
|
||||
|
||||
.number, .date {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
span {
|
||||
padding: 0.2vw;
|
||||
}
|
||||
}
|
||||
|
||||
.item:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.blog-category-detail {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
}
|
||||
69
src/styles/blog/blog.category.module.scss
Normal file
69
src/styles/blog/blog.category.module.scss
Normal file
@@ -0,0 +1,69 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
.blog-category {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3vh;
|
||||
padding: 10vh 2vw;
|
||||
|
||||
.total {
|
||||
text-align: center;
|
||||
font-size: blog.$normal-font-size;
|
||||
color: blog.$normal-text-color;
|
||||
}
|
||||
|
||||
.category-list {
|
||||
height: 100%;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
overflow: auto;
|
||||
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px dashed blog.$gray-text-color;
|
||||
color: blog.$normal-text-color;
|
||||
|
||||
i {
|
||||
font-size:28px;
|
||||
color: #0f8bc7;
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5px;
|
||||
|
||||
.label {
|
||||
cursor: pointer;
|
||||
color: blog.$normal-text-color;
|
||||
font-size: blog.$normal-font-size;
|
||||
}
|
||||
|
||||
.label:hover {
|
||||
color: blog.$hover-text-color;
|
||||
}
|
||||
|
||||
.value {
|
||||
font-size: blog.$normal-font-size;
|
||||
color: blog.$gray-text-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item:hover {
|
||||
color: var(--color-text);
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.blog-category {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
}
|
||||
71
src/styles/blog/blog.detail.module.scss
Normal file
71
src/styles/blog/blog.detail.module.scss
Normal file
@@ -0,0 +1,71 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
.blog-detail {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 2vh;
|
||||
padding: 10vh 2vw 3vh 2vw;
|
||||
|
||||
.blog-md {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
overflow: auto;
|
||||
|
||||
.md-editor {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.blog-title {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
align-items: center;
|
||||
gap: 1vh;
|
||||
|
||||
.title {
|
||||
background-color: blog.$theme-color;
|
||||
padding: 5px;
|
||||
border: 2px solid blog.$theme-color;
|
||||
border-radius: 10px;
|
||||
text-align: center;
|
||||
font-size: blog.$blog-title-font-size;
|
||||
font-family: "华文楷体", serif;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-copyright {
|
||||
width: 100%;
|
||||
background-color: var(--color-copyright-bg);
|
||||
|
||||
padding: 10px;
|
||||
border-left: 3px solid #FD2C17;
|
||||
font-size: blog.$small-font-size;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1vh;
|
||||
|
||||
strong {
|
||||
margin-right: 0.2vw;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-ending {
|
||||
span {
|
||||
color: #CFCFCF;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-detail-mobile {
|
||||
padding: 10px;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2vh;
|
||||
}
|
||||
15
src/styles/blog/blog.footbar.module.scss
Normal file
15
src/styles/blog/blog.footbar.module.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
.blog-site-footer {
|
||||
padding: 10px 0;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
|
||||
span {
|
||||
font-size: blog.$small-font-size;
|
||||
}
|
||||
}
|
||||
57
src/styles/blog/blog.label.module.scss
Normal file
57
src/styles/blog/blog.label.module.scss
Normal file
@@ -0,0 +1,57 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
.label-list {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 1vh;
|
||||
|
||||
margin-bottom: 1vh;
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
|
||||
.item {
|
||||
font-size: blog.$small-font-size;
|
||||
color: blog.$gray-text-color;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
|
||||
span {
|
||||
font-size: blog.$small-font-size;
|
||||
font-family: "Times New Roman", serif;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.top-value {
|
||||
color: #7d26cd !important;
|
||||
}
|
||||
|
||||
.great {
|
||||
color: #FFFFFF !important;
|
||||
background-color: #7d26cd;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.date {
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
|
||||
.category {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.2em;
|
||||
color: blog.$normal-text-color;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.category:hover {
|
||||
color: blog.$hover-text-color;
|
||||
}
|
||||
}
|
||||
60
src/styles/blog/blog.module.scss
Normal file
60
src/styles/blog/blog.module.scss
Normal file
@@ -0,0 +1,60 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
.blog-container {
|
||||
// height: 100%;
|
||||
background-color: var(--color-bg);
|
||||
padding: 0 5vw;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: minmax(13vw, 200px) 1fr;
|
||||
column-gap: 2vw;
|
||||
|
||||
aside {
|
||||
display: grid;
|
||||
grid-template-rows: 40vh 60vh;
|
||||
row-gap: 2vh;
|
||||
z-index: 2;
|
||||
|
||||
.blog-summary {
|
||||
// 滚动到顶部固定
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
section {
|
||||
z-index: 2;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2vh;
|
||||
|
||||
.blog-section {
|
||||
// height: 100%;
|
||||
min-height: 100vh;
|
||||
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.12),
|
||||
0 3px 1px -2px rgba(0,0,0,0.06),
|
||||
0 1px 5px 0 rgba(0,0,0,0.12),
|
||||
0 -1px 0.5px 0 rgba(0,0,0,0.09);
|
||||
|
||||
.module-title {
|
||||
background-color: blog.$theme-color;
|
||||
padding: 5px;
|
||||
border: 2px solid blog.$theme-color;
|
||||
border-radius: 10px;
|
||||
text-align: center;
|
||||
font-size: blog.$large-font-size;
|
||||
font-family: "华文楷体", serif;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-item {
|
||||
background-color: var(--color-card-bg);
|
||||
border: 1px solid var(--color-border-bg);
|
||||
border-radius: blog.$border-radius;
|
||||
// box-shadow: 3px 3px 3px #CFCFCF;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
87
src/styles/blog/blog.overview.module.scss
Normal file
87
src/styles/blog/blog.overview.module.scss
Normal file
@@ -0,0 +1,87 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
$blog-content-list-item-height: 38vh;
|
||||
$blog-content-title-font-size: 1.6rem;
|
||||
$hr-color: #CFCFCF;
|
||||
|
||||
.blog-content-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 5vh;
|
||||
padding: 10vh 2vw 2vh 2vw;
|
||||
position: relative;
|
||||
|
||||
.blog-content {
|
||||
width: 100%;
|
||||
height: $blog-content-list-item-height;
|
||||
padding: 4vh 1vw;
|
||||
|
||||
border: 1px solid blog.$border-color;
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 0 5px blog.$border-color;
|
||||
}
|
||||
|
||||
.blog-content-empty {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.blog-content-summary {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr 1fr 8vh 1fr 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
gap: 2vh;
|
||||
|
||||
.title {
|
||||
font-size: $blog-content-title-font-size;
|
||||
font-family: "华文楷体", serif;
|
||||
font-weight: bolder;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
// 自动展开下划线
|
||||
.title:after {
|
||||
content: "";
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background: blog.$theme-color;
|
||||
// 初始位置在底部中间
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
// 动画时间
|
||||
transition: all .8s;
|
||||
}
|
||||
|
||||
// 悬浮式展开到100%
|
||||
.title:hover::after {
|
||||
width: 100%;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
font-size: blog.$normal-font-size;
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
hr {
|
||||
width: 10%;
|
||||
height: 1px;
|
||||
background-color: $hr-color;
|
||||
border: none;
|
||||
}
|
||||
|
||||
span, p {
|
||||
font-family: '华为行楷',serif;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.blog-content-list {
|
||||
padding: 10px;
|
||||
}
|
||||
}
|
||||
281
src/styles/blog/blog.sidebar.module.scss
Normal file
281
src/styles/blog/blog.sidebar.module.scss
Normal file
@@ -0,0 +1,281 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
$title-font-color: #FFFFFF;
|
||||
$title-font-size: 1.8rem;
|
||||
$sub-title-font-size: 1rem;
|
||||
|
||||
.blog-aside {
|
||||
.top-container {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-rows: 2fr 3fr;
|
||||
|
||||
.title-container {
|
||||
background-color: blog.$theme-color;
|
||||
border-top-left-radius: 15px;
|
||||
border-top-right-radius: 15px;
|
||||
|
||||
display: grid;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
|
||||
padding: 10px;
|
||||
|
||||
.title {
|
||||
color: $title-font-color;
|
||||
font-size: $title-font-size;
|
||||
}
|
||||
|
||||
.sub-title {
|
||||
font-family: "华文楷体", serif;
|
||||
font-size: $sub-title-font-size;
|
||||
text-align: center;
|
||||
line-height: 150%;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-menu-container {
|
||||
align-self: center;
|
||||
height: 90%;
|
||||
display: grid;
|
||||
grid-template-rows: repeat(4, 1fr);
|
||||
align-items: center;
|
||||
|
||||
.el-menu-item {
|
||||
height: 5vh;
|
||||
gap: 0.5vw;
|
||||
font-size: blog.$normal-font-size;
|
||||
|
||||
.menu-title {
|
||||
|
||||
}
|
||||
|
||||
.value {
|
||||
position: absolute;
|
||||
right: 10%;
|
||||
line-height: 2vh;
|
||||
|
||||
background-color: blog.$normal-bg-color;
|
||||
padding: 2px;
|
||||
border: solid 1px blog.$normal-bg-color;
|
||||
border-radius: 15px;
|
||||
|
||||
color: var(--color-bg);
|
||||
font-size: blog.$small-font-size;
|
||||
font-family: "Times New Roman",serif;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-menu {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-summary {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1vh;
|
||||
|
||||
.blog-summary-tab {
|
||||
margin-top: 1vh;
|
||||
height: 5vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1vw;
|
||||
|
||||
span {
|
||||
font-size: blog.$small-font-size;
|
||||
}
|
||||
|
||||
span:hover {
|
||||
color: #FC6423;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tab-active {
|
||||
color: #FC6423;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-brief {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-rows: 150px 50px 50px 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
gap: 1vh;
|
||||
|
||||
.avatar {
|
||||
padding: 1vh 1vw;
|
||||
display: grid;
|
||||
grid-template-rows: 100px 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
gap: 1vh;
|
||||
|
||||
img {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius: 50%;
|
||||
transition: all 2.0s;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
img:hover {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
|
||||
span {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
gap: 1vw;
|
||||
|
||||
.item {
|
||||
display: grid;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
justify-items: center;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
cursor: pointer;
|
||||
|
||||
.name {
|
||||
color: blog.$gray-text-color;
|
||||
}
|
||||
|
||||
.name:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.social {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
cursor: pointer;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
padding: 5px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: blog.$normal-text-color;
|
||||
font-size: blog.$small-font-size;
|
||||
|
||||
.name {
|
||||
font-size: blog.$small-font-size;
|
||||
}
|
||||
}
|
||||
|
||||
.item:hover {
|
||||
background-color: var(--color-card-bg);
|
||||
color: var(--color-text);
|
||||
}
|
||||
}
|
||||
|
||||
.latest-blog {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1vh;
|
||||
|
||||
.title {
|
||||
span {
|
||||
margin-left: 5px;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-list {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1.5vh;
|
||||
cursor: pointer;
|
||||
|
||||
span {
|
||||
text-align: center;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.1em;
|
||||
font-size: blog.$small-font-size;
|
||||
color: blog.$normal-text-color;
|
||||
|
||||
width: 80%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
span:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.blog-time {
|
||||
width: 10vw;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: blog.$normal-font-size;
|
||||
}
|
||||
}
|
||||
|
||||
.md-editor-catalog {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
|
||||
span {
|
||||
word-break: break-all;
|
||||
white-space: normal;
|
||||
font-size: blog.$smaller-font-size;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-container {
|
||||
padding: 2px 0;
|
||||
width: 100%;
|
||||
border-color: blog.$border-color;
|
||||
border-bottom-left-radius: blog.$border-radius;
|
||||
border-bottom-right-radius: blog.$border-radius;
|
||||
background-color: var(--color-scroll-card-bg);
|
||||
|
||||
text-align: center;
|
||||
|
||||
.fa-arrow-up {
|
||||
color: blog.$theme-color;
|
||||
margin-right: 0.2vw;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: blog.$small-font-size;
|
||||
color: #A19FA0;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-container:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
129
src/styles/blog/blog.tools.module.scss
Normal file
129
src/styles/blog/blog.tools.module.scss
Normal file
@@ -0,0 +1,129 @@
|
||||
@use "blog.variable.module.scss" as blog;
|
||||
|
||||
.blog-tools {
|
||||
position: absolute;
|
||||
|
||||
.book-mark-link {
|
||||
border-bottom: none;
|
||||
display: block;
|
||||
position: fixed;
|
||||
top: -2px;
|
||||
left: 20px;
|
||||
color: #222;
|
||||
font-size: 26px;
|
||||
transition: .3s;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.github-corner {
|
||||
border-bottom: none;
|
||||
display: block;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
color: #222;
|
||||
font-size: 26px;
|
||||
transition: .3s;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.github-corner:hover .octo-arm {
|
||||
animation: octocat-wave 560ms ease-in-out
|
||||
}
|
||||
|
||||
@keyframes octocat-wave {
|
||||
0%, 100% {
|
||||
transform: rotate(0)
|
||||
}
|
||||
20%, 60% {
|
||||
transform: rotate(-25deg)
|
||||
}
|
||||
40%, 80% {
|
||||
transform: rotate(10deg)
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
.github-corner:hover .octo-arm {
|
||||
animation: none
|
||||
}
|
||||
.github-corner .octo-arm {
|
||||
animation: octocat-wave 560ms ease-in-out
|
||||
}
|
||||
}
|
||||
|
||||
#particles {
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.heart {
|
||||
position: fixed;
|
||||
opacity: 1;
|
||||
scale: 1;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: red;
|
||||
transform: rotate(45deg);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.heart:after, .heart:before {
|
||||
content: "";
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
background: inherit;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.heart:after {
|
||||
top: -5px;
|
||||
}
|
||||
|
||||
.heart:before {
|
||||
left: -5px;
|
||||
}
|
||||
|
||||
@keyframes move {
|
||||
100% {
|
||||
transform: translateY(-20px) rotate(45deg);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-progress {
|
||||
/* Positioning */
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
color: blog.$theme-color;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.blog-progress::-webkit-progress-bar {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.blog-progress::-webkit-progress-value {
|
||||
background-color: blog.$theme-color;
|
||||
}
|
||||
|
||||
.blog-progress::-moz-progress-bar {
|
||||
background-color: blog.$theme-color;
|
||||
}
|
||||
|
||||
.theme-button {
|
||||
position: fixed;
|
||||
top: -2px;
|
||||
left: 50px;
|
||||
z-index: 10;
|
||||
}
|
||||
}
|
||||
23
src/styles/blog/blog.variable.module.scss
Normal file
23
src/styles/blog/blog.variable.module.scss
Normal file
@@ -0,0 +1,23 @@
|
||||
$bg-color: #EEEEEE;
|
||||
$card-bg-color: #FFFFFF;
|
||||
|
||||
// 主题颜色
|
||||
$theme-color: #009FA8;
|
||||
// 正常文本颜色
|
||||
$normal-text-color: #555555;
|
||||
// 悬浮文本颜色
|
||||
$hover-text-color: #000000;
|
||||
// 灰色文本颜色
|
||||
$gray-text-color: #9C9C9C;
|
||||
|
||||
$normal-bg-color: #CCCCCC;
|
||||
$hover-bg-color: #F9F9F9;
|
||||
|
||||
$blog-title-font-size: 1.6rem;
|
||||
$large-font-size: 1.3rem;
|
||||
$normal-font-size: 1rem;
|
||||
$small-font-size: 0.9rem;
|
||||
$smaller-font-size: 0.8rem;
|
||||
|
||||
$border-color: #EEEEEE;
|
||||
$border-radius: 15px;
|
||||
@@ -77,7 +77,7 @@ span, input {
|
||||
|
||||
@font-face {
|
||||
font-family: 'CustomFont';
|
||||
src: url('@/assets/font/custom.ttf') format('truetype');
|
||||
src: url('@/assets/font/custom.woff2') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user