Skip to content

Commit

Permalink
[RBWM] Improve display on narrow screens
Browse files Browse the repository at this point in the history
  • Loading branch information
davea committed Oct 7, 2015
1 parent 9eb6a32 commit 04a8e45
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions web/assets/rbwm/css.css
Expand Up @@ -98,3 +98,28 @@ h3 {
margin-left: 0;
width: auto;
}

@media screen and (max-width: 500px){
/* Stack the homepage content in a single column (not two) on narrow screens */
div#most_popular, div#most_recent, div#petition_actions, div#front_how {
float: none;
width: 100%;
}

/* Do the same for the 'sign petition' page */
form#signForm .relative_width_50, form#signForm .relative_width_47, #signatories, #more_detail {
float: none;
width: 100%;
}

/* Put a bit of vertical space underneath homepage create/view links */
div#petition_actions {
margin-bottom: 7em;
}

/* Make sure open/closed/rejected petition links don't overlap on narrow screens */
.petition_view_tabs a, .petition_view_tabs span {
display: inline-block;
margin-bottom: 12px;
}
}

0 comments on commit 04a8e45

Please sign in to comment.