Skip to content

Commit

Permalink
Fix cta mode decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarol committed Dec 17, 2024
1 parent 6872fb8 commit e4f86f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion eds/blocks/call-to-action/call-to-action.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { div } from '../../scripts/dom-helpers.js';
function decorateBlockSectionMode(block) {
block.classList.forEach((className) => {
if (className.startsWith('calcite-mode-')) {
const mode = className.split('-')[2];
block.closest('.section')
.classList
.add(className);
.add(className, mode);
}
});
}
Expand Down
9 changes: 7 additions & 2 deletions eds/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
--esri-ui-opacity97-inverse: rgb(255 255 255/ 97%);

/* icon filters */
--image-icon-filter: brightness(0) saturate(100%) invert(14%) sepia(10%) saturate(19%) hue-rotate(330deg) brightness(93%) contrast(91%);
--image-icon-filter: brightness(0) saturate(100%) invert(14%) sepia(10%) saturate(19%) hue-rotate(330deg) brightness(93%) contrast(91%);
--image-icon-filter-brand: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(1143%) hue-rotate(177deg) brightness(95%) contrast(101%);

-webkit-font-smoothing: antialiased;
Expand Down Expand Up @@ -334,6 +334,11 @@ main {
color: var(--calcite-ui-text-1);
}

.section.dark {
background-color: var(--calcite-ui-foreground-1);
color: var(--calcite-ui-text-1);
}

.video-iframe-box {
align-items: center;
background-color: var(--esri-ui-opacity80);
Expand Down Expand Up @@ -523,4 +528,4 @@ main {

.padding-trailer-6 {
padding-block-end: 9rem;
}
}

0 comments on commit e4f86f8

Please sign in to comment.