suppr de namespaces et ajout de .bfc

- pas de namespace sur les classes `.clear`, `.clearfix` et
`.visually-hidden`
- ajout d'une classe `.bfc` (identique à `.mod`) et qui crée un contexte
de formatage block
This commit is contained in:
raphaelgoettter 2015-07-02 09:19:33 +02:00
parent 58bc80183e
commit d824fc2047
4 changed files with 10 additions and 8 deletions

View file

@ -169,7 +169,7 @@ var {
/* ----------------------------- */ /* ----------------------------- */
/* 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 */
.@{kna-namespace}visually-hidden { .visually-hidden {
position: absolute !important; position: absolute !important;
border: 0 !important; border: 0 !important;
height: 1px !important; height: 1px !important;

View file

@ -3,19 +3,20 @@
/* ----------------------------- */ /* ----------------------------- */
/* module, gains superpower "BFC" Block Formating Context */ /* module, gains superpower "BFC" Block Formating Context */
.@{kna-namespace}mod { .@{kna-namespace}mod,
.@{kna-namespace}bfc {
overflow: hidden; overflow: hidden;
} }
/* blocks that needs to be placed under floats */ /* blocks that needs to be placed under floats */
.@{kna-namespace}clear, .clear,
.@{kna-namespace}line, .@{kna-namespace}line,
.@{kna-namespace}row { .@{kna-namespace}row {
clear: both; clear: both;
} }
/* blocks that must contain floats */ /* blocks that must contain floats */
.@{kna-namespace}clearfix, .clearfix,
.@{kna-namespace}line { .@{kna-namespace}line {
&::after { &::after {
content: ""; content: "";

View file

@ -163,7 +163,7 @@ var {
/* ----------------------------- */ /* ----------------------------- */
/* hidden but not for assistance tools, Yahoo! method */ /* hidden but not for assistance tools, Yahoo! method */
.#{$kna-namespace}visually-hidden { .visually-hidden {
position: absolute !important; position: absolute !important;
border: 0 !important; border: 0 !important;
height: 1px !important; height: 1px !important;

View file

@ -3,19 +3,20 @@
/* ----------------------------- */ /* ----------------------------- */
/* module, gains superpower "BFC" Block Formating Context */ /* module, gains superpower "BFC" Block Formating Context */
.#{$kna-namespace}mod { .#{$kna-namespace}mod,
.#{$kna-namespace}bfc {
overflow: hidden; overflow: hidden;
} }
/* blocks that needs to be placed under floats */ /* blocks that needs to be placed under floats */
.#{$kna-namespace}clear, .clear,
.#{$kna-namespace}line, .#{$kna-namespace}line,
.#{$kna-namespace}row { .#{$kna-namespace}row {
clear: both; clear: both;
} }
/* blocks that must contain floats */ /* blocks that must contain floats */
.#{$kna-namespace}clearfix, .clearfix,
.#{$kna-namespace}line { .#{$kna-namespace}line {
&::after { &::after {
content: ""; content: "";