diff --git a/src/components/Home.vue b/src/components/Home.vue index 909902aec..3802ac0d9 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -7,9 +7,19 @@
diff --git a/src/components/lists/ShowList.vue b/src/components/lists/ShowList.vue index da82b6adc..87548e3c2 100644 --- a/src/components/lists/ShowList.vue +++ b/src/components/lists/ShowList.vue @@ -30,8 +30,18 @@
diff --git a/src/vikunja.scss b/src/vikunja.scss index 5f154bd75..4562f205e 100644 --- a/src/vikunja.scss +++ b/src/vikunja.scss @@ -98,6 +98,10 @@ h1,h2,h3,h4,h5,h6{ width: 96%; display: inline-block; cursor: pointer; + + .tasktext { + vertical-align: top; + } } input[type="checkbox"] { @@ -176,4 +180,62 @@ h1,h2,h3,h4,h5,h6{ border-width: 0.25em; } } +} + +// Fancy Checkboxes +.fancycheckbox { + display: inline-block; + padding-right: 5px; + padding-top: 3px; + + .check { + cursor: pointer; + position: relative; + margin: auto; + width: 18px; + height: 18px; + -webkit-tap-highlight-color: transparent; + transform: translate3d(0, 0, 0); + + &:hover svg { + stroke: $primary; + } + + svg { + position: relative; + z-index: 1; + fill: none; + stroke-linecap: round; + stroke-linejoin: round; + stroke: #c8ccd4; + stroke-width: 1.5; + transform: translate3d(0, 0, 0); + transition: all 0.2s ease; + + path { + stroke-dasharray: 60; + stroke-dashoffset: 0; + } + + polyline { + stroke-dasharray: 22; + stroke-dashoffset: 66; + } + } + } + + input[type=checkbox]:checked + .check svg { + stroke: $primary; + } + + input[type=checkbox]:checked + .check svg path { + stroke-dashoffset: 60; + transition: all 0.3s linear; + } + + input[type=checkbox]:checked + .check svg polyline { + stroke-dashoffset: 42; + transition: all 0.2s linear; + transition-delay: 0.15s; + } } \ No newline at end of file