From 0c12cbc3a39f773add05fe7bb5166d85795ef666 Mon Sep 17 00:00:00 2001 From: Eric Bower Date: Tue, 25 Jun 2024 20:58:28 -0400 Subject: [PATCH] style: add box colors --- static/smol.css | 10 ++++++++++ tmpl/styles.page.tmpl | 39 +++++++++++++++++++++++++++++++++------ 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/static/smol.css b/static/smol.css index 053db20..98e997e 100644 --- a/static/smol.css +++ b/static/smol.css @@ -730,6 +730,16 @@ figure { padding: 0.15rem 0.35rem; } +.box-alert { + border: 2px solid var(--hover); + padding: 0.5rem 0.75rem; +} + +.box-sm-alert { + border: 2px solid var(--hover); + padding: 0.15rem 0.35rem; +} + .list-none { list-style-type: none; } diff --git a/tmpl/styles.page.tmpl b/tmpl/styles.page.tmpl index 5a54c73..503a133 100644 --- a/tmpl/styles.page.tmpl +++ b/tmpl/styles.page.tmpl @@ -10,14 +10,41 @@ {{define "body"}} {{template "nav" .}} + +

Styles

+
-
example
-
example longer
+
+

Pill

+ +
example
+
example longer
+ +
example
+
example longer
+ +
example
+
example longer
+
+ +
+

Box

+ +
+ This is a box! +
+ +
+ This is a smaller box! +
-
example
-
example longer
+
+ This is a box alert! +
-
example
-
example longer
+
+ This is a smaller box alert! +
+
{{end}}