1
0
Fork 0

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