Skip to content

Commit

Permalink
(Bug 5073) Don't use position:absolute for userpic on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
afuna committed Mar 10, 2014
1 parent a3f0096 commit f3d7021
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions htdocs/scss/skins/_nav.scss
Expand Up @@ -14,22 +14,18 @@ $nav-small-screen-header-height: 3em;
white-space: nowrap;

}

@media #{$small-only} {
/* Adjustments to the static account links display in the masthead */

#account-links #account-links-userpic {
position: absolute; /* Should be done in a cleaner way -- this positions
the icon when on a small screen in the header when smaller */
right: -40px;
top: -11px;

img {
width: 50%;
height: 50%;

#account-links-userpic {
margin-top: -11px;
img {
max-height: $nav-small-screen-header-height;
width: auto;
}
}

/* This makes the account links text into a modal when the screen is small */
#account-links-text {
@include reveal-modal-base(
Expand Down

0 comments on commit f3d7021

Please sign in to comment.