veryroundbird 修订了这个 Gist 1 month ago. 转到此修订
1 file changed, 6 insertions, 1 deletion
ruiyis-wordwrap.css
| @@ -91,6 +91,11 @@ h2.entry-date { | |||
| 91 | 91 | ||
| 92 | 92 | article { | |
| 93 | 93 | padding: 1rem 0; | |
| 94 | + | border-bottom: 1px var(--accent) dotted; | |
| 95 | + | ||
| 96 | + | &:last-of-type { | |
| 97 | + | border-bottom: none; | |
| 98 | + | } | |
| 94 | 99 | } | |
| 95 | 100 | ||
| 96 | 101 | footer { | |
| @@ -119,7 +124,7 @@ footer { | |||
| 119 | 124 | grid-area: credit; | |
| 120 | 125 | font-size: .6rem; | |
| 121 | 126 | text-align: right; | |
| 122 | - | border-top: 1px var(--accent) dotted; | |
| 127 | + | border-top: 1px var(--accent) solid; | |
| 123 | 128 | margin-top: 0; | |
| 124 | 129 | padding-top: 1em; | |
| 125 | 130 | text-transform: lowercase; | |
veryroundbird 修订了这个 Gist 1 month ago. 转到此修订
1 file changed, 39 insertions
ruiyis-wordwrap.css
| @@ -124,4 +124,43 @@ footer { | |||
| 124 | 124 | padding-top: 1em; | |
| 125 | 125 | text-transform: lowercase; | |
| 126 | 126 | pointer-events: all; | |
| 127 | + | } | |
| 128 | + | ||
| 129 | + | #reply-on-wordwrap a { | |
| 130 | + | display: inline-block; | |
| 131 | + | padding: .5rem 1rem; | |
| 132 | + | color: var(--background); | |
| 133 | + | background-color: var(--link); | |
| 134 | + | border-radius: 5px; | |
| 135 | + | text-transform: uppercase; | |
| 136 | + | letter-spacing: 1px; | |
| 137 | + | font-size: .8rem; | |
| 138 | + | font-weight: bold; | |
| 139 | + | text-decoration: none; | |
| 140 | + | } | |
| 141 | + | ||
| 142 | + | #entry-nav { | |
| 143 | + | p { | |
| 144 | + | &:after { | |
| 145 | + | content: ""; | |
| 146 | + | display: block; | |
| 147 | + | clear: both; | |
| 148 | + | } | |
| 149 | + | } | |
| 150 | + | ||
| 151 | + | a { | |
| 152 | + | color: var(--foreground); | |
| 153 | + | text-transform: uppercase; | |
| 154 | + | font-size: .8rem; | |
| 155 | + | text-decoration: none; | |
| 156 | + | font-weight: bold; | |
| 157 | + | } | |
| 158 | + | ||
| 159 | + | #entry-older { | |
| 160 | + | float: left; | |
| 161 | + | } | |
| 162 | + | ||
| 163 | + | #entry-newer { | |
| 164 | + | float: right; | |
| 165 | + | } | |
| 127 | 166 | } | |
veryroundbird 修订了这个 Gist 1 month ago. 转到此修订
1 file changed, 127 insertions
ruiyis-wordwrap.css(文件已创建)
| @@ -0,0 +1,127 @@ | |||
| 1 | + | @import url(https://fonts.bunny.net/css?family=jetbrains-mono:100,100i,400,400i,700,700i|victor-mono:400,400i,700,700i); | |
| 2 | + | ||
| 3 | + | :root { | |
| 4 | + | --background: #eff0e9; | |
| 5 | + | --foreground: #333333; | |
| 6 | + | --accent: #9ea195; | |
| 7 | + | --link: #AA6C74; | |
| 8 | + | } | |
| 9 | + | ||
| 10 | + | html { | |
| 11 | + | border-left: 10px var(--accent) solid; | |
| 12 | + | max-width: none; | |
| 13 | + | min-height: 100vh; | |
| 14 | + | } | |
| 15 | + | ||
| 16 | + | * { | |
| 17 | + | box-sizing: border-box; | |
| 18 | + | } | |
| 19 | + | ||
| 20 | + | body { | |
| 21 | + | background-color: var(--background); | |
| 22 | + | color: var(--foreground); | |
| 23 | + | font-family: 'JetBrains Mono', monospace !important; | |
| 24 | + | display: grid; | |
| 25 | + | grid-template-areas: "header" | |
| 26 | + | "nav" | |
| 27 | + | "main" | |
| 28 | + | "credit"; | |
| 29 | + | grid-template-columns: 1fr; | |
| 30 | + | } | |
| 31 | + | ||
| 32 | + | a { | |
| 33 | + | color: var(--link); | |
| 34 | + | } | |
| 35 | + | ||
| 36 | + | header { | |
| 37 | + | grid-area: header; | |
| 38 | + | margin-bottom: 0; | |
| 39 | + | border-bottom: none; | |
| 40 | + | ||
| 41 | + | .avatar { | |
| 42 | + | border-radius: 100%; | |
| 43 | + | width: 3rem; | |
| 44 | + | height: 3rem; | |
| 45 | + | line-height: 3rem; | |
| 46 | + | overflow: hidden; | |
| 47 | + | border: 1px var(--link) solid; | |
| 48 | + | } | |
| 49 | + | } | |
| 50 | + | ||
| 51 | + | #site-title { | |
| 52 | + | font-weight: bold; | |
| 53 | + | font-style: italic; | |
| 54 | + | font-family: 'Victor Mono', monospace; | |
| 55 | + | font-size: 1.5rem; | |
| 56 | + | display: flex; | |
| 57 | + | gap: 10px; | |
| 58 | + | ||
| 59 | + | a { | |
| 60 | + | color: var(--foreground); | |
| 61 | + | text-decoration: none; | |
| 62 | + | ||
| 63 | + | &:nth-child(2):after { | |
| 64 | + | content: "$ strawberry kernel panic"; | |
| 65 | + | font-family: 'JetBrains Mono', monospace; | |
| 66 | + | font-style: normal; | |
| 67 | + | display: block; | |
| 68 | + | font-size: .6rem; | |
| 69 | + | font-weight: 400; | |
| 70 | + | } | |
| 71 | + | } | |
| 72 | + | } | |
| 73 | + | ||
| 74 | + | main { | |
| 75 | + | grid-area: main; | |
| 76 | + | } | |
| 77 | + | ||
| 78 | + | h1.entry-date, | |
| 79 | + | h2.entry-date { | |
| 80 | + | font-size: .6rem; | |
| 81 | + | font-weight: bold; | |
| 82 | + | text-align: right; | |
| 83 | + | text-transform: uppercase; | |
| 84 | + | margin: 0; | |
| 85 | + | ||
| 86 | + | a { | |
| 87 | + | color: var(--foreground); | |
| 88 | + | text-decoration: none; | |
| 89 | + | } | |
| 90 | + | } | |
| 91 | + | ||
| 92 | + | article { | |
| 93 | + | padding: 1rem 0; | |
| 94 | + | } | |
| 95 | + | ||
| 96 | + | footer { | |
| 97 | + | border-top: none; | |
| 98 | + | margin-top: 0; | |
| 99 | + | display: grid; | |
| 100 | + | grid-row: 1 / 5; | |
| 101 | + | grid-column: 1; | |
| 102 | + | grid-template-columns: subgrid; | |
| 103 | + | grid-template-rows: subgrid; | |
| 104 | + | z-index: 0; | |
| 105 | + | pointer-events: none; | |
| 106 | + | } | |
| 107 | + | ||
| 108 | + | #site-nav { | |
| 109 | + | grid-area: nav; | |
| 110 | + | text-transform: uppercase; | |
| 111 | + | font-size: .8rem; | |
| 112 | + | border-top: 1px var(--accent) solid; | |
| 113 | + | border-bottom: 1px var(--accent) solid; | |
| 114 | + | pointer-events: all; | |
| 115 | + | text-align: center; | |
| 116 | + | } | |
| 117 | + | ||
| 118 | + | #site-credit { | |
| 119 | + | grid-area: credit; | |
| 120 | + | font-size: .6rem; | |
| 121 | + | text-align: right; | |
| 122 | + | border-top: 1px var(--accent) dotted; | |
| 123 | + | margin-top: 0; | |
| 124 | + | padding-top: 1em; | |
| 125 | + | text-transform: lowercase; | |
| 126 | + | pointer-events: all; | |
| 127 | + | } | |