Merge branch 'refractor_css' into dev
This commit is contained in:
commit
34cd7b6dae
4 changed files with 301 additions and 285 deletions
298
assets/style-refractored.scss
Normal file
298
assets/style-refractored.scss
Normal file
|
@ -0,0 +1,298 @@
|
||||||
|
// helper class & functional class
|
||||||
|
.center{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
// style for main framework
|
||||||
|
body{
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pure-g [class*=pure-u]{
|
||||||
|
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 24px;
|
||||||
|
color: rgb(33, 37, 41);
|
||||||
|
}
|
||||||
|
|
||||||
|
.page{
|
||||||
|
max-width: 1150px;
|
||||||
|
margin: auto;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container{
|
||||||
|
max-width: 760px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.moment-content{
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.moment-row{
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width:1150px) {
|
||||||
|
.page{
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
.moment-row{
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container{
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p{
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* START - top cover part */
|
||||||
|
.jumbotron{
|
||||||
|
padding-top: 64px;
|
||||||
|
background-position: center;
|
||||||
|
background-size: cover;
|
||||||
|
min-height: 200px;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
|
||||||
|
.site-title{
|
||||||
|
color: rgb(108, 117, 125);
|
||||||
|
font-size: 56px;
|
||||||
|
font-weight: 300;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.signature{
|
||||||
|
color: rgba(0, 0, 0, 0.5);
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* END - top cover part */
|
||||||
|
|
||||||
|
/* START - pagination */
|
||||||
|
.pagination{
|
||||||
|
display: flex;
|
||||||
|
margin-top: 20px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
|
||||||
|
.page-item{
|
||||||
|
border: #80808050;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 0.5px;
|
||||||
|
border-radius: 2%;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
padding-top: 10px;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
|
||||||
|
&.active{
|
||||||
|
background-color: #337cf6;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.disabled{
|
||||||
|
color:rgb(108, 117, 125)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// below is for items with link
|
||||||
|
a{
|
||||||
|
color: #337cf6;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-link .page-item:hover{
|
||||||
|
background-color: #eaecef;
|
||||||
|
color: #2157ad;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* END - pagination */
|
||||||
|
|
||||||
|
|
||||||
|
/* START - time */
|
||||||
|
.time{
|
||||||
|
text-align: right;
|
||||||
|
padding-right: 60px;
|
||||||
|
/* white-space: nowrap; */
|
||||||
|
font-weight: 300;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
|
.month-day{
|
||||||
|
font-size: 24px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.year{
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 576px){
|
||||||
|
.time{
|
||||||
|
text-align: center;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (max-width: 720px) and (min-width:576px){
|
||||||
|
.time{
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* END - time */
|
||||||
|
|
||||||
|
|
||||||
|
/* START - user name, avatar & tags */
|
||||||
|
.user-info{
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
.avatar{
|
||||||
|
max-height: 45px;
|
||||||
|
float: left;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro{
|
||||||
|
float: left;
|
||||||
|
padding-left: 5px;
|
||||||
|
|
||||||
|
.name{
|
||||||
|
color:#186D9C!important;
|
||||||
|
margin-bottom: 0;
|
||||||
|
line-height: 1.1;
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag{
|
||||||
|
font-size: 80%;
|
||||||
|
margin-left: 0px;
|
||||||
|
margin-right: 10px;
|
||||||
|
color: #6c757d!important;
|
||||||
|
|
||||||
|
&::before{
|
||||||
|
content:"#";
|
||||||
|
padding-right: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* END - user name, avatar & tags */
|
||||||
|
|
||||||
|
|
||||||
|
/* START - for the main content */
|
||||||
|
.context{
|
||||||
|
clear: left;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.single-pic{
|
||||||
|
max-width: 65%;
|
||||||
|
max-height: 250px;
|
||||||
|
padding-bottom:10px;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pic set
|
||||||
|
.pic-grid{
|
||||||
|
max-width: 80%;
|
||||||
|
|
||||||
|
.img-container{
|
||||||
|
padding-top: 50%;
|
||||||
|
padding-bottom: 50%;
|
||||||
|
position: relative;
|
||||||
|
height: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
img{
|
||||||
|
object-fit: cover;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
.add-padding{
|
||||||
|
padding: 2.5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* for links */
|
||||||
|
.share-link-block{
|
||||||
|
padding-bottom:10px;
|
||||||
|
padding-top:10px;
|
||||||
|
margin-bottom:10px;
|
||||||
|
background: #f7f7f7;
|
||||||
|
|
||||||
|
.link-table{
|
||||||
|
margin-left: 10%;
|
||||||
|
max-width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-logo{
|
||||||
|
max-width: 50px;
|
||||||
|
max-height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a{
|
||||||
|
color:#17a2b8;
|
||||||
|
word-wrap: break-word;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// for the note info
|
||||||
|
.moment-note{
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-right: 5px;
|
||||||
|
color:#808080;
|
||||||
|
|
||||||
|
.note{
|
||||||
|
font-size: 80%;
|
||||||
|
text-indent: 20px;
|
||||||
|
color: rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// hr
|
||||||
|
hr {
|
||||||
|
margin-top: 20px;
|
||||||
|
border-width: 0;
|
||||||
|
border-top: 1px solid;
|
||||||
|
border-color: rgba(0, 0, 0, 0.1);
|
||||||
|
max-width: 75%;
|
||||||
|
clear: both
|
||||||
|
}
|
||||||
|
/* END - for the main content */
|
||||||
|
|
||||||
|
|
||||||
|
/* START - footer*/
|
||||||
|
.footer {
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-bottom: 30px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
|
||||||
|
color: #6c757d !important;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 95%;
|
||||||
|
|
||||||
|
a{
|
||||||
|
text-decoration: underline !important;
|
||||||
|
color:#6c757d !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* END - footer*/
|
|
@ -31,7 +31,8 @@
|
||||||
<meta name="theme-color" content="#ffffff">
|
<meta name="theme-color" content="#ffffff">
|
||||||
|
|
||||||
<!-- the Moments style css file -->
|
<!-- the Moments style css file -->
|
||||||
<link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}/css/style.css">
|
{{ $style := resources.Get "style-refractored.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
|
||||||
|
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||||
|
|
||||||
<!-- fancybox css (js in the end before the body closing tag) -->
|
<!-- fancybox css (js in the end before the body closing tag) -->
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css"/>
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.css"/>
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
<div style="padding-right: 12px;"><i class="far fa-heart"></i></div>
|
<div style="padding-right: 12px;"><i class="far fa-heart"></i></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr style="clear: both">
|
<hr class="seperating_line">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,283 +0,0 @@
|
||||||
/* 主框架 */
|
|
||||||
body{
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pure-g [class*=pure-u]{
|
|
||||||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji" !important;
|
|
||||||
font-weight: normal;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 24px;
|
|
||||||
color: rgb(33, 37, 41);
|
|
||||||
}
|
|
||||||
|
|
||||||
p{
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* START - top cover part */
|
|
||||||
.jumbotron{
|
|
||||||
padding-top: 64px;
|
|
||||||
background-position: center;
|
|
||||||
background-size: cover;
|
|
||||||
min-height: 200px;
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-title{
|
|
||||||
color: rgb(108, 117, 125);
|
|
||||||
font-size: 56px;
|
|
||||||
font-weight: 300;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.signature{
|
|
||||||
color: rgb(0, 0, 0, 0.5);
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 300;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* END - top cover part */
|
|
||||||
|
|
||||||
/* START - pagination */
|
|
||||||
.center{
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination{
|
|
||||||
display: flex;
|
|
||||||
margin-top: 20px;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pagination a{
|
|
||||||
color: #337cf6;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-item{
|
|
||||||
border: #80808050;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 0.5px;
|
|
||||||
border-radius: 2%;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-link .page-item:hover{
|
|
||||||
background-color: #eaecef;
|
|
||||||
color: #2157ad;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-item.active{
|
|
||||||
background-color: #337cf6;
|
|
||||||
color: #ffffff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-item.disabled{
|
|
||||||
color:rgb(108, 117, 125)
|
|
||||||
}
|
|
||||||
/* END - pagination */
|
|
||||||
|
|
||||||
.page{
|
|
||||||
max-width: 1150px;
|
|
||||||
margin: auto;
|
|
||||||
background-color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width:1150px) {
|
|
||||||
.page{
|
|
||||||
margin-top: 50px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.container{
|
|
||||||
max-width: 760px;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.moment-content {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 720px) {
|
|
||||||
.moment-row{
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container{
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* START - time */
|
|
||||||
.time{
|
|
||||||
text-align: right;
|
|
||||||
padding-right: 60px;
|
|
||||||
/* white-space: nowrap; */
|
|
||||||
font-weight: 300;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
@media (max-width: 576px){
|
|
||||||
.time{
|
|
||||||
text-align: center;
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (max-width: 720px) and (min-width:576px){
|
|
||||||
.time{
|
|
||||||
padding-right: 20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.time .month-day{
|
|
||||||
font-size: 24px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
.time .year{
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* END - time */
|
|
||||||
|
|
||||||
/* 抬头 */
|
|
||||||
|
|
||||||
.user-info{
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.avatar{
|
|
||||||
max-height: 45px;
|
|
||||||
float: left;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.intro{
|
|
||||||
float: left;
|
|
||||||
padding-left: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.name{
|
|
||||||
color:#186D9C!important;
|
|
||||||
margin-bottom: 0;
|
|
||||||
line-height: 1.1;
|
|
||||||
font-size: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tag::before{
|
|
||||||
content:"#";
|
|
||||||
padding-right: 1px;
|
|
||||||
}
|
|
||||||
.tag{
|
|
||||||
font-size: 80%;
|
|
||||||
margin-left: 0px;
|
|
||||||
margin-right: 10px;
|
|
||||||
color: #6c757d!important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 正文 */
|
|
||||||
.context{
|
|
||||||
clear: left;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 图片 */
|
|
||||||
.single-pic{
|
|
||||||
max-width: 65%;
|
|
||||||
max-height: 250px;
|
|
||||||
padding-bottom:10px;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
/* 图片集 */
|
|
||||||
.pic-grid{
|
|
||||||
max-width: 80%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pic-grid .img-container{
|
|
||||||
padding-top: 50%;
|
|
||||||
padding-bottom: 50%;
|
|
||||||
position: relative;
|
|
||||||
height: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pic-grid img{
|
|
||||||
object-fit: cover;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
position: absolute;
|
|
||||||
top: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
.pic-grid .add-padding{
|
|
||||||
padding: 2.5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 内容附带的超链接 */
|
|
||||||
.share-link-block{
|
|
||||||
padding-bottom:10px;
|
|
||||||
padding-top:10px;
|
|
||||||
margin-bottom:10px;
|
|
||||||
background: #f7f7f7;
|
|
||||||
}
|
|
||||||
.link-table{
|
|
||||||
margin-left: 10%;
|
|
||||||
max-width: 80%;
|
|
||||||
}
|
|
||||||
.link-logo{
|
|
||||||
max-width: 50px;
|
|
||||||
max-height: 50px;
|
|
||||||
}
|
|
||||||
.share-link-block a{
|
|
||||||
color:#17a2b8;
|
|
||||||
word-wrap: break-word;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 附注信息 */
|
|
||||||
.moment-note{
|
|
||||||
display: flex;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
.moment-note .note{
|
|
||||||
font-size: 80%;
|
|
||||||
text-indent: 20px;
|
|
||||||
color: rgb(0, 0, 0, 0.5);
|
|
||||||
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.moment-note{
|
|
||||||
margin-right: 5px;
|
|
||||||
color:#808080
|
|
||||||
}
|
|
||||||
|
|
||||||
/* hr */
|
|
||||||
hr {
|
|
||||||
border-width: 0;
|
|
||||||
border-top: 1px solid;
|
|
||||||
border-color: rgb(0, 0, 0, 0.1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* footer底注 */
|
|
||||||
.footer {
|
|
||||||
padding-top: 20px;
|
|
||||||
padding-bottom: 30px;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
|
|
||||||
color: #6c757d !important;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 95%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer a{
|
|
||||||
text-decoration: underline !important;
|
|
||||||
color:#6c757d !important;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue