Skip to content

Commit

Permalink
(#415) Upgrade choco-theme to 0.8.1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
st3phhays committed Oct 2, 2024
1 parent 8af1317 commit afd5f7d
Show file tree
Hide file tree
Showing 32 changed files with 2,087 additions and 1,990 deletions.
14 changes: 7 additions & 7 deletions build/choco-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ const init = async () => {
source: `${repositoryConfig.theme.css}${sourceCss}.min.css`,
destination: `${repository.css}${repository.name}.min.css`,
isFolder: false
},
{
task: 'PT Sans',
source: repositoryConfig.theme.ptSans,
destination: repository.ptSans,
isFolder: true
}
];

Expand Down Expand Up @@ -231,14 +225,20 @@ const init = async () => {
);
}

// Font Awesome
// Font Awesome and PT Sans
if (repository.name !== repositoryConfig.zendesk.name) {
parallelTasksInitial.push(
{
task: 'Font Awesome',
source: repositoryConfig.theme.fontAwesome,
destination: repository.fontAwesome,
isFolder: true
},
{
task: 'PT Sans',
source: repositoryConfig.theme.ptSans,
destination: repository.ptSans,
isFolder: true
}
);
}
Expand Down
4 changes: 3 additions & 1 deletion build/data/repository-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ export const repositoryConfig: Record<string, RepositoryConfig> = {
css: 'assets/',
js: 'assets/',
favicons: 'assets/',
ptSans: 'assets/fonts/PT_Sans/',
partials: 'global-partials/',
language: 'hbs'
}
Expand Down Expand Up @@ -270,6 +269,9 @@ repositoryConfig.zendesk.purgeCss = {
],
safelist: [
...defaultRepositoryConfig.purgeCss.safelist,
/^fa-(check|triangle-exclamation|info|xmark)/,
/^bg-(secondary|danger|success)/,
/^callout-(danger|success)/,
'main',
'table-bordered',
'table-striped',
Expand Down
14 changes: 12 additions & 2 deletions dist/css/atcb-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Style: Default
*
* Version: 2.6.19
* Version: 2.6.21
* Creator: Jens Kuerschner (https://jekuer.com)
* Project: https://github.com/add2cal/add-to-calendar-button
* License: Elastic License 2.0 (ELv2) (https://github.com/add2cal/add-to-calendar-button/blob/main/LICENSE.txt)
Expand Down Expand Up @@ -1339,6 +1339,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255/80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1355,6 +1356,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1368,7 +1373,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down Expand Up @@ -1421,3 +1426,8 @@ a.atcb-modal-btn:not([disabled]):hover {
.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 {
padding: var(--btn-padding-y) var(--btn-padding-x) !important;
}

/* stylelint-disable-next-line selector-id-pattern */
#atcb-reference {
display: none !important;
}
2 changes: 1 addition & 1 deletion dist/css/atcb-overrides.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit afd5f7d

Please sign in to comment.