Skip to content

Commit

Permalink
fix minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
drecodeam committed Sep 1, 2018
1 parent 097a6c0 commit b213f64
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Stors",
"version": "0.3.2",
"version": "0.3.3",
"description": "A simple task manager for a day",
"homepage": "https://insert.black",
"repository": "https://github.com/drecodeam/stors",
Expand Down
3 changes: 3 additions & 0 deletions src/app/components/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
[class.ticked] = "!!item.isTicked"
[class.active] = "(item.id === currentTaskID)"
>
<div class="play-icon">
<i class="ion ion-ios-play"></i>
</div>
<div class="item-time">{{item.displayTime}}</div>
<div class="item-separator"> | </div>
<div class="item-title">{{item.name}}</div>
Expand Down
25 changes: 24 additions & 1 deletion src/app/components/home/home.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,19 @@ $haiti : #170139;
.task-list-item {
position: relative;
overflow: hidden;
padding: 1.5rem 2rem;
padding: 1.5rem 1rem;
color: #f1f1f1;
font-family: $font-sans-serif;
transition: 0.2s all ease-in-out;
line-height: 1.5rem;

.play-icon {
display: inline-block;
padding-right: 1rem;
opacity: 0;
transition: 0.4s all ease-in-out;
}

.done-icon {
position: absolute;
right: 3rem;
Expand Down Expand Up @@ -156,9 +164,15 @@ $haiti : #170139;
font-weight: 300;
opacity: 0.8;
padding-left: 0.25rem;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
vertical-align: middle;
max-width: 220px;
}
.item-progress-bar {
bottom: 15%;
left: 2.5rem;
position: absolute;
overflow: hidden;
background: $pelorous;
Expand All @@ -171,6 +185,9 @@ $haiti : #170139;
&.ticked {
text-decoration: line-through;
opacity: 0.25;
.play-icon {
display: none;
}
.active-icon {
display: none;
}
Expand All @@ -194,6 +211,9 @@ $haiti : #170139;
.done-icon {
opacity: 1;
}
.play-icon {
opacity: 1;
}
.delete-icon {
opacity: 1;
}
Expand All @@ -209,6 +229,9 @@ $haiti : #170139;
.item-separator {
animation: animate-progress 2s linear infinite;
}
.play-icon {
opacity: 1;
}
}
}
}
Expand Down

0 comments on commit b213f64

Please sign in to comment.