about summary refs log tree commit diff
path: root/served/styles/writing.css
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2024-12-08 06:53:59 -0600
committergennyble <gen@nyble.dev>2024-12-08 06:53:59 -0600
commit88c79031efd681aaf96c2148de52221baadc1fb7 (patch)
tree8cb0ba7b8c5135c468014e4d1d167af0ff933c63 /served/styles/writing.css
parent153bd04b88e6b1ea299dab4f3bbff2b45ceb82ff (diff)
download∞-88c79031efd681aaf96c2148de52221baadc1fb7.tar.gz
∞-88c79031efd681aaf96c2148de52221baadc1fb7.zip
2024-12-08 06:53 CST
Diffstat (limited to 'served/styles/writing.css')
-rw-r--r--served/styles/writing.css77
1 files changed, 77 insertions, 0 deletions
diff --git a/served/styles/writing.css b/served/styles/writing.css
new file mode 100644
index 0000000..527d434
--- /dev/null
+++ b/served/styles/writing.css
@@ -0,0 +1,77 @@
+.sized {
+	--page-width: 36rem;
+}
+
+body {
+	line-height: 1.6;
+}
+
+h1 {
+	line-height: 1;
+}
+
+h2,
+h3 {
+	line-height: 1;
+	margin-top: 2rem;
+}
+
+a {
+	color: var(--text-link);
+}
+
+a:visited {
+	color: var(--text-link-visited);
+}
+
+aside {
+	border: 1px dashed var(--text);
+	border-radius: 1rem;
+	padding: .25rem .5rem;
+	width: 90%;
+	margin: 1.25rem auto;
+}
+
+img {
+	display: block;
+	width: 100%;
+
+	margin: 1.25rem auto;
+}
+
+code {
+	font-size: 1rem;
+}
+
+details {
+	position: relative;
+	padding: 0.5rem 1rem;
+	width: 80%;
+	margin: 1.25rem auto;
+}
+
+details::before {
+	content: '';
+	position: absolute;
+	top: 0;
+	left: 0;
+	width: 2rem;
+	height: 1rem;
+	border-width: 1px 0 0 1px;
+	border-color: var(--text);
+	border-style: solid;
+	z-index: -1;
+}
+
+details::after {
+	content: '';
+	position: absolute;
+	bottom: 0;
+	right: 0;
+	width: 2rem;
+	height: 1rem;
+	border-width: 0 1px 1px 0;
+	border-color: var(--text);
+	border-style: solid;
+	z-index: -1;
+}
\ No newline at end of file