Skip to content

Commit

Permalink
Merge pull request #42 from zettajs/state_transition_fix
Browse files Browse the repository at this point in the history
Fixing action transitions on the overview page.
  • Loading branch information
13protons committed Nov 11, 2014
2 parents a09f876 + 7927e2a commit 70d4e79
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/styles/overview.less
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ h1 {
.row {
border-top: 1px solid @gray_5;
overflow-x: hidden;
.expand();
line-height: 1rem;
.switches, .name, .value {
padding: 1rem 0;
Expand Down
16 changes: 16 additions & 0 deletions src/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,22 @@ h1 .back:hover {
overflow-x: hidden;
line-height: 1rem;
}
.devices .row.animate-size {
transition: 400ms cubic-bezier(0.25, 0.25, 0.75, 0.75) all;
/*
height: auto;
max-height: 0;
*/
overflow: hidden;
}
.devices .row.animate-size.closed {
height: auto;
max-height: 0;
}
.devices .row.animate-size.open {
height: auto;
max-height: 100rem;
}
.devices .row .switches,
.devices .row .name,
.devices .row .value {
Expand Down

0 comments on commit 70d4e79

Please sign in to comment.