summaryrefslogtreecommitdiffstats
path: root/tpl/objects/backdrop.pug
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-26 10:38:06 +0200
committerVolpeon <git@volpeon.ink>2024-10-26 10:38:06 +0200
commit6d303e5cef9c3a3c77294b79c4907ec69943226f (patch)
tree8b5ac983cbce581de49647aaf5036d7c1f087ad8 /tpl/objects/backdrop.pug
parentUpdate (diff)
downloadiro-design-6d303e5cef9c3a3c77294b79c4907ec69943226f.tar.gz
iro-design-6d303e5cef9c3a3c77294b79c4907ec69943226f.tar.bz2
iro-design-6d303e5cef9c3a3c77294b79c4907ec69943226f.zip
Lightbox fallback without :target
Diffstat (limited to 'tpl/objects/backdrop.pug')
-rw-r--r--tpl/objects/backdrop.pug5
1 files changed, 4 insertions, 1 deletions
diff --git a/tpl/objects/backdrop.pug b/tpl/objects/backdrop.pug
index 227700c..f577961 100644
--- a/tpl/objects/backdrop.pug
+++ b/tpl/objects/backdrop.pug
@@ -8,7 +8,10 @@ mixin backdrop
8 classes[attributes.class] = true; 8 classes[attributes.class] = true;
9 } 9 }
10 10
11 let styles = { width: '100%', 'min-height': '5em', 'max-height': '40em' } 11 let styles = { width: '100%', 'min-height': '5em' }
12 if (attributes.maxHeight) {
13 styles['max-height'] = '40em';
14 }
12 if (attributes.pad) { 15 if (attributes.pad) {
13 styles['padding'] = '2em'; 16 styles['padding'] = '2em';
14 } 17 }