visually-hidden devient un mixin

This commit is contained in:
Raphael 2019-08-14 12:30:26 +02:00
parent 65711b271f
commit 86ddd7398c
3 changed files with 22 additions and 14 deletions

View File

@ -11,6 +11,7 @@
- modification de l'ordre d'import des fichiers : les utilitaires sont importées à la fin à présent - modification de l'ordre d'import des fichiers : les utilitaires sont importées à la fin à présent
- ajout d'une variable pour supporter ou non IE11 : `$ie: true !default;`. - ajout d'une variable pour supporter ou non IE11 : `$ie: true !default;`.
- ajout d'une variable pour supporter ou non WordPress : `$wordpress: false !default;`. - ajout d'une variable pour supporter ou non WordPress : `$wordpress: false !default;`.
- `visually-hidden` devient un mixin
- corrections typo - corrections typo
## Changelog v7.1.2 (30 janvier 2019) ## Changelog v7.1.2 (30 janvier 2019)

View File

@ -1,3 +1,15 @@
// Visually-hidden mixin
@mixin visually-hidden {
position: absolute !important;
border: 0 !important;
height: 1px !important;
width: 1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
}
// font-size Mixin // font-size Mixin
// compiles to font-size mobile + font-size desktop on small-plus devices // compiles to font-size mobile + font-size desktop on small-plus devices
// ex. h2 { @include font-size(h2);} // ex. h2 { @include font-size(h2);}

View File

@ -95,7 +95,7 @@
/* simple blocks alignment */ /* simple blocks alignment */
.left .left,
.u-left { .u-left {
margin-right: auto; margin-right: auto;
} }
@ -114,10 +114,8 @@
/* Global Micro Layout */ /* Global Micro Layout */
/* ------------------- */ /* ------------------- */
/* module, gains superpower "BFC" Block Formating Context */ /* "BFC" Block Formating Context */
.mod,
.u-mod,
.bfc, .bfc,
.u-bfc { .u-bfc {
overflow: hidden; overflow: hidden;
@ -171,14 +169,14 @@ img.u-fr {
} }
/* hidden but not for an assistive technology like a screen reader, Yahoo! method */ /* hidden but not for an assistive technology like a screen reader, Yahoo! method */
// mixin in `abstracts/_mixins.scss`
.visually-hidden { .visually-hidden {
position: absolute !important; @include visually-hidden;
border: 0 !important; }
height: 1px !important; @include respond-to("small") {
width: 1px !important; .small-visually-hidden {
padding: 0 !important; @include visually-hidden;
overflow: hidden !important; }
clip: rect(0, 0, 0, 0) !important;
} }
.is-disabled, .is-disabled,
@ -199,9 +197,6 @@ ul {
} }
} }
.color--inverse {
color: $white;
}
/* Width Helpers */ /* Width Helpers */
/* ------------- */ /* ------------- */