Skip to content

Commit

Permalink
Scale down margins and headers for phone/tablet.
Browse files Browse the repository at this point in the history
  • Loading branch information
aimee daniells committed Jan 6, 2012
1 parent 91588b0 commit cf1b3b5
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 1 deletion.
79 changes: 79 additions & 0 deletions app/assets/stylesheets/blueprint_overrides.scss
Expand Up @@ -8,6 +8,10 @@ body {
padding-top: 40px;
}

h2 {
font-size: 20px;
}

.dropdown:hover > .dropdown-menu {
display: block;
}
Expand Down Expand Up @@ -53,3 +57,78 @@ table {
footer p {
text-align: center;
}

// tablet styles

@media only screen and (max-width: 800px) {
.topbar {
div > ul a, .nav a {
padding-left: 6px;
padding-right: 6px;
}
}

h1 {
font-size: 24px;
}

h2 {
font-size: 18px;
}

.container-fluid {
padding-left: 15px;
padding-right: 15px;

> .content {
padding: 15px;
}
}

.page-header {
padding: 15px 15px 7px 15px;
margin: -15px -15px 15px -15px;

h1 {
margin-bottom: 6px;
}
}

}

// phone styles

@media only screen and (max-width: 479px) {
.topbar {
.brand {
display: none;
}
}

h1 {
font-size: 18px;
}

h2 {
font-size: 16px;
}

.container-fluid {
padding-left: 10px;
padding-right: 10px;

> .content {
padding: 10px;
}
}

.page-header {
padding: 10px 10px 5px 10px;
margin: -10px -10px 10px -10px;

h1 {
margin-bottom: 4px;
}
}

}
2 changes: 1 addition & 1 deletion app/views/notes/_note.html.haml
@@ -1,5 +1,5 @@
.note
%h3= note.date.year
%h2= note.date.year
%ul.note-actions.unstyled
%li.edit-note= link_to 'Edit note', edit_note_path(note)
= simple_format note.content

0 comments on commit cf1b3b5

Please sign in to comment.