aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/image/index.css
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-19 18:03:59 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-19 18:03:59 +0200
commit65300a13dcd11037218bf8ba61efd8ca19e5920e (patch)
tree7c65fcc708ec43be8386c31fec191ea8c0c9a1bf /src/app/components/image/index.css
parentb34ebbe68ce399bc754f2688845f380a7b47bd60 (diff)
add favicon
Diffstat (limited to 'src/app/components/image/index.css')
-rw-r--r--src/app/components/image/index.css12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/components/image/index.css b/src/app/components/image/index.css
index e69de29..86ba44e 100644
--- a/src/app/components/image/index.css
+++ b/src/app/components/image/index.css
@@ -0,0 +1,12 @@
+:host {
+ --src: attr(src)
+}
+
+.image {
+ width: 100%;
+ padding-bottom: 100%;
+ height: 0;
+ background-image: url("" ++ var(--src));
+ background-size: cover;
+ background-position: center;
+}