Skip to content

Commit

Permalink
add options to style the component
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Nov 3, 2023
1 parent f76ce18 commit a81054b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/euskalmet.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ const AVAILABLE_LANGUAGES = {
const template = document.createElement('template');

template.innerHTML = `
<style type="text/css">
<style>
.euskalmet .euskalmet-forecast-day {
padding: var(--euskalmet-forecast-day-padding, 1rem 1rem);
text-align: var(--euskalmet-forecast-day-text-align, center)
}
.euskalmet-body { display: flex };
</style>
<div class="euskalmet">
<div class="euskalmet-inner">
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</head>

<body class="container">
<script src="./euskalmet.js?"></script>
<script src="./euskalmet.js?p"></script>

<h1>Euskalmeten eguraldi iragarpena zure webgunean</h1>

Expand Down

0 comments on commit a81054b

Please sign in to comment.