This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Altering the nav drawer to response to touch and work for prefixed tr…
…ansforms
- Loading branch information
Matt Gaunt
committed
Nov 26, 2015
1 parent
14503bc
commit 0eb960c
Showing
4 changed files
with
77 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,15 +47,21 @@ | |
|
||
.side-nav__content { | ||
background: #FAFAFA; | ||
width: 304px; | ||
width: 80%; | ||
max-width: 304px; | ||
height: 100%; | ||
This comment has been minimized.
Sorry, something went wrong.
addyosmani
Contributor
|
||
overflow: hidden; | ||
position: relative; | ||
|
||
box-shadow: 0 0 4px rgba(0, 0, 0, .14), | ||
0 4px 8px rgba(0, 0, 0, .28); | ||
|
||
will-change: transform; | ||
transform: translateX(-102%); | ||
|
||
&.side-nav--visible { | ||
transform: translateX(0px); | ||
} | ||
} | ||
|
||
|
||
|
@@ -89,7 +95,7 @@ | |
.side-nav__version { | ||
position: absolute; | ||
bottom: 16px; | ||
right: 16px; | ||
left: 16px; | ||
font-size: 14px; | ||
opacity: 0.54; | ||
} | ||
|
What factors did we take into deciding on 3 here? :)