Normalize content widths and spacing across viewports

This commit is contained in:
Michael Rose 2013-08-26 09:29:52 -04:00
parent 9215456ceb
commit 4107acfa16
3 changed files with 27 additions and 14 deletions

File diff suppressed because one or more lines are too long

View File

@ -72,9 +72,10 @@ body {
} }
} }
h1 { h1 {
margin: 10px 60px; margin: 10px;
font-weight: 700; font-weight: 700;
@media @medium { @media @medium {
margin: 10px 60px;
color: @white; color: @white;
.font-rem(60); .font-rem(60);
text-shadow: 1px 1px 4px fade(@base-color,60); text-shadow: 1px 1px 4px fade(@base-color,60);
@ -184,8 +185,8 @@ body {
} }
@media @large { @media @large {
max-width: 800px; max-width: 800px;
padding: 50px 80px;
margin: 50px auto 30px auto; margin: 50px auto 30px auto;
padding: 50px 80px;
> p:first-child { > p:first-child {
.font-size(20); .font-size(20);
} }
@ -235,11 +236,15 @@ body {
// Read More Module // Read More Module
.read-more { .read-more {
position: relative; position: relative;
margin: 50px 10px 20px 10px; margin: 40px 2px 20px 2px;
padding: 50px 40px 25px; padding: 40px 15px 25px;
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: 50px 10px 20px 10px;
padding: 50px 40px 25px;
}
@media @large { @media @large {
max-width: 800px; max-width: 800px;
padding: 50px 80px; padding: 50px 80px;
@ -307,9 +312,11 @@ body {
// -------------------------------------------------- // --------------------------------------------------
#post-index { #post-index {
#main { #main {
margin-top: 40px; margin: 40px 2px 20px 2px;
margin-left: 20px; @media @medium {
margin-right: 20px; margin-left: 20px;
margin-right: 20px;
}
@media @large { @media @large {
max-width: 800px; max-width: 800px;
margin-top: 50px; margin-top: 50px;
@ -322,7 +329,10 @@ body {
box-shadow: 0 0 0 1px fade(@base-color,10), 0 6px 12px fade(@base-color,10); box-shadow: 0 0 0 1px fade(@base-color,10), 0 6px 12px fade(@base-color,10);
.rounded(3px); .rounded(3px);
margin-bottom: 20px; margin-bottom: 20px;
padding: 25px 40px; padding: 25px 15px;
@media @medium {
padding: 30px;
}
@media @large { @media @large {
margin-bottom: 30px; margin-bottom: 30px;
padding: 50px 80px; padding: 50px 80px;

View File

@ -91,12 +91,15 @@ figcaption {
// Blockquotes // Blockquotes
// -------------------------------------------------- // --------------------------------------------------
blockquote { blockquote {
margin-left: -28px;
padding-left: 20px;
border-left: 8px solid @border-color;
font-family: @alt-font; font-family: @alt-font;
font-style: italic; font-style: italic;
.font-rem(24); .font-rem(18);
@media @medium {
margin-left: -28px;
padding-left: 20px;
border-left: 8px solid @border-color;
.font-rem(24);
}
} }
// Footnotes // Footnotes