From d280da354d5acce8b404be0aae9fb90d38b39c8c Mon Sep 17 00:00:00 2001 From: xaralis <filip.varecha@fragaria.cz> Date: Thu, 17 Sep 2020 10:55:05 +0200 Subject: [PATCH] Expose .copyleft, whitelist few classes --- source/css/style.pcss | 12 ++++++++---- source/css/utils.pcss | 8 -------- tailwind.config.js | 11 ++++++++--- 3 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 source/css/utils.pcss diff --git a/source/css/style.pcss b/source/css/style.pcss index b8c3e15..132c373 100644 --- a/source/css/style.pcss +++ b/source/css/style.pcss @@ -101,7 +101,11 @@ a.icon-link:hover { @apply hidden; } -/** - * Custom utilities - */ -@import "./utils.pcss"; +.copyleft { + transform: matrix(-1, 0, 0, 1, 0, 0) !important; +} + +.inline-block-nogap { + /* Avoid gaps between inline-block elements */ + font-size: 0; +} diff --git a/source/css/utils.pcss b/source/css/utils.pcss deleted file mode 100644 index f46f552..0000000 --- a/source/css/utils.pcss +++ /dev/null @@ -1,8 +0,0 @@ -.copyleft { - transform: matrix(-1, 0, 0, 1, 0, 0) !important; -} - -.inline-block-nogap { - /* Avoid gaps between inline-block elements */ - font-size: 0; -} diff --git a/tailwind.config.js b/tailwind.config.js index aa2f1e5..4a6b855 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -17,17 +17,22 @@ module.exports = { options: { whitelistPatterns: [ /^((sm|md|lg|xl)\:)?w-\d\d?/, + /^((sm|md|lg|xl)\:)?w-screen/, /^((sm|md|lg|xl)\:)?h-\d\d?/, + /^((sm|md|lg|xl)\:)?h-screen/, /^((sm|md|lg|xl)\:)?m.?-\d\d?/, + /^((sm|md|lg|xl)\:)?m.?-auto?/, /^((sm|md|lg|xl)\:)?p.?-\d\d?/, /^((sm|md|lg|xl)\:)?grid-cols-*/, /^((sm|md|lg|xl)\:)?col-span-*/, /^((sm|md|lg|xl)\:)?row-span-*/, - /^((sm|md|lg|xl)\:)?grid-flow-*/, // grid flow + /^((sm|md|lg|xl)\:)?float-*/, + /^((sm|md|lg|xl)\:)?grid-flow-*/, /^((sm|md|lg|xl)\:)?head-*/, + /^((sm|md|lg|xl)\:)?clearfix/, /^text-*/, - /^max-w-*/, // maximum width - /ico--*/, // icons + /^max-w-*/, + /ico--*/, ], } }, -- GitLab