-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to update content dynamically and to render the content inside …
…the template (#1) * feat(*): allow to change content inside template dynamically and to render the content * refactor(js): disconnect nodesObserver in disconnectedCallback * fix(styles): CSS var name * refactor(js): use arrow function instead of bind * update docs, demo and remove failing test * test(): with render attribute the code inside the template is rendered
- Loading branch information
Showing
7 changed files
with
326 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
bower_components/ | ||
coverage-reports/ | ||
coverage-reports/ |
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,67 @@ | ||
body { | ||
font-family: Roboto, sans-serif; | ||
background: #E6E8E8; | ||
-webkit-tap-highlight-color: transparent; | ||
} | ||
|
||
h1 { | ||
font-size: 18px; | ||
font-weight: 500; | ||
margin: 0 0 1em; | ||
} | ||
|
||
p { font-weight: 300; } | ||
|
||
code { | ||
font-family: Roboto Mono, monospace; | ||
} | ||
|
||
code-sample { | ||
--code-sample-font-family: Roboto Mono, monospace; | ||
} | ||
|
||
.wrapper { | ||
max-width: 800px; | ||
margin: 40px auto 0; | ||
} | ||
|
||
.wrapper > .demo { | ||
margin-bottom: 40px; | ||
padding: 40px; | ||
background-color: #fff; | ||
} | ||
.demo-text { | ||
text-align: left; | ||
margin: 0 0 20px; | ||
padding: 0; | ||
border-bottom: 1px solid #e0e0e0; | ||
} | ||
|
||
.demo-btn { | ||
font: inherit; | ||
background-color: #EAEDED; | ||
border: 0; | ||
box-shadow: 0 1px 2px rgba(0,0,0,0.25); | ||
height: 40px; | ||
padding: 0 20px; | ||
border-radius: 3px; | ||
} | ||
|
||
.demo-btn:active { | ||
background-color: #D7DBDD; | ||
} | ||
|
||
.title-button { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: flex-end; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.title-button h1 { margin-bottom: 0; } | ||
|
||
.center { text-align: center; } | ||
|
||
.toast-text { line-height: 1.5; font-family: Roboto Mono, monaco, monospace; font-size: 13px; } | ||
.toast-text > span { color: #E9D80E; } | ||
|
Oops, something went wrong.