Skip to content

Commit

Permalink
Site updated: 2020-09-25 01:27:46
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-whoz committed Sep 24, 2020
1 parent f4fe379 commit b3c189a
Showing 1 changed file with 59 additions and 70 deletions.
129 changes: 59 additions & 70 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,6 @@
--btn-default-hover-color: #fff;
--btn-default-hover-border-color: #222;
}
@media (prefers-color-scheme: dark) {
:root {
--body-bg-color: #282828;
--content-bg-color: #333;
--card-bg-color: #555;
--text-color: #ccc;
--blockquote-color: #bbb;
--link-color: #ccc;
--link-hover-color: #eee;
--brand-color: #ddd;
--brand-hover-color: #ddd;
--table-row-odd-bg-color: #282828;
--table-row-hover-bg-color: #363636;
--menu-item-bg-color: #555;
--btn-default-bg: #222;
--btn-default-color: #ccc;
--btn-default-border-color: #555;
--btn-default-hover-bg: #666;
--btn-default-hover-color: #ccc;
--btn-default-hover-border-color: #666;
}
img {
opacity: 0.75;
}
img:hover {
opacity: 0.9;
}
}
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
Expand Down Expand Up @@ -384,31 +356,53 @@ td {
margin-top: 3px;
}
.toggle.toggle-arrow .toggle-line-first {
left: 50%;
top: 2px;
transform: rotate(45deg);
transform: rotate(-45deg);
width: 50%;
}
.toggle.toggle-arrow .toggle-line-middle {
left: 2px;
width: 90%;
}
.toggle.toggle-arrow .toggle-line-last {
left: 50%;
top: -2px;
transform: rotate(-45deg);
transform: rotate(45deg);
width: 50%;
}
.toggle.toggle-close .toggle-line-first {
transform: rotate(-45deg);
top: 5px;
transform: rotate(-45deg);
}
.toggle.toggle-close .toggle-line-middle {
opacity: 0;
}
.toggle.toggle-close .toggle-line-last {
transform: rotate(45deg);
top: -5px;
transform: rotate(45deg);
}
.highlight-container {
position: relative;
}
.highlight-container:hover .copy-btn,
.highlight-container .copy-btn:focus {
opacity: 1;
}
.copy-btn {
color: #333;
cursor: pointer;
line-height: 1.6;
opacity: 0;
padding: 2px 6px;
position: absolute;
transition-delay: 0s;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
background-color: #eee;
background-image: linear-gradient(#fcfcfc, #eee);
border: 1px solid #d5d5d5;
border-radius: 3px;
font-size: 0.8125em;
right: 4px;
top: 8px;
}
.highlight,
pre {
Expand Down Expand Up @@ -1135,7 +1129,6 @@ pre .javascript .function {
.sidebar {
background: #222;
bottom: 0;
box-shadow: inset 0 2px 6px #000;
position: fixed;
top: 0;
}
Expand Down Expand Up @@ -1196,7 +1189,7 @@ pre .javascript .function {
}
.links-of-author a::before,
.links-of-author span.exturl::before {
background: #ffdb22;
background: #9effff;
border-radius: 50%;
content: ' ';
display: inline-block;
Expand Down Expand Up @@ -1511,33 +1504,26 @@ pre .javascript .function {
transition-timing-function: ease-in-out;
}
.back-to-top {
background: #222;
bottom: -100px;
box-sizing: border-box;
color: #fff;
background: transparent;
margin: 8px -10px -20px;
opacity: 0;
}
.back-to-top.back-to-top-on {
cursor: pointer;
left: 30px;
opacity: 0.6;
padding: 0 6px;
position: fixed;
transition-property: bottom;
z-index: 1300;
width: 24px;
}
.back-to-top span {
display: none;
}
.back-to-top:hover {
color: #fc6423;
}
.back-to-top.back-to-top-on {
bottom: 30px;
.back-to-top.back-to-top-on:hover {
opacity: 0.8;
}
@media (max-width: 991px) {
.back-to-top {
left: 20px;
opacity: 0.8;
}
.reading-progress-bar {
background: #37c6c0;
display: block;
height: 3px;
left: 0;
position: fixed;
width: 0;
z-index: 1500;
top: 0;
}
.post-body {
font-family: 'Lato', "PingFang SC", "Microsoft YaHei", sans-serif;
Expand Down Expand Up @@ -2215,7 +2201,6 @@ ul.breadcrumb li + li:last-child {
align-items: flex-start;
display: flex;
justify-content: space-between;
flex-direction: row-reverse;
}
@media (max-width: 991px) {
.main-inner {
Expand All @@ -2237,17 +2222,14 @@ ul.breadcrumb li + li:last-child {
width: 100%;
}
}
.footer-inner {
padding-left: 260px;
.header-inner {
right: 0;
}
.back-to-top {
left: auto;
right: 30px;
.book-mark-link {
left: 30px;
}
@media (max-width: 991px) {
.back-to-top {
right: 20px;
}
.footer-inner {
padding-right: 260px;
}
@media (max-width: 991px) {
.footer-inner {
Expand Down Expand Up @@ -2467,6 +2449,13 @@ ul.breadcrumb li + li:last-child {
.links-of-blogroll-item {
padding: 0;
}
.back-to-top {
background: var(--body-bg-color);
margin: -4px -10px -18px;
}
.back-to-top.back-to-top-on {
margin-top: 16px;
}
.content-wrap {
background: initial;
box-shadow: initial;
Expand Down

0 comments on commit b3c189a

Please sign in to comment.