diff --git a/components/s-button.html b/components/s-button.js similarity index 85% rename from components/s-button.html rename to components/s-button.js index 1f4fd77..4e1b28e 100644 --- a/components/s-button.html +++ b/components/s-button.js @@ -1,6 +1,5 @@ - \ No newline at end of file +}()) \ No newline at end of file diff --git a/components/s-container.js b/components/s-container.js index 3a5214e..eb00cc7 100644 --- a/components/s-container.js +++ b/components/s-container.js @@ -1,6 +1,6 @@ +(function() { - document.registerElement('s-container', class extends SlimBaseElement { + Slim('s-container', class extends SlimBaseElement { onAttributeChanged(attribute, oldVal, newVal) { switch (attribute) { diff --git a/components/s-input.html b/components/s-input.js similarity index 93% rename from components/s-input.html rename to components/s-input.js index c98ac7e..0628faa 100644 --- a/components/s-input.html +++ b/components/s-input.js @@ -1,5 +1,5 @@ - \ No newline at end of file +})() \ No newline at end of file diff --git a/components/s-repeat.html b/components/s-repeat.js similarity index 88% rename from components/s-repeat.html rename to components/s-repeat.js index dcafd17..b67bfbc 100644 --- a/components/s-repeat.html +++ b/components/s-repeat.js @@ -1,8 +1,6 @@ - \ No newline at end of file + })() \ No newline at end of file diff --git a/components/s-states.js b/components/s-states.js index 16b0f7f..1edc0e6 100644 --- a/components/s-states.js +++ b/components/s-states.js @@ -2,7 +2,7 @@ const template = `
` - document.registerElement('s-states', class extends SlimBaseElement { + Slim('s-states', class extends SlimBaseElement { get updateOnAttributes() { return ['current-state'] diff --git a/example/Components/button-demo.html b/example/Components/button-demo.html index ef06b41..6ab58a2 100644 --- a/example/Components/button-demo.html +++ b/example/Components/button-demo.html @@ -1,4 +1,4 @@ - + - - - + + + @@ -27,8 +27,9 @@ body { padding: 0; + margin: 0; + margin-bottom: 5em; font-size: 1.5em; - padding-top: 6em; background-color: #5aa99e; font-family: "Roboto Slab", Sans-serif; } @@ -44,6 +45,17 @@ align-items: center; justify-content: space-around; padding: 2em; + margin: 0em; + margin-bottom: 4em; + } + + h6 p { + text-align: left; + padding-left: 1.6em; + } + + h6 img { + margin-left: 5em; } h2, h3, h4, h5 { @@ -79,20 +91,34 @@ letter-spacing: 0.015em; background-color: lightblue; } + + span.license { + font-family: Sans-serif; + position: fixed; + bottom: 0; + text-align: center; + width: 100%; + display: inline-block; + background-color: white; + padding: 0.5em; + font-size: 0.8em; + } +© 2016 Avichay Eyal. All code provided is open source under the MIT LicenseWith es6 and slim you could write native web components double-time with no hassle of using external libraries that affect your workflow
With es6 and slim you could write native web components double-time with no hassle of using external libraries that affect your workflow
+