diff options
Diffstat (limited to 'src/app/components/image/index.css')
| -rw-r--r-- | src/app/components/image/index.css | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/app/components/image/index.css b/src/app/components/image/index.css index 86ba44e..034a509 100644 --- a/src/app/components/image/index.css +++ b/src/app/components/image/index.css @@ -1,12 +1,8 @@ -:host { - --src: attr(src) -} - .image { - width: 100%; - padding-bottom: 100%; + width: calc(100% / var(--gallery-splits)); + padding-bottom: calc(100% / var(--gallery-splits)); height: 0; - background-image: url("" ++ var(--src)); + background: red; background-size: cover; background-position: center; } |