Update CSS, run prettier

This commit is contained in:
nanxiaobei 2019-09-15 06:55:37 +08:00
parent ee1f7e5aee
commit e2dcb8903d

View File

@ -3,7 +3,7 @@
* A simple, clean, flexible Hugo theme
* https://github.com/nanxiaobei/hugo-paper
* Designed by MR.LEE (https://mrlee.me/)
* Updated in 2019.8.23
* Updated in 2019.9.15
*/
/* Variables
@ -15,7 +15,6 @@
--main-width: 640px;
--header-height: 60px;
--footer-height: 60px;
--radius: 8px;
--primary: rgba(0, 0, 0, 0.88);
@ -39,8 +38,8 @@ html {
body {
margin: 0;
color: var(--primary);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 18px;
line-height: 1.8;
word-break: break-word;
@ -101,8 +100,8 @@ textarea {
-webkit-appearance: none;
}
button,
input[type="button"],
input[type="submit"] {
input[type='button'],
input[type='submit'] {
cursor: pointer;
}
input,
@ -157,16 +156,18 @@ img {
/* Body
-------------------------------------------------- */
.list {
position: relative;
background: linear-gradient(135deg, #e2e2e2, #f8f8f8, #ddd);
}
.list::before {
content: "";
.list-bg {
position: absolute;
z-index: -1;
left: 0;
right: 0;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.24);
opacity: 0;
}
/* Main
-------------------------------------------------- */
@ -326,8 +327,7 @@ img {
}
.post-content del {
text-decoration: none;
background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0
50% / 1px 1px repeat-x;
background: linear-gradient(to right, var(--primary) 100%, transparent 0) 0 50% / 1px 1px repeat-x;
}
.post-content p,
.post-content ul,
@ -423,7 +423,7 @@ img {
margin-left: 4px;
margin-right: 4px;
padding: 4px 6px;
font-family: Menlo, Monaco, "Courier New", Courier, monospace;
font-family: Menlo, Monaco, 'Courier New', Courier, monospace;
font-size: 0.78em;
line-height: 1.5;
background: var(--code-bg);