Optimize page width for small screens

This commit is contained in:
Michael Rose 2013-08-23 16:19:28 -04:00
parent b770c2a5a7
commit 5c42915f86
2 changed files with 17 additions and 5 deletions

View File

@ -3402,14 +3402,22 @@ body {
} }
#post .entry-content, #post .entry-content,
#page .entry-content { #page .entry-content {
margin: 40px 10px 20px 10px; margin: 40px 2px 20px 2px;
padding: 20px 30px; padding: 10px 15px;
background-color: #ffffff; background-color: #ffffff;
box-shadow: 0 0 0 1px rgba(187, 187, 187, 0.1), 0 6px 12px rgba(0, 0, 0, 0.1); box-shadow: 0 0 0 1px rgba(187, 187, 187, 0.1), 0 6px 12px rgba(0, 0, 0, 0.1);
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
} }
@media only screen and (min-width: 48em) {
#post .entry-content,
#page .entry-content {
margin-left: 10px;
margin-right: 10px;
padding: 20px 30px;
}
}
@media only screen and (min-width: 62.5em) { @media only screen and (min-width: 62.5em) {
#post .entry-content, #post .entry-content,
#page .entry-content { #page .entry-content {

View File

@ -172,12 +172,16 @@ body {
#post, #post,
#page { #page {
.entry-content { .entry-content {
margin: 40px 10px 20px 10px; margin: 40px 2px 20px 2px;
padding: 20px 30px; padding: 10px 15px;
background-color: @white; background-color: @white;
box-shadow: 0 0 0 1px fade(@border-color,10), 0 6px 12px fade(@black,10); box-shadow: 0 0 0 1px fade(@border-color,10), 0 6px 12px fade(@black,10);
.rounded(3px); .rounded(3px);
@media @medium {
margin-left: 10px;
margin-right: 10px;
padding: 20px 30px;
}
@media @large { @media @large {
max-width: 800px; max-width: 800px;
padding: 50px 80px; padding: 50px 80px;