summaryrefslogtreecommitdiffstats
path: root/tpl/layouts
diff options
context:
space:
mode:
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