Skip to content

Commit 0dc2578

Browse files
committed
(#415) Upgrade choco-theme to 0.8.1
This upgrades choco-theme to 0.8.1. With this upgrade, typescript and purgecss were upgraded to remove any possible vulnerabilities. Other than that, no specific changes were made although the compiled code changed slightly due to additional dependencies being upgraded to minor versions by removing and regenerating the yarn.lock file.
1 parent 8af1317 commit 0dc2578

32 files changed

+2100
-2003
lines changed

build/choco-theme.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ const init = async () => {
6161
source: `${repositoryConfig.theme.css}${sourceCss}.min.css`,
6262
destination: `${repository.css}${repository.name}.min.css`,
6363
isFolder: false
64-
},
65-
{
66-
task: 'PT Sans',
67-
source: repositoryConfig.theme.ptSans,
68-
destination: repository.ptSans,
69-
isFolder: true
7064
}
7165
];
7266

@@ -231,14 +225,20 @@ const init = async () => {
231225
);
232226
}
233227

234-
// Font Awesome
228+
// Font Awesome and PT Sans
235229
if (repository.name !== repositoryConfig.zendesk.name) {
236230
parallelTasksInitial.push(
237231
{
238232
task: 'Font Awesome',
239233
source: repositoryConfig.theme.fontAwesome,
240234
destination: repository.fontAwesome,
241235
isFolder: true
236+
},
237+
{
238+
task: 'PT Sans',
239+
source: repositoryConfig.theme.ptSans,
240+
destination: repository.ptSans,
241+
isFolder: true
242242
}
243243
);
244244
}

build/data/repository-config.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ export const repositoryConfig: Record<string, RepositoryConfig> = {
169169
css: 'assets/',
170170
js: 'assets/',
171171
favicons: 'assets/',
172-
ptSans: 'assets/fonts/PT_Sans/',
173172
partials: 'global-partials/',
174173
language: 'hbs'
175174
}
@@ -270,6 +269,9 @@ repositoryConfig.zendesk.purgeCss = {
270269
],
271270
safelist: [
272271
...defaultRepositoryConfig.purgeCss.safelist,
272+
/^fa-(check|triangle-exclamation|info|xmark)/,
273+
/^bg-(secondary|danger|success)/,
274+
/^callout-(danger|success)/,
273275
'main',
274276
'table-bordered',
275277
'table-striped',

dist/css/atcb-overrides.css

+12-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Style: Default
77
*
8-
* Version: 2.6.19
8+
* Version: 2.6.21
99
* Creator: Jens Kuerschner (https://jekuer.com)
1010
* Project: https://github.com/add2cal/add-to-calendar-button
1111
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
@@ -1339,6 +1339,7 @@ a.atcb-modal-btn:not([disabled]):hover {
13391339
filter: drop-shadow(0 0 3px rgba(255 255 255/80%));
13401340
height: auto;
13411341
padding: 8px 0;
1342+
text-align: center;
13421343
transform: translate3d(0, 0, 0);
13431344
width: 100%;
13441345
z-index: 15000000;
@@ -1355,6 +1356,10 @@ a.atcb-modal-btn:not([disabled]):hover {
13551356
position: absolute;
13561357
}
13571358

1359+
.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
1360+
text-align: left;
1361+
}
1362+
13581363
/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
13591364
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
13601365
:host(.atcb-dark) #atcb-reference {
@@ -1368,7 +1373,7 @@ a.atcb-modal-btn:not([disabled]):hover {
13681373
width: 150px;
13691374
max-width: 100%;
13701375
margin: auto;
1371-
display: block;
1376+
display: inline-block;
13721377
text-decoration: none;
13731378
}
13741379

@@ -1421,3 +1426,8 @@ a.atcb-modal-btn:not([disabled]):hover {
14211426
.atcb-button:not([disabled]):focus, .atcb-button:not([disabled]):hover, .atcb-button.atcb-active:not(.atcb-modal-style):not(.atcb-dropoverlay):focus, .atcb-button.atcb-active:not(.atcb-modal-style):not(.atcb-dropoverlay):hover {
14221427
padding: var(--btn-padding-y) var(--btn-padding-x) !important;
14231428
}
1429+
1430+
/* stylelint-disable-next-line selector-id-pattern */
1431+
#atcb-reference {
1432+
display: none !important;
1433+
}

dist/css/atcb-overrides.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)