From 62c3ca9a9f51a8bbca93e5e003d5feb052806a2f Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 5 Feb 2022 09:36:00 +0100 Subject: Init --- tpl/layouts/container.pug | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tpl/layouts/container.pug (limited to 'tpl/layouts/container.pug') 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 @@ +mixin container + - + let classes = { + 'l-container': true, + 'l-container--padH': attributes.padH, + 'l-container--padV': attributes.padV, + 'l-container--narrow': attributes.narrow, + 'l-container--smNarrow': attributes.smNarrow, + 'l-container--inPage': attributes.inPage, + 'l-container--themed': !!attributes.theme + } + if (!!attributes.theme) { + classes['t-' + attributes.theme] = true + } + + div(class=classes) + .l-container__inner + block -- cgit v1.2.3-54-g00ecf