Commit f70b4938 authored by Randall Leeds's avatar Randall Leeds

Add responsive breakpoint and yui grid for desktop

parent 133a12c2
...@@ -55,6 +55,10 @@ html { ...@@ -55,6 +55,10 @@ html {
@include respond-to(tablets) { @include respond-to(tablets) {
@include yui_grid('t-'); @include yui_grid('t-');
} }
@include respond-to(desktops) {
@include yui_grid('d-');
}
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
......
$break-small: 479px !default; $break-small: 480px !default;
$break-large: 911px !default;; $break-medium: 768px !default;
$break-large: 1024px !default;
@mixin respond-to($media) { @mixin respond-to($media) {
@if type-of($media) == string { @if type-of($media) == string {
...@@ -7,10 +8,13 @@ $break-large: 911px !default;; ...@@ -7,10 +8,13 @@ $break-large: 911px !default;;
@media only screen and (max-width: $break-small) { @content; } @media only screen and (max-width: $break-small) { @content; }
} }
@else if $media == wide-handhelds { @else if $media == wide-handhelds {
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1) { @content; } @media only screen and (min-width: $break-small + 1) and (max-width: $break-medium) { @content; }
} }
@else if $media == tablets { @else if $media == tablets {
@media only screen and (min-width: $break-large) { @content; } @media only screen and (min-width: $break-medium + 1) and (max-width: $break-large) { @content; }
}
@else if $media == desktops {
@media only screen and (min-width: $break-large + 1) { @content; }
} }
} }
@else if type-of($media) == list { @else if type-of($media) == list {
...@@ -18,10 +22,13 @@ $break-large: 911px !default;; ...@@ -18,10 +22,13 @@ $break-large: 911px !default;;
@media only screen and (max-width: $break-small) { @content; } @media only screen and (max-width: $break-small) { @content; }
} }
@if index($media, wide-handhelds) != false { @if index($media, wide-handhelds) != false {
@media only screen and (min-width: $break-small + 1) and (max-width: $break-large - 1) { @content; } @media only screen and (min-width: $break-small + 1) and (max-width: $break-medium) { @content; }
} }
@if index($media, tablets) != false { @if index($media, tablets) != false {
@media only screen and (min-width: $break-large) { @content; } @media only screen and (min-width: $break-medium + -1) and (max-width: $break-large){ @content; }
}
@if index($media, desktops) != false {
@media only screen and (min-width: $break-large + 1) { @content; }
} }
} }
} }
...@@ -18,7 +18,7 @@ header { ...@@ -18,7 +18,7 @@ header {
text-align: center; text-align: center;
} }
@include respond-to(wide-handhelds tablets) { @include respond-to(wide-handhelds tablets desktops) {
@include pie-clearfix; @include pie-clearfix;
text-align: left; text-align: left;
img { float: left; } img { float: left; }
...@@ -65,10 +65,10 @@ ol { ...@@ -65,10 +65,10 @@ ol {
.content { .content {
padding: 2.5em 1em; padding: 2.5em 1em;
@include respond-to(tablets) { @include respond-to(tablets desktops) {
padding: 2.5em 4em 4em 4em; padding: 2.5em 4em 4em 4em;
margin: auto; margin: auto;
max-width: $break-large; max-width: $break-medium;
} }
} }
...@@ -76,20 +76,20 @@ ol { ...@@ -76,20 +76,20 @@ ol {
position: fixed; position: fixed;
.inner { .inner {
margin: 0 auto; margin: 0 auto;
max-width: $break-large; max-width: $break-medium;
padding-left: 3.6em; padding-left: 3.6em;
padding-right: 3.6em; padding-right: 3.6em;
@include respond-to(tablets) { @include respond-to(tablets desktops) {
padding-left: 3.6em; padding-left: 3.6em;
padding-right: 3.6em; padding-right: 3.6em;
margin: 0 auto; margin: 0 auto;
max-width: $break-large; max-width: $break-medium;
} }
@include respond-to(wide-handhelds handhelds) { @include respond-to(wide-handhelds handhelds) {
padding-left: 0.9em; padding-left: 0.9em;
padding-right: 0.9em; padding-right: 0.9em;
margin: 0 auto; margin: 0 auto;
max-width: $break-large; max-width: $break-medium;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment