Skip to content

Commit

Permalink
separate out transitions for sidebar from toggle and wrap to fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jan 2, 2014
1 parent 8451f15 commit 3d53bb8
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions public/css/lanyon.css
Expand Up @@ -265,10 +265,6 @@ a.sidebar-nav-item:focus {
.wrap,
.sidebar,
.sidebar-toggle {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
Expand All @@ -278,6 +274,19 @@ a.sidebar-nav-item:focus {
-ms-perspective: 1000;
perspective: 1000;
}
.sidebar {
-webkit-transition: all .3s ease-in-out;
-moz-transition: all .3s ease-in-out;
-ms-transition: all .3s ease-in-out;
transition: all .3s ease-in-out;
}
.wrap,
.sidebar-toggle {
-webkit-transition: left .3s ease-in-out;
-moz-transition: left .3s ease-in-out;
-ms-transition: left .3s ease-in-out;
transition: left .3s ease-in-out;
}

#sidebar-checkbox:checked + .sidebar {
left: 0;
Expand Down Expand Up @@ -405,14 +414,14 @@ a.pagination-item:hover {
*/

.layout-reverse .wrap,
.layout-reverse .sidebar,
.layout-reverse .sidebar-toggle {
-webkit-transition-property: right;
-moz-transition-property: right;
-ms-transition-property: right;
transition-property: right;
}


.layout-reverse .sidebar {
left: auto;
right: -14rem;
Expand Down

0 comments on commit 3d53bb8

Please sign in to comment.