diff --git a/SlimElement.js b/SlimElement.js index 50db72b..d069747 100644 --- a/SlimElement.js +++ b/SlimElement.js @@ -3,7 +3,7 @@ (function() { - var css = 'slim-component { all: inherit; }', + var css = 'slim-component, s-repeat { all: inherit; padding: 0; margin: 0; background: none; }', head = document.head || document.getElementsByTagName('head')[0], style = document.createElement('style'); diff --git a/example/Kanban/KanbanDemo.html b/example/Kanban/KanbanDemo.html index 32fd144..a73a098 100644 --- a/example/Kanban/KanbanDemo.html +++ b/example/Kanban/KanbanDemo.html @@ -6,13 +6,13 @@ - - + + @@ -21,29 +21,12 @@ body, html { width: 100%; height: 100%; + margin: 0; + padding: 0; } - kanban-app { - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: space-between; - width: 100%; - } - - slim-element { - display: inline-block; - } - - kanban-list { - background-color: #afafaf; - display: block; - float: left; - text-align: center; - width: 10em; - flex-direction: column; - align-items: center; - margin: 0 1em 1em 0 + * { + box-sizing: content-box; } diff --git a/example/Kanban/kanban-app.html b/example/Kanban/kanban-app.html index 62abb4b..3882df9 100644 --- a/example/Kanban/kanban-app.html +++ b/example/Kanban/kanban-app.html @@ -14,4 +14,15 @@ }) - \ No newline at end of file + + + \ No newline at end of file diff --git a/example/Kanban/kanban-column.html b/example/Kanban/kanban-column.html new file mode 100644 index 0000000..a814fe1 --- /dev/null +++ b/example/Kanban/kanban-column.html @@ -0,0 +1,40 @@ + + + \ No newline at end of file diff --git a/example/Kanban/kanban-column.js b/example/Kanban/kanban-column.js deleted file mode 100644 index 01a8e00..0000000 --- a/example/Kanban/kanban-column.js +++ /dev/null @@ -1,25 +0,0 @@ -;(function(){ - - - Slim('kanban-column', class extends SlimBaseElement { - - - get template() { - return `