-
Notifications
You must be signed in to change notification settings - Fork 46
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 #1055 from bolt-design-system/feature/bolt-tool-ie…
…11-only-mixin Dev tool: IE11-only SCSS mixin
- Loading branch information
Showing
5 changed files
with
38 additions
and
2,298 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# @bolt/tools-ie11-only | ||
Define CSS that only targets Internet Explorer 11. | ||
|
||
- [Sass Docs](https://www.boltdesignsystem.com/docs/#tools: ie11-only) | ||
|
||
## Install | ||
```bash | ||
npm install @bolt/tools-ie11-only | ||
``` |
21 changes: 21 additions & 0 deletions
21
packages/core/styles/02-tools/tools-ie11-only/_tools-ie11-only.scss
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,21 @@ | ||
/* ------------------------------------ *\ | ||
IE11 Only CSS | ||
\* ------------------------------------ */ | ||
|
||
//// | ||
/// @group Tools: Utilities | ||
/// @author Mike Mai | ||
//// | ||
|
||
/// Define CSS that only targets Internet Explorer 11. | ||
/// @example scss | ||
/// .element { | ||
/// @include bolt-ie11-only { | ||
/// display: block; | ||
/// } | ||
/// } | ||
@mixin bolt-ie11-only() { | ||
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | ||
@content; | ||
} | ||
} |
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
Oops, something went wrong.