summaryrefslogtreecommitdiff
path: root/assets/css/components
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-01-20 12:23:38 +0800
committerEltrac <hi@guhub.cn>2025-01-20 12:23:38 +0800
commitce42e88b0572f7089dfb89ef91b98c4e49ade812 (patch)
tree37d540d597b50a002a0c557a59d93e15f92f296f /assets/css/components
parent5ee643bfe16cdafe114b99ddd02dcaa167d42cd0 (diff)
feat(theme): centered and small images
Diffstat (limited to 'assets/css/components')
-rw-r--r--assets/css/components/_utility.scss18
1 files changed, 18 insertions, 0 deletions
diff --git a/assets/css/components/_utility.scss b/assets/css/components/_utility.scss
index fdcda859..1075d2ad 100644
--- a/assets/css/components/_utility.scss
+++ b/assets/css/components/_utility.scss
@@ -9,3 +9,21 @@
filter: invert(1)
}
}
+
+figure {
+ &.small {
+ width: 300px;
+ }
+ &.card {
+ width: fit-content;
+ img {
+ height: 18rem;
+ }
+ }
+ &.center {
+ margin: 0 auto;
+ figcaption {
+ text-align: center
+ }
+ }
+}