Skip to content

Commit

Permalink
Added css to load footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Snehal Sonawane authored and bandana147 committed Jul 23, 2024
1 parent dc85274 commit 4cf650b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/navigation/bootstrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default async function bootstrapBlock(miloConfigs, blockConfig) {
const { name, targetEl } = blockConfig;
const { setConfig, createTag, loadLink } = await import(`${miloLibs}/utils/utils.js`);
setConfig({ ...miloConfigs });
const styles = [`${miloLibs}/blocks/${name}/${name}.css`, `${miloLibs}/navigation/styles.css`];
const styles = [`${miloLibs}/blocks/${name}/${name}.css`, `${miloLibs}/navigation/navigation.css`];
styles.forEach((url) => loadLink(url, { rel: 'stylesheet' }));
const { default: initBlock } = await import(`${miloLibs}/blocks/${name}/${name}.js`);

Expand Down
21 changes: 21 additions & 0 deletions libs/navigation/navigation.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Extracting the essential styles required for rendering the component independently */
.global-footer, .dialog-modal {
font-family: 'Adobe Clean', adobe-clean, 'Trebuchet MS', sans-serif;
line-height: 27px;
color: #2c2c2c;
word-wrap: break-word;
-webkit-font-smoothing: antialiased;
}

.global-footer a, .dialog-modal a {
text-decoration: none;
}

.dialog-modal a {
color: #035FE6;
}

.global-footer img {
max-width: 100%;
height: auto;
}

0 comments on commit 4cf650b

Please sign in to comment.