Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 9305e3f

Browse files
committed
Updates to TailwindCSS v2.0 & PurgeCSS 3.0
1 parent 22d4d0f commit 9305e3f

File tree

8 files changed

+145
-63
lines changed

8 files changed

+145
-63
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"sass-loader": "^10.1.0",
4747
"stylelint": "^13.6.1",
4848
"stylelint-config-standard": "^20.0.0",
49-
"tailwindcss": "^1.2.0",
49+
"tailwindcss": "^2.0.1",
5050
"tailwindcss-aspect-ratio": "^3.0.0",
5151
"tailwindcss-wordpress": "^0.1.1",
5252
"vue-template-compiler": "^2.6.11",
@@ -55,6 +55,7 @@
5555
"dependencies": {
5656
"@barba/core": "^2.9.7",
5757
"@barba/css": "^2.1.15",
58+
"autoprefixer": "^10.0.2",
5859
"colcade": "^0.2.0",
5960
"custom-event-polyfill": "^1.0.7",
6061
"detect-it": "^3.0.5",
@@ -63,6 +64,7 @@
6364
"jquery-accessible-accordion-aria": "^2.6.1",
6465
"js-dom-router": "^1.0",
6566
"lozad": "^1.4.0",
66-
"photoswipe": "^4.1.3"
67+
"photoswipe": "^4.1.3",
68+
"postcss": "^8.1.10"
6769
}
6870
}

resources/assets/styles/blocks/paragraph/_theme.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
p.has-drop-cap {
22
&:not(:focus)::first-letter {
3-
@apply font-hairline not-italic uppercase float-left;
3+
@apply not-italic uppercase float-left;
44

55
font-family: var(--heading-font-family);
66
font-size: 8.4em; // Relative to the text-size

resources/assets/styles/components/_buttons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
}
55

66
%button-base-text {
7-
@apply relative font-medium text-center whitespace-no-wrap select-none cursor-pointer no-underline;
7+
@apply relative font-medium text-center whitespace-nowrap select-none cursor-pointer no-underline;
88
}
99

1010
%button {

resources/assets/styles/header/_slide-out-menu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ header.main-header {
2525
&:not(.mega-menu) ul.sub-menu {
2626
li.hide-children {
2727
& > ul {
28-
@apply opacity-0 translate-x-full top-0 left-0 h-0 w-auto m-0 whitespace-no-wrap overflow-hidden border-0 transition;
28+
@apply opacity-0 translate-x-full top-0 left-0 h-0 w-auto m-0 whitespace-nowrap overflow-hidden border-0 transition;
2929
}
3030
}
3131

resources/assets/styles/header/menus/_desktop-horizontal.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ div.icons-wrap {
3434
// Second menu level / First sub-menu
3535
& > .sub-menu {
3636
@apply invisible fixed right-0 top-full opacity-0 cursor-auto;
37-
@apply flex flex-col whitespace-no-wrap;
37+
@apply flex flex-col whitespace-nowrap;
3838
@apply z-30;
3939
@apply px-6 py-4;
4040
@apply border;

resources/assets/styles/shop/_forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ form.cart {
140140

141141
/* Grouped Product table specific */
142142
td.woocommerce-grouped-product-list-item__quantity {
143-
@apply whitespace-no-wrap;
143+
@apply whitespace-nowrap;
144144

145145
input[type="number"] {
146146
@apply pr-0 w-12 py-0;

tailwind.config.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ module.exports = {
2525
'./resources/assets/scripts/**/*.js',
2626
],
2727
options: {
28-
whitelist: [
29-
],
30-
whitelistPatterns: [
28+
safelist: [
3129
/^z(-.*)?$/,
3230
/^bg(-.*)?$/,
3331
/^text(-.*)?$/,
@@ -107,19 +105,19 @@ module.exports = {
107105

108106
red: {
109107
light: 'var(--color-red-light)',
110-
default: 'var(--color-red)',
108+
DEFAULT: 'var(--color-red)',
111109
dark: 'var(--color-red-dark)',
112110
},
113111

114112
green: {
115113
light: 'var(--color-green-light)',
116-
default: 'var(--color-green)',
114+
DEFAULT: 'var(--color-green)',
117115
dark: 'var(--color-green-dark)',
118116
},
119117

120118
blue: {
121119
light: 'var(--color-blue-light)',
122-
default: 'var(--color-blue)',
120+
DEFAULT: 'var(--color-blue)',
123121
dark: 'var(--color-blue-dark)',
124122
},
125123
},
@@ -505,7 +503,7 @@ module.exports = {
505503
*/
506504

507505
borderWidth: {
508-
default: '1px',
506+
DEFAULT: '1px',
509507
'0': '0',
510508
'2': '2px',
511509
'3': '3px',
@@ -541,7 +539,7 @@ module.exports = {
541539

542540
boxShadow: {
543541
'sm': '0 1px 2px 0 rgba(0, 0, 0, 0.04)',
544-
'default': '0 2px 4px 0 rgba(0,0,0,0.10)',
542+
DEFAULT: '0 2px 4px 0 rgba(0,0,0,0.10)',
545543
'md': '0 4px 8px 0 rgba(0,0,0,0.12), 0 2px 4px 0 rgba(0,0,0,0.08)',
546544
'lg': '0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08)',
547545
'inner': 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',
@@ -676,7 +674,7 @@ module.exports = {
676674
'3': 3,
677675
'4': 4,
678676
'5': 5,
679-
default: 1,
677+
DEFAULT: 1,
680678
},
681679
},
682680

0 commit comments

Comments
 (0)