Created
November 5, 2013 17:55
-
-
Save kylesuss/7323224 to your computer and use it in GitHub Desktop.
The grid is jacked in IE8 for Foundation 4 as they use media queries for certain elements. This fixes it and uses the class that Rails adds to the HTML element for IE8 in Rails 4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .ie8 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; } | |
| .ie8 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
| .ie8 .row.large-collapse .column, | |
| .ie8 .row.large-collapse .columns { padding: 0; } | |
| .ie8 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
| .ie8 .row .row.large-collapse { margin: 0; } | |
| .ie8 .column, .ie8 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; } | |
| .ie8 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; } | |
| .ie8 [class*="column"] + [class*="column"]:last-child { float: right; } | |
| .ie8 [class*="column"] + [class*="column"].end { float: left; } | |
| .ie8 .large-1, | |
| .ie8 .row .large-1 { width: 8.33333%; } | |
| .ie8 .large-2, | |
| .ie8 .row .large-2 { width: 16.66667%; } | |
| .ie8 .large-3, | |
| .ie8 .row .large-3 { width: 25%; } | |
| .ie8 .large-4, | |
| .ie8 .row .large-4 { width: 33.33333%; } | |
| .ie8 .large-5, | |
| .ie8 .row .large-5 { width: 41.66667%; } | |
| .ie8 .large-6, | |
| .ie8 .row .large-6 { width: 50%; } | |
| .ie8 .large-7, | |
| .ie8 .row .large-7 { width: 58.33333%; } | |
| .ie8 .large-8, | |
| .ie8 .row .large-8 { width: 66.66667%; } | |
| .ie8 .large-9, | |
| .ie8 .row .large-9 { width: 75%; } | |
| .ie8 .large-10, | |
| .ie8 .row .large-10 { width: 83.33333%; } | |
| .ie8 .large-11, | |
| .ie8 .row .large-11 { width: 91.66667%; } | |
| .ie8 .large-12, | |
| .ie8 .row .large-12 { width: 100%; } | |
| .ie8 .row .large-offset-1 { margin-left: 8.33333%; } | |
| .ie8 .row .large-offset-2 { margin-left: 16.66667%; } | |
| .ie8 .row .large-offset-3 { margin-left: 25%; } | |
| .ie8 .row .large-offset-4 { margin-left: 33.33333%; } | |
| .ie8 .row .large-offset-5 { margin-left: 41.66667%; } | |
| .ie8 .row .large-offset-6 { margin-left: 50%; } | |
| .ie8 .row .large-offset-7 { margin-left: 58.33333%; } | |
| .ie8 .row .large-offset-8 { margin-left: 66.66667%; } | |
| .ie8 .row .large-offset-9 { margin-left: 75%; } | |
| .ie8 .row .large-offset-10 { margin-left: 83.33333%; } | |
| .ie8 .pull-2 { right: 16.66667%; } | |
| .ie8 .pull-3 { right: 25%; } | |
| .ie8 .pull-4 { right: 33.33333%; } | |
| .ie8 .pull-5 { right: 41.66667%; } | |
| .ie8 .pull-6 { right: 50%; } | |
| .ie8 .pull-7 { right: 58.33333%; } | |
| .ie8 .pull-8 { right: 66.66667%; } | |
| .ie8 .pull-9 { right: 75%; } | |
| .ie8 .pull-10 { right: 83.33333%; } | |
| .ie8 .push-2 { left: 16.66667%; } | |
| .ie8 .push-3 { left: 25%; } | |
| .ie8 .push-4 { left: 33.33333%; } | |
| .ie8 .push-5 { left: 41.66667%; } | |
| .ie8 .push-6 { left: 50%; } | |
| .ie8 .push-7 { left: 58.33333%; } | |
| .ie8 .push-8 { left: 66.66667%; } | |
| .ie8 .push-9 { left: 75%; } | |
| .ie8 .push-10 { left: 83.33333%; } | |
| /* Nicolas Gallagher's micro clearfix */ | |
| .ie8 .row { *zoom: 1; } | |
| .ie8 .row:before, .row:after { content: " "; display: table; } | |
| .ie8 .row:after { clear: both; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment