diff --git a/.gitignore b/.gitignore index 9ff2e27..4501e29 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,5 @@ Icon? *~ node_modules/ -docs/ package-lock.json npm-debug.log diff --git a/docs/craft-widget-calendar-design-1.js b/docs/craft-widget-calendar-design-1.js new file mode 100644 index 0000000..f13ab0a --- /dev/null +++ b/docs/craft-widget-calendar-design-1.js @@ -0,0 +1,58 @@ + +var CalendarStyle = { + calendar : ` + * { box-sizing:border-box; margin:0; padding:0; } + :host { + } + .root { + box-sizing: border-box; + width: 100%; + height: 100%; + background-color: #fff; + } + .header { width:350px; margin-top:22px; margin-left:auto; margin-right:auto; } + .month { width:350px; margin-top:11px; margin-left:auto; margin-right:auto; } + .navi { width:350px; margin-top: 11px; padding-bottom:22px; margin-left:auto; margin-right:auto; display:flex; } + .prev { margin-left:15px; cursor:pointer; text-align:right; } + .next { margin-right:15px; cursor:pointer; margin-left:auto; text-align:left; } + `, + month : ` + * { box-sizing:border-box; margin:0; padding:0; } + :host { + width: 350px; + } + .root { + display: flex; + flex-direction: row; + flex-wrap: wrap; + width: 350px; + } + `, + day : ` + * { box-sizing:border-box; margin:0; padding:0; } + :host { + width: 50px; + height: 50px; + } + .root { + width: 50px; + text-align: center; + line-height: 50px; + cursor: pointer; + } + .root:hover { + background-color: yellowgreen; + } + .weekday0 { color: #f00; } + .weekday1 { color: #555; } + .weekday2 { color: #555; } + .weekday3 { color: #555; } + .weekday4 { color: #555; } + .weekday5 { color: #555; } + .weekday6 { color: #00f; } + .prev_month { pointer-events: none; opacity: 0.5; } + .this_month { pointer-events: all; } + .next_month { pointer-events: none; opacity: 0.5; } + .today { background-color: #0f0; } + ` +}; diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..0c83001 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,66 @@ + + + + + + + CraftKit Playground + + + + + + + + diff --git a/docs/logo.gif b/docs/logo.gif new file mode 100644 index 0000000..6d75374 Binary files /dev/null and b/docs/logo.gif differ