ruiyis-wordwrap.css
· 2.8 KiB · CSS
Raw
@import url(https://fonts.bunny.net/css?family=jetbrains-mono:100,100i,400,400i,700,700i|victor-mono:400,400i,700,700i);
:root {
--background: #eff0e9;
--foreground: #333333;
--accent: #9ea195;
--link: #AA6C74;
}
html {
border-left: 10px var(--accent) solid;
max-width: none;
min-height: 100vh;
}
* {
box-sizing: border-box;
}
body {
background-color: var(--background);
color: var(--foreground);
font-family: 'JetBrains Mono', monospace !important;
display: grid;
grid-template-areas: "header"
"nav"
"main"
"credit";
grid-template-columns: 1fr;
}
a {
color: var(--link);
}
header {
grid-area: header;
margin-bottom: 0;
border-bottom: none;
.avatar {
border-radius: 100%;
width: 3rem;
height: 3rem;
line-height: 3rem;
overflow: hidden;
border: 1px var(--link) solid;
}
}
#site-title {
font-weight: bold;
font-style: italic;
font-family: 'Victor Mono', monospace;
font-size: 1.5rem;
display: flex;
gap: 10px;
a {
color: var(--foreground);
text-decoration: none;
&:nth-child(2):after {
content: "$ strawberry kernel panic";
font-family: 'JetBrains Mono', monospace;
font-style: normal;
display: block;
font-size: .6rem;
font-weight: 400;
}
}
}
main {
grid-area: main;
}
h1.entry-date,
h2.entry-date {
font-size: .6rem;
font-weight: bold;
text-align: right;
text-transform: uppercase;
margin: 0;
a {
color: var(--foreground);
text-decoration: none;
}
}
article {
padding: 1rem 0;
border-bottom: 1px var(--accent) dotted;
&:last-of-type {
border-bottom: none;
}
}
footer {
border-top: none;
margin-top: 0;
display: grid;
grid-row: 1 / 5;
grid-column: 1;
grid-template-columns: subgrid;
grid-template-rows: subgrid;
z-index: 0;
pointer-events: none;
}
#site-nav {
grid-area: nav;
text-transform: uppercase;
font-size: .8rem;
border-top: 1px var(--accent) solid;
border-bottom: 1px var(--accent) solid;
pointer-events: all;
text-align: center;
}
#site-credit {
grid-area: credit;
font-size: .6rem;
text-align: right;
border-top: 1px var(--accent) solid;
margin-top: 0;
padding-top: 1em;
text-transform: lowercase;
pointer-events: all;
}
#reply-on-wordwrap a {
display: inline-block;
padding: .5rem 1rem;
color: var(--background);
background-color: var(--link);
border-radius: 5px;
text-transform: uppercase;
letter-spacing: 1px;
font-size: .8rem;
font-weight: bold;
text-decoration: none;
}
#entry-nav {
p {
&:after {
content: "";
display: block;
clear: both;
}
}
a {
color: var(--foreground);
text-transform: uppercase;
font-size: .8rem;
text-decoration: none;
font-weight: bold;
}
#entry-older {
float: left;
}
#entry-newer {
float: right;
}
}
| 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 | border-bottom: 1px var(--accent) dotted; |
| 95 | |
| 96 | &:last-of-type { |
| 97 | border-bottom: none; |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | footer { |
| 102 | border-top: none; |
| 103 | margin-top: 0; |
| 104 | display: grid; |
| 105 | grid-row: 1 / 5; |
| 106 | grid-column: 1; |
| 107 | grid-template-columns: subgrid; |
| 108 | grid-template-rows: subgrid; |
| 109 | z-index: 0; |
| 110 | pointer-events: none; |
| 111 | } |
| 112 | |
| 113 | #site-nav { |
| 114 | grid-area: nav; |
| 115 | text-transform: uppercase; |
| 116 | font-size: .8rem; |
| 117 | border-top: 1px var(--accent) solid; |
| 118 | border-bottom: 1px var(--accent) solid; |
| 119 | pointer-events: all; |
| 120 | text-align: center; |
| 121 | } |
| 122 | |
| 123 | #site-credit { |
| 124 | grid-area: credit; |
| 125 | font-size: .6rem; |
| 126 | text-align: right; |
| 127 | border-top: 1px var(--accent) solid; |
| 128 | margin-top: 0; |
| 129 | padding-top: 1em; |
| 130 | text-transform: lowercase; |
| 131 | pointer-events: all; |
| 132 | } |
| 133 | |
| 134 | #reply-on-wordwrap a { |
| 135 | display: inline-block; |
| 136 | padding: .5rem 1rem; |
| 137 | color: var(--background); |
| 138 | background-color: var(--link); |
| 139 | border-radius: 5px; |
| 140 | text-transform: uppercase; |
| 141 | letter-spacing: 1px; |
| 142 | font-size: .8rem; |
| 143 | font-weight: bold; |
| 144 | text-decoration: none; |
| 145 | } |
| 146 | |
| 147 | #entry-nav { |
| 148 | p { |
| 149 | &:after { |
| 150 | content: ""; |
| 151 | display: block; |
| 152 | clear: both; |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | a { |
| 157 | color: var(--foreground); |
| 158 | text-transform: uppercase; |
| 159 | font-size: .8rem; |
| 160 | text-decoration: none; |
| 161 | font-weight: bold; |
| 162 | } |
| 163 | |
| 164 | #entry-older { |
| 165 | float: left; |
| 166 | } |
| 167 | |
| 168 | #entry-newer { |
| 169 | float: right; |
| 170 | } |
| 171 | } |