mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
new drag animation, tiny outline & shadow tweaks
This commit is contained in:
parent
5c4f400a2a
commit
f89037da53
3 changed files with 35 additions and 21 deletions
|
|
@ -71,7 +71,6 @@ setupSortable = (model) ->
|
||||||
dropOnEmpty: false
|
dropOnEmpty: false
|
||||||
cursor: "move"
|
cursor: "move"
|
||||||
items: "li"
|
items: "li"
|
||||||
opacity: 0.4
|
|
||||||
scroll: true
|
scroll: true
|
||||||
axis: 'y'
|
axis: 'y'
|
||||||
update: (e, ui) ->
|
update: (e, ui) ->
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,13 @@ for $stage in $stages
|
||||||
outline: 1px solid rgba(0,0,0,0.15)
|
outline: 1px solid rgba(0,0,0,0.15)
|
||||||
outline-offset: -1px
|
outline-offset: -1px
|
||||||
background-color: white
|
background-color: white
|
||||||
|
// box-shadow: 0 0 3px rgba(0,0,0,0.15)
|
||||||
|
position: relative
|
||||||
|
|
||||||
// the input field
|
// the input field
|
||||||
.addtask-field
|
.addtask-field
|
||||||
display: inline-block
|
display: block
|
||||||
width: 80% // fallback for Safari 5.1
|
width: 100%
|
||||||
width: calc(unquote('100% - 3em'))
|
|
||||||
input
|
input
|
||||||
font-family: 'Lato', sans-serif
|
font-family: 'Lato', sans-serif
|
||||||
border: 0
|
border: 0
|
||||||
|
|
@ -78,11 +79,13 @@ for $stage in $stages
|
||||||
padding: 0 0 0 0.5em
|
padding: 0 0 0 0.5em
|
||||||
width: 100%
|
width: 100%
|
||||||
&:focus
|
&:focus
|
||||||
box-shadow: inset 0 0 3px darken($best, 20%)
|
box-shadow: inset 0 0 3px darken($best, 20%),inset -1px 0 1px darken($best, 30%)
|
||||||
|
|
||||||
// the button
|
// the button
|
||||||
.addtask-btn
|
.addtask-btn
|
||||||
display: inline-block
|
position: absolute
|
||||||
|
right: 0
|
||||||
|
top: 0
|
||||||
// important for overriding bootstrap, remove later
|
// important for overriding bootstrap, remove later
|
||||||
width: 1.81818em !important
|
width: 1.81818em !important
|
||||||
height: 1.88em
|
height: 1.88em
|
||||||
|
|
@ -123,6 +126,12 @@ for $stage in $stages
|
||||||
.task-text
|
.task-text
|
||||||
display: inline
|
display: inline
|
||||||
|
|
||||||
|
// when a task is being dragged
|
||||||
|
.task.ui-sortable-helper {
|
||||||
|
box-shadow: 0 0 3px rgba(0,0,0,0.15), 0 0 5px rgba(0,0,0,0.1)
|
||||||
|
transform: scale(1.05)
|
||||||
|
outline: 1px solid rgba(0,0,0,0.2)
|
||||||
|
}
|
||||||
|
|
||||||
// primary task commands
|
// primary task commands
|
||||||
// ----------------------
|
// ----------------------
|
||||||
|
|
@ -193,22 +202,22 @@ for $stage in $stages
|
||||||
label:after
|
label:after
|
||||||
content: '◯'
|
content: '◯'
|
||||||
display: block
|
display: block
|
||||||
height: 1.875em
|
height: 1.714285714em
|
||||||
width: 1.875em
|
width: 1.714285714em
|
||||||
font-size: 1.6em
|
font-size: 1.75em
|
||||||
line-height: 1.875em
|
line-height: 1.714285714em
|
||||||
text-align: center
|
text-align: center
|
||||||
color: black
|
color: black
|
||||||
opacity: 0.1
|
opacity: 0.2
|
||||||
|
|
||||||
// hint at completed icon
|
// hint at completed icon
|
||||||
label:hover:after,
|
label:hover:after,
|
||||||
label:focus:after
|
label:focus:after
|
||||||
content: '¬'
|
content: '¬'
|
||||||
font-size: 3em
|
font-size: 3.2em
|
||||||
line-height: 1em
|
line-height: 0.9375em
|
||||||
height: 1em
|
height: 0.9375em
|
||||||
width: 1.2em
|
width: 1.15em
|
||||||
text-align: center
|
text-align: center
|
||||||
transform: rotate(135deg)
|
transform: rotate(135deg)
|
||||||
opacity: 0.5 !important
|
opacity: 0.5 !important
|
||||||
|
|
@ -218,10 +227,10 @@ for $stage in $stages
|
||||||
// completed icon
|
// completed icon
|
||||||
input[type=checkbox]:checked + label:after
|
input[type=checkbox]:checked + label:after
|
||||||
content: '¬'
|
content: '¬'
|
||||||
font-size: 3em
|
font-size: 3.2em
|
||||||
line-height: 1em
|
line-height: 0.9375em
|
||||||
height: 1em
|
height: 0.9375em
|
||||||
width: 1.2em
|
width: 1.15em
|
||||||
text-align: center
|
text-align: center
|
||||||
transform: rotate(135deg)
|
transform: rotate(135deg)
|
||||||
opacity: 0.75
|
opacity: 0.75
|
||||||
|
|
@ -317,7 +326,12 @@ for $stage in $stages
|
||||||
&:hover, &:focus
|
&:hover, &:focus
|
||||||
background-color: lighten($best, 40%)
|
background-color: lighten($best, 40%)
|
||||||
|
|
||||||
// todo context switching
|
|
||||||
|
|
||||||
|
// todos ui
|
||||||
|
// --------
|
||||||
|
|
||||||
|
// context switching
|
||||||
.context-enabled
|
.context-enabled
|
||||||
.display-context-dependant,
|
.display-context-dependant,
|
||||||
.task-list li
|
.task-list li
|
||||||
|
|
@ -331,6 +345,7 @@ for $stage in $stages
|
||||||
.show-for-uncompleted, .uncompleted
|
.show-for-uncompleted, .uncompleted
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
|
|
||||||
// nav tabs
|
// nav tabs
|
||||||
.nav-tabs
|
.nav-tabs
|
||||||
margin-top: 1.5em
|
margin-top: 1.5em
|
||||||
|
|
|
||||||
|
|
@ -140,8 +140,8 @@
|
||||||
<!-- Templates -->
|
<!-- Templates -->
|
||||||
<newTask:>
|
<newTask:>
|
||||||
<form class="addtask-form form-inline new-task-form" id="new-{@type}" data-task-type="{@type}" x-bind="submit:addTask">
|
<form class="addtask-form form-inline new-task-form" id="new-{@type}" data-task-type="{@type}" x-bind="submit:addTask">
|
||||||
<input class="addtask-btn" type="submit" value="+">
|
|
||||||
<span class="addtask-field"><input value="{@inputValue}" type="text" name="new-task" placeholder="{@placeHolder}"/></span>
|
<span class="addtask-field"><input value="{@inputValue}" type="text" name="new-task" placeholder="{@placeHolder}"/></span>
|
||||||
|
<input class="addtask-btn" type="submit" value="+">
|
||||||
</form>
|
</form>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue