summaryrefslogtreecommitdiffstats
path: root/tpl/layouts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-05 09:36:00 +0100
committerVolpeon <git@volpeon.ink>2022-02-05 09:36:00 +0100
commit62c3ca9a9f51a8bbca93e5e003d5feb052806a2f (patch)
treeaa67b5f409be9e318a6b55b12250699848bc2ae0 /tpl/layouts
downloadiro-design-62c3ca9a9f51a8bbca93e5e003d5feb052806a2f.tar.gz
iro-design-62c3ca9a9f51a8bbca93e5e003d5feb052806a2f.tar.bz2
iro-design-62c3ca9a9f51a8bbca93e5e003d5feb052806a2f.zip
Init
Diffstat (limited to 'tpl/layouts')
-rw-r--r--tpl/layouts/container.pug18
1 files changed, 18 insertions, 0 deletions
diff --git a/tpl/layouts/container.pug b/tpl/layouts/container.pug
new file mode 100644
index 0000000..75e3b36
--- /dev/null
+++ b/tpl/layouts/container.pug
@@ -0,0 +1,18 @@
1mixin container
2 -
3 let classes = {
4 'l-container': true,
5 'l-container--padH': attributes.padH,
6 'l-container--padV': attributes.padV,
7 'l-container--narrow': attributes.narrow,
8 'l-container--smNarrow': attributes.smNarrow,
9 'l-container--inPage': attributes.inPage,
10 'l-container--themed': !!attributes.theme
11 }
12 if (!!attributes.theme) {
13 classes['t-' + attributes.theme] = true
14 }
15
16 div(class=classes)
17 .l-container__inner
18 block