generated from web-illinois/toolkit-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding page width, using ilw-margin--side
- Loading branch information
1 parent
d355698
commit 71ab3b0
Showing
8 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Columns Component</title> | ||
<link rel="stylesheet" href="https://cdn.brand.illinois.edu/illinois.css"> | ||
<link rel="stylesheet" href="https://dev.toolkit.illinois.edu/ilw-global/3.0.0-alpha/ilw-global.css"> | ||
<script type="module" src="/src/ilw-columns.js"></script> | ||
</head> | ||
|
||
<style> | ||
div.test { | ||
background: white; | ||
border: thin solid black; | ||
padding: 10px; | ||
} | ||
</style> | ||
|
||
|
||
<script> | ||
document.addEventListener("DOMContentLoaded", function(event) { | ||
const params = new URLSearchParams(window.location.search); | ||
document.querySelectorAll("ilw-columns").forEach(component => { | ||
if (params.has('theme')) { | ||
component.setAttribute('theme', params.get('theme')); | ||
} | ||
if (params.has('mode')) { | ||
component.setAttribute('mode', params.get('mode')); | ||
} | ||
if (params.has('width')) { | ||
component.setAttribute('width', params.get('width')); | ||
} | ||
if (params.has('padding')) { | ||
component.setAttribute('padding', params.get('padding')); | ||
} | ||
if (params.has('gap')) { | ||
component.setAttribute('gap', params.get('gap')); | ||
} | ||
if (params.has('reverse')) { | ||
component.setAttribute('reverse', params.get('reverse')); | ||
} | ||
}); | ||
}); | ||
</script> | ||
|
||
<body> | ||
<ilw-columns id="test-item"> | ||
<div class="test"><h3>Lorem ipsum dolor sit amet</h3><p>Consectetur adipiscing elit. <div>Donec posuere dui mauris, eu scelerisque mauris mattis in. Nunc sed leo arcu. Nulla non eleifend sapien.</div> </p></div> | ||
<div class="test"><h3>Lorem ipsum dolor sit amet</h3><p>Nunc sed leo arcu. Nulla non eleifend sapien. </p></div> | ||
</ilw-columns> | ||
</body> | ||
</body> | ||
|
||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters