Skip to content

Commit

Permalink
🎁 Perf: 细节调整 + 新的样式(←好草率的日志)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigCoke233 authored Nov 30, 2019
1 parent 8fc3273 commit 9f1abdb
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 38 deletions.
4 changes: 0 additions & 4 deletions assets/css/main/component.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ button {
bottom: 8px;
background: #fff!important;
color: rgb(80,80,80)!important;
opacity: 1;
}
.gotop-button.invisible {
opacity: 0;
}
/* Bubble */
.bubble {
Expand Down
12 changes: 7 additions & 5 deletions assets/css/main/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
background:#6e6e6e
}
.body-dark .post-content hr {
background:#787878
border: 3px dashed #787878!important
}
/* Pio Plugin */
.body-dark .pio-container .pio-dialog {
Expand Down Expand Up @@ -79,7 +79,7 @@
}
/* Nav/Search/login */
.body-dark .nav {
background:rgba(50,50,50,.9)!important;
background:rgba(50,50,50,.86)!important;
box-shadow:0 0 20px #000;
-webkit-box-shadow:0 0 20px #000;
-moz-box-shadow:0 0 30px #000
Expand Down Expand Up @@ -198,8 +198,9 @@
}
/* Need #6e6e6e bg */
.body-dark .OwO-bar,
.body-dark .OwO-item {
background:#6e6e6e!important
.body-dark .OwO-item,
.body-dark .index-banner {
background-color:#6e6e6e!important
}
/* Need white fonts */
.body-dark .OwO-bar,
Expand Down Expand Up @@ -236,7 +237,8 @@
.body-dark .search-close,
.body-dark .search-form button,
.body-darl .login a,
.body-dark .alert {
.body-dark .alert,
.body-dark .banner-content.banner-font-black {
color:#fafafa!important
}
.body-dark .options-theme-label {
Expand Down
2 changes: 1 addition & 1 deletion assets/css/main/miracles.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/* Varriable */
:root {
--theme-color: #4D90FE;
--shadow-color: rgb(150,150,150);
--shadow-color: rgb(180,180,180);
}

/* ScrollBar */
Expand Down
10 changes: 7 additions & 3 deletions assets/css/main/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/
/* Top Nav */
.nav {
background: rgba(255,255,255,0.96);
background: rgba(255,255,255,0.86);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(10px);
width: 100%;
position: absolute;
box-shadow: 0 0 20px #ddd;
Expand Down Expand Up @@ -39,7 +41,9 @@
.nav-mobile-content a:hover,
.nav-mobile-content button:hover,
.nav-sorts-content {
background: #f0f0f0
background: rgba(200,200,200,0.15);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
}
.nav-title {
color: #000;
Expand Down Expand Up @@ -93,7 +97,7 @@
top: 0;
bottom: 0;
z-index: 30;
transition: all 0.8s;
transition: all 0.4s!important;
box-shadow: 0 0 30px #646464;
-moz-box-shadow: 0 0 30px #646464;
-webkit-box-shadow: 0 0 30px #646464;
Expand Down
10 changes: 8 additions & 2 deletions assets/css/main/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
}
.tags-item {
position: relative;
display: inline-block
display: inline-block;
margin-top: 10px;
}
/* Archives 归档 */
.archives-list {
Expand All @@ -63,7 +64,12 @@
display: block;
border-radius: 3px;
transition: background .2s;
padding: 6px 10px
padding: 6px 10px;
white-space:nowrap;
width: 100%;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.archives-list a:hover {
background: #e6e6e6
Expand Down
63 changes: 43 additions & 20 deletions assets/css/main/post.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
margin-top: -110px;
transition: .8s;
}
.post-item {
margin-bottom: 10px;
}
.post-body,.post-item {
background: #fff;
box-shadow: 0 0 36px var(--shadow-color);
Expand All @@ -19,13 +22,12 @@
}
.post-banner-box {
margin-left: -15px;
margin-bottom: -2px;
height: 280px;
height: 100%;
overflow: hidden
}
.post-banner img {
width: 100%;
height: 280px;
height: 100%;
margin-right: -40px
}
.post-title {
Expand Down Expand Up @@ -68,18 +70,24 @@
/* >文章内容 */
.post-content {
padding: 26px;
font-size: 18px;
line-height: 28px;
letter-spacing: 2px;
word-break: break-all
}
.post-content h2 {
margin: 60px 0;
margin-bottom: 10px;
}
.post-content h3:before {
content: '# ';
color: var(--theme-color);
font-weight: bold;
}
.post-content hr {
display: block;
margin: 80px auto;
width: 150px;
background: #f0f0f0;
height: 5px;
border: none
margin: 65px auto;
width: 250px;
border: 3px dashed #f0f0f0
}
.post-content code {
font-size: 0.8em;
Expand All @@ -96,12 +104,9 @@
}
.post-content img {
display: block;
margin: 20px auto;
margin: 25px auto;
border-radius: 3px;
box-shadow: 0 4px 20px #ccc;
-moz-box-shadow: 0 4px 20px #ccc;
-webkit-box-shadow: 0 4px 20px #ccc;
max-width: 90%
max-width: 100%
}
.post-content blockquote p {
margin: 0
Expand Down Expand Up @@ -131,12 +136,13 @@
}
.post-content a:not(.no-line) {
position: relative;
color: var(--theme-color)
color: var(--theme-color);
border-bottom: 2px solid #f0f0f0;
}
.post-content a:not(.no-line)::before {
content: '';
position: absolute;
bottom: 0;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
Expand All @@ -147,14 +153,16 @@
}
.post-content a:not(.no-line):hover::before {
transform-origin: bottom left;
transform: scaleX(1)
transform: scaleX(1);
}
.post-content p {
vertical-align: middle;
}
.post-content ul ul,
.post-content ol ol {
margin-top: 0;
.post-content ol ol,
.post-content ol ul,
.post-content ul ol {
margin-top: -15px;
}
.post-content .owo-img {
box-shadow: 0 0 0 #fff;
Expand Down Expand Up @@ -209,7 +217,7 @@

/* >短代码 */
.tip {
border: 1px solid rgb(240,240,240);
border: 1px solid rgb(235,235,235);
border-radius: 3px;
padding: 15px;
border-left: 5px solid var(--theme-color);
Expand Down Expand Up @@ -241,9 +249,24 @@
.tip.yellow .tip-icon {
color: #FFDD11;
}
.tip-group {
margin: 15px 0;
}
.tip-group .tip {
margin: 0;
margin-top: -1px;
border-radius: 0;
}
.tip-group br {
display: none;
}
.tip-group .tip br {
display: block;
}
.post-bubble .saying-content p {
padding: 0 20px!important;
}

/* >文章分页 */
.post-pagenav,
.comment-pagenav {
Expand Down
20 changes: 17 additions & 3 deletions assets/css/main/special.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/* Index Banner */
.index-banner {
width: 100%;
min-height: 50vh;
text-align: center;
background-size: cover;
background-repeat: no-repeat;
Expand All @@ -33,9 +34,16 @@
.banner-content p {
margin-top: 10px
}
.banner-font-black,
.banner-font-black a {
color: black!important;
}

/* Options Pannel */
.options {
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
background: rgba(255,255,255,0.86);
transition: all 0.3s;
background: #fff;
border-radius: 2px;
Expand Down Expand Up @@ -152,12 +160,12 @@
}
/* - For Footer */
.body-contentsize-small .footer-info {
font-size: 14px;
font-size: 15px;
line-height: 18px;
}

.body-contentsize-normal .footer-info {
font-size: 16px;
font-size: 17px;
}

.body-contentsize-big .footer-info {
Expand Down Expand Up @@ -191,6 +199,12 @@
.footer-info a:hover {
opacity: .9
}
/* Shadow */
.no-shadow {
box-shadow: 0 0 0 #000!important;
-webkit-box-shadow: 0 0 0 #000!important;
-moz-box-shadow: 0 0 0 #000!important;
}
/* Header Meta */
.header-meta a {
color: #fff;
Expand Down Expand Up @@ -229,4 +243,4 @@ iframe[src*="//player.bilibili.com/player.html"] {
}
.fadein {
opacity: 1;
}
}

0 comments on commit 9f1abdb

Please sign in to comment.