-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #631 from alphagov/simplify-legacy-ie-logic
Simplify legacy IE logic
- Loading branch information
Showing
21 changed files
with
95 additions
and
64 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
// To enable support for browsers that do not support @media queries, | ||
// (IE <= 8, Firefox <= 3, Opera <= 9) set $mq-responsive to false | ||
// Create a separate stylesheet served exclusively to these browsers, | ||
// meaning @media queries will be rasterized, relying on the cascade itself | ||
$mq-responsive: false; | ||
|
||
// Set is-ie to true to output IE specific styles | ||
// uses the IE helpers in globals/_helpers.scss | ||
$govuk-is-ie: true; | ||
$govuk-ie-version: 8; | ||
// By setting $govuk-is-ie8 to true, we create a version of the stylesheet that | ||
// targets IE8 – e.g. conditionally including or excluding styles, and | ||
// rasterizing media queries. | ||
$govuk-is-ie8: true; | ||
|
||
@import "all"; |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Whether the stylesheet being built is targeting Internet Explorer 8. Used by | ||
// the ie8 mixin tools and in other settings. | ||
// @type Bool | ||
$govuk-is-ie8: false !default; |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Include IE8 settings where these tools are used directly within a component | ||
@import "../settings/ie8"; | ||
|
||
/// Conditionally include rules only for IE8 | ||
/// | ||
/// Only output the CSS passed to the mixin if the $govuk-is-ie8 variable is | ||
/// set to true, which means the rules should only be outputted if compiling an | ||
/// IE8 specific stylesheet. | ||
/// | ||
/// @example scss - Usage | ||
/// | ||
/// .foo { | ||
/// min-width: 100px; | ||
/// // Specify width for IE8 only | ||
/// @include govuk-is-ie8 { | ||
/// width: 100px; | ||
/// } | ||
/// } | ||
@mixin govuk-if-ie8 { | ||
@if $govuk-is-ie8 { | ||
@content; | ||
} | ||
} | ||
|
||
/// Conditionally exclude rules for IE8 | ||
/// | ||
/// Only output the CSS passed to the mixin if the $govuk-is-ie8 variable is | ||
/// not set to true, which means the rules should be excluded when compiling | ||
/// an IE8 specific stylesheet. | ||
/// | ||
/// @example scss - Usage | ||
/// | ||
/// .foo { | ||
/// font-weight: bold; | ||
/// | ||
/// // Enhance foo only for modern browsers (not IE8) | ||
/// @include govuk-not-ie8 { | ||
/// font-family: "Comic Sans MS", "Curlz MT" cursive, sans-serif; | ||
/// color: #FF69B4; | ||
/// } | ||
/// } | ||
@mixin govuk-not-ie8 { | ||
@if not $govuk-is-ie8 { | ||
@content; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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