Skip to content
Snippets Groups Projects
Commit 7b11f704 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

update TailwindCSS, add image sized from Maják to safelist

parent daab568d
Branches
Tags
1 merge request!6Update versions & fix vulnerabilities, whitelist Maják image sizing classes
...@@ -28,11 +28,8 @@ ...@@ -28,11 +28,8 @@
@apply @apply
h-auto h-auto
p-3 p-3
pointer-events-auto; pointer-events-auto
md:p-0;
@screen md {
@apply p-0;
}
.modal__container-body { .modal__container-body {
@apply bg-white relative; @apply bg-white relative;
......
.candidate-card-list { .candidate-card-list {
@apply grid grid-flow-row gap-0 row-gap-4; @apply grid grid-flow-row gap-0 gap-y-4;
} }
@responsive {
.candidate-card-list__item-wrapper { .candidate-card-list__item-wrapper {
@apply px-2 border-r border-grey-100; @apply px-2 border-r border-grey-100;
} }
...@@ -14,4 +13,3 @@ ...@@ -14,4 +13,3 @@
.candidate-card-list__item-wrapper--noborder { .candidate-card-list__item-wrapper--noborder {
@apply border-0; @apply border-0;
} }
}
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
} }
.footer-collapsible__toggle { .footer-collapsible__toggle {
@apply flex items-center cursor-pointer; @apply flex items-center cursor-pointer lg:cursor-auto;
&:after { &:after {
content: "\e925"; content: "\e925";
...@@ -40,11 +40,7 @@ ...@@ -40,11 +40,7 @@
transform: rotate(-180deg); transform: rotate(-180deg);
} }
@screen lg {
@apply cursor-auto;
&:after { &:after {
@apply hidden; @apply lg:hidden
}
} }
} }
.hero { .hero {
@apply py-8; @apply py-8 md:py-24;
@screen md {
@apply py-24;
}
} }
.hero--condensed { .hero--condensed {
@apply py-8; @apply py-8 md:py-16;
@screen md {
@apply py-16;
}
} }
.hero--image { .hero--image {
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
} }
.navbar-menu__submenu .navbar-menu__link { .navbar-menu__submenu .navbar-menu__link {
@apply text-lg text-grey-200 font-body normal-case leading-normal pl-4 whitespace-no-wrap; @apply text-lg text-grey-200 font-body normal-case leading-normal pl-4 whitespace-nowrap;
} }
.navbar-menu__link, .navbar-menu__link,
......
...@@ -8,19 +8,11 @@ ...@@ -8,19 +8,11 @@
.subnav-aside__close, .subnav-aside__close,
.subnav-aside__close:hover { .subnav-aside__close:hover {
@apply hidden absolute text-3xl pr-8 cursor-pointer right-0 no-underline; @apply hidden absolute text-3xl pr-8 cursor-pointer right-0 no-underline xl:block;
@screen xl {
@apply block;
}
} }
.subnav-aside__item { .subnav-aside__item {
@apply absolute w-full opacity-0 pointer-events-none transition duration-500 py-4 bg-white elevation-21 z-50; @apply absolute w-full opacity-0 pointer-events-none transition duration-500 py-4 bg-white elevation-21 z-50 lg:py-8;
@screen lg {
@apply py-8;
}
} }
.subnav-aside__item--visible { .subnav-aside__item--visible {
......
...@@ -6,7 +6,6 @@ const lighen = (clr, val) => Color(clr).lighten(val).rgb().string(); ...@@ -6,7 +6,6 @@ const lighen = (clr, val) => Color(clr).lighten(val).rgb().string();
const darken = (clr, val) => Color(clr).darken(val).rgb().string(); const darken = (clr, val) => Color(clr).darken(val).rgb().string();
module.exports = { module.exports = {
purge: {
content: [ content: [
"./source/**/*.mustache", "./source/**/*.mustache",
"./source/**/*.json", "./source/**/*.json",
...@@ -58,8 +57,20 @@ module.exports = { ...@@ -58,8 +57,20 @@ module.exports = {
/^max-h-*/, /^max-h-*/,
/ico--*/, /ico--*/,
], ],
}
}, },
safelist: [
"mx-auto",
"my-6",
"max-w-[800px]",
"lg:max-w-full",
"float-left",
"max-w-[400px]",
"sm:max-w-full",
"float-right",
"ml-4",
"mb-6",
"object-contain",
],
theme: { theme: {
extend: { extend: {
maxWidth: { maxWidth: {
...@@ -212,7 +223,7 @@ module.exports = { ...@@ -212,7 +223,7 @@ module.exports = {
// options // options
} }
), ),
require('tailwindcss-typography')({ require('@tailwindcss/typography')({
// all these options default to the values specified here // all these options default to the values specified here
ellipsis: false, // whether to generate ellipsis utilities ellipsis: false, // whether to generate ellipsis utilities
hyphens: false, // whether to generate hyphenation utilities hyphens: false, // whether to generate hyphenation utilities
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment