Skip to content

Commit

Permalink
revert responsive-ness changes; needs more consideration.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jan 28, 2013
1 parent 3eece6f commit 82c1a6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/css/g-menu-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
automatically we'll need to add a feature to detect if we're in a responsive
container */
@media screen and (max-width: 800px) {
.responsive .arrow-border, .arrow {
.arrow-border, .arrow {
display: none;
}

.responsive #menu {
#menu {
width: 100%;
}

.responsive #overlay > .overlay {
#overlay > .overlay {
position: absolute;
-webkit-transform: translateX(0);
right: 0;
Expand All @@ -61,12 +61,12 @@ container */
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

.responsive #overlay.slideup > .overlay {
#overlay.slideup > .overlay {
-webkit-transform: translateY(100%);
-webkit-transition: -webkit-transform 0.218s;
}

.responsive #overlay.slideup.opened > .overlay {
#overlay.slideup.opened > .overlay {
-webkit-transform: translateY(0);
}
}
2 changes: 0 additions & 2 deletions src/g-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
sheet.appendChild(document.createTextNode(styles));
}
}
// g-app is responsive by default...
inNode.classList.add('responsive');
}

this.component();
Expand Down
4 changes: 2 additions & 2 deletions src/g-toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
to work in native automatically we'll need to add a feature to detect
f we're in a responsive container */
@media screen and (max-width: 800px) {
.responsive @host, @host.responsive {
@host.responsive {
position: fixed;
right: 0;
bottom: 0;
Expand All @@ -51,7 +51,7 @@
border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.responsive @host > .hidden-narrow, @host.responsive > .hidden-narrow {
@host.responsive > .hidden-narrow {
display: none;
}
}
Expand Down

0 comments on commit 82c1a6c

Please sign in to comment.