🧶优化文章显示和其他CSS样式
This commit is contained in:
parent
d22c4d50c1
commit
1b9ec02018
|
@ -1,4 +1,6 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
*.DS_Store
|
||||||
|
*/.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/dist
|
/dist
|
||||||
|
|
||||||
|
@ -22,3 +24,4 @@ package-lock.json
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
source/.DS_Store
|
||||||
|
|
|
@ -90,4 +90,6 @@ linksList:
|
||||||
}
|
}
|
||||||
|
|
||||||
#默认的cover (默认缩略图) 在没有填写(这里可以替换(可以是api也可以是固定的图))
|
#默认的cover (默认缩略图) 在没有填写(这里可以替换(可以是api也可以是固定的图))
|
||||||
default_cover: http://eett.cc/pictures?type=pc&category=fengjing
|
# https://api.ixiaowai.cn/gqapi/gqapi.php
|
||||||
|
# https://tuapi.eees.cc/api.php?type=302&category=fengjing
|
||||||
|
default_cover: https://api.ixiaowai.cn/gqapi/gqapi.php
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -7,7 +7,7 @@
|
||||||
<div class="categories-class">
|
<div class="categories-class">
|
||||||
<% site.categories.map(function(category,index){ %>
|
<% site.categories.map(function(category,index){ %>
|
||||||
<a class="categories-class-card" href="<%- url_for(category.path) %>"
|
<a class="categories-class-card" href="<%- url_for(category.path) %>"
|
||||||
style="background-image: url('<%- theme.default_cover %>&id=<%- parseInt(Math.random()*(10000-1)+1) %>');"
|
style="background-image: url('<%- theme.default_cover %>');"
|
||||||
>
|
>
|
||||||
<span class="categories-class-card-title"><%= category.name %></span>
|
<span class="categories-class-card-title"><%= category.name %></span>
|
||||||
<div class="categories-class-card-number">
|
<div class="categories-class-card-number">
|
||||||
|
|
Binary file not shown.
|
@ -23,7 +23,7 @@ hue-6-2: #e6c07b
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
color: #abb2bf;
|
color: #abb2bf;
|
||||||
background: #282c34;
|
background: #292d3e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hljs-comment,
|
.hljs-comment,
|
||||||
|
|
|
@ -3,11 +3,10 @@
|
||||||
.content-style();
|
.content-style();
|
||||||
&-data {
|
&-data {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
max-width: 800px;
|
padding: 64px 80px;
|
||||||
padding: 64px 40px;
|
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
transition: padding 1s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,13 +79,19 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@media screen and (max-width:800px) {
|
||||||
|
.categories-content {
|
||||||
@media screen and (max-width:600px) {
|
&-data{
|
||||||
.article-content {
|
padding: 64px 50px;
|
||||||
padding: 64px 16px;
|
|
||||||
.content {
|
|
||||||
font-size: 1.1em;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width:600px) {
|
||||||
|
.categories-content {
|
||||||
|
&-data{
|
||||||
|
padding: 64px 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,9 @@
|
||||||
.content-style();
|
.content-style();
|
||||||
&-data {
|
&-data {
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: 900px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 64px 40px;
|
padding: 64px 80px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
@ -20,7 +19,7 @@
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin-bottom: 50px;
|
margin-bottom: 20px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border: 1px solid #F8F9FB;
|
border: 1px solid #F8F9FB;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -50,8 +50,8 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-right: 16px;
|
margin-right: 16px;
|
||||||
padding: 4px 12px;
|
padding: 6px 14px;
|
||||||
border-radius: 15px;
|
border-radius: 4px;
|
||||||
background: rgba(18,24,58,.06);
|
background: rgba(18,24,58,.06);
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
-webkit-transition: background .5s;
|
-webkit-transition: background .5s;
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
max-width: 900px;
|
padding: 64px 80px;
|
||||||
padding: 64px 40px;
|
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
transition: all 0.4s ease-in-out;
|
transition: all 0.4s ease-in-out;
|
||||||
|
@ -61,3 +60,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media screen and (max-width:800px) {
|
||||||
|
.tags-content {
|
||||||
|
&-data{
|
||||||
|
padding: 64px 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width:600px) {
|
||||||
|
.tags-content {
|
||||||
|
&-data{
|
||||||
|
padding: 64px 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
#gitalk-container{
|
#gitalk-container{
|
||||||
padding: 0px 80px;
|
padding: 0px 80px;
|
||||||
max-width: 1000px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 800px) {
|
@media screen and (max-width: 800px) {
|
||||||
|
|
|
@ -1,4 +1,16 @@
|
||||||
#article{
|
#article{
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
position: relative;
|
||||||
|
font-weight: 600;
|
||||||
|
outline: none;
|
||||||
|
color: #12183A;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
|
@ -18,59 +30,83 @@
|
||||||
margin: 20px 0 15px;
|
margin: 20px 0 15px;
|
||||||
}
|
}
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 20px;
|
padding: 24px 0;
|
||||||
margin: 15px 0 10px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
font-size: 19px;
|
font-size: 19px;
|
||||||
margin: 15px 0 10px;
|
padding: 15px 0 10px;
|
||||||
|
}
|
||||||
|
h5 {
|
||||||
|
font-size: 18px;
|
||||||
|
padding: 15px 0 10px;
|
||||||
}
|
}
|
||||||
a {
|
a {
|
||||||
color: #e06c75;
|
|
||||||
text-decoration: none;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 0px;
|
color: #006aff;
|
||||||
transition: all .3s ease-in-out;
|
text-decoration: none;
|
||||||
&:hover {
|
outline: 0;
|
||||||
top: -4px;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
hr{
|
||||||
|
margin: 24px 0 32px;
|
||||||
|
height: 4px;
|
||||||
|
border: none;
|
||||||
|
background: #F1F5FB;
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
border-radius: 3px;
|
border-radius: 8px;
|
||||||
li {
|
li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
a{
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
width: 100%;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
img {
|
img {
|
||||||
max-width: 90%;
|
width: 100%;
|
||||||
max-height: 400px;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: 0 0 3px #c3c3c3;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0 auto;
|
margin: 8px 0 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
border-radius: 10px;
|
||||||
|
outline: none;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
pre {
|
pre {
|
||||||
max-width: 722px;
|
|
||||||
font-size: .85em;
|
font-size: .85em;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
|
display: flex;
|
||||||
|
max-width: 1000px;
|
||||||
|
position: relative;
|
||||||
|
&:after {
|
||||||
|
position: absolute;
|
||||||
|
left: 20px;
|
||||||
|
top: 30px;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #fc625d;
|
||||||
|
-webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
|
||||||
|
box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
|
||||||
|
content: ' ';
|
||||||
|
}
|
||||||
code {
|
code {
|
||||||
padding: 20px;
|
flex: 1;
|
||||||
|
text-align: left;
|
||||||
|
width: fit-content;
|
||||||
|
padding: 40px 20px 20px 20px;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
|
white-space: pre;
|
||||||
|
word-spacing: normal;
|
||||||
|
word-break: normal;
|
||||||
|
word-wrap: normal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
p {
|
p{
|
||||||
margin-top: 6px;
|
display: block;
|
||||||
line-height: 1.5em;
|
margin: 4px 0 16px;
|
||||||
font-size: .95em;
|
line-height: 30px;
|
||||||
letter-spacing: .7px;
|
text-align: justify;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #12183A;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
ol {
|
ol {
|
||||||
padding: 10px 30px;
|
padding: 10px 30px;
|
||||||
|
@ -84,6 +120,7 @@
|
||||||
li {
|
li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 10px 16px;
|
margin: 10px 16px;
|
||||||
|
line-height: 30px;
|
||||||
&:before {
|
&:before {
|
||||||
content: "\2022";
|
content: "\2022";
|
||||||
color: #006aff;
|
color: #006aff;
|
||||||
|
@ -97,21 +134,28 @@
|
||||||
}
|
}
|
||||||
blockquote {
|
blockquote {
|
||||||
background: #fafafa;
|
background: #fafafa;
|
||||||
border-left: 5px solid #e0e2e5;
|
border-left: 4px solid #e0e2e5;
|
||||||
color: #aaa;
|
margin: 15px 0;
|
||||||
margin-top: 10px;
|
padding: 2px;
|
||||||
margin-bottom: 10px;
|
p{
|
||||||
|
margin: 4px 20px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-indent: 1em;
|
color: #898FA0;
|
||||||
font-size: 1em;
|
font-size: 16px;
|
||||||
padding: 10px;
|
}
|
||||||
}
|
}
|
||||||
p code,ul li code {
|
p code,ul li code {
|
||||||
background: #F3F4F4;
|
|
||||||
color: #f47466;
|
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
margin: 0 3px;
|
margin: 0 4px;
|
||||||
padding: 0 10px;
|
display: inline;
|
||||||
|
padding: 6px 8px;
|
||||||
|
font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
||||||
|
color: #58586C;
|
||||||
|
background: #F1F5FB;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
p strong{
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-move-style() {
|
.content-move-style() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.grouping-style(){
|
.grouping-style(){
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 800px;
|
width: 900px;
|
||||||
padding: 64px 40px;
|
padding: 64px 40px;
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
transition: all 0.4s ease-in-out;
|
transition: all 0.4s ease-in-out;
|
||||||
|
|
Loading…
Reference in New Issue