Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Better movments
Browse files Browse the repository at this point in the history
  • Loading branch information
ngotchac committed Jan 12, 2017
1 parent ed54661 commit edc0674
Show file tree
Hide file tree
Showing 2 changed files with 189 additions and 74 deletions.
36 changes: 31 additions & 5 deletions js/src/views/ParityBar/parityBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
right: 0;

&:hover {
cursor: pointer;
cursor: move;
}
}
}
Expand All @@ -56,12 +56,16 @@
position: fixed;

transition-property: left, top, right, bottom;
transition-duration: 0.1s;
transition-timing-function: ease-in-out;
transition-duration: 0.25s;
transition-timing-function: ease;

&.moving {
transition-duration: 0.05s;
transition-timing-function: ease-in-out;
}
}

.expanded {
right: 1em;
border-radius: 4px 4px 0 0;
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -188,6 +192,28 @@
align-items: center;

&:hover {
cursor: pointer;
cursor: move;
}
}

.dragButton {
width: 1em;
height: 1em;
margin-left: 0.5em;

background-color: white;
opacity: 0.25;
border-radius: 50%;

transition-property: opacity;
transition-duration: 0.1s;
transition-timing-function: ease-in-out;

&:hover {
opacity: 0.5;
}

&.moving {
opacity: 0.75;
}
}
Loading

0 comments on commit edc0674

Please sign in to comment.