Skip to content

Commit

Permalink
suppr de namespaces et ajout de .bfc
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
raphaelgoetter committed Jul 2, 2015
1 parent 58bc801 commit d824fc2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion less/_01b-base.less
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ var {
/* ----------------------------- */

/* hidden but not for an assistive technology like a screen reader, Yahoo! method */
.@{kna-namespace}visually-hidden {
.visually-hidden {
position: absolute !important;
border: 0 !important;
height: 1px !important;
Expand Down
7 changes: 4 additions & 3 deletions less/_02-layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
/* ----------------------------- */

/* module, gains superpower "BFC" Block Formating Context */
.@{kna-namespace}mod {
.@{kna-namespace}mod,
.@{kna-namespace}bfc {
overflow: hidden;
}

/* blocks that needs to be placed under floats */
.@{kna-namespace}clear,
.clear,
.@{kna-namespace}line,
.@{kna-namespace}row {
clear: both;
}

/* blocks that must contain floats */
.@{kna-namespace}clearfix,
.clearfix,
.@{kna-namespace}line {
&::after {
content: "";
Expand Down
2 changes: 1 addition & 1 deletion sass/_01b-base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var {
/* ----------------------------- */

/* hidden but not for assistance tools, Yahoo! method */
.#{$kna-namespace}visually-hidden {
.visually-hidden {
position: absolute !important;
border: 0 !important;
height: 1px !important;
Expand Down
7 changes: 4 additions & 3 deletions sass/_02-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,20 @@
/* ----------------------------- */

/* module, gains superpower "BFC" Block Formating Context */
.#{$kna-namespace}mod {
.#{$kna-namespace}mod,
.#{$kna-namespace}bfc {
overflow: hidden;
}

/* blocks that needs to be placed under floats */
.#{$kna-namespace}clear,
.clear,
.#{$kna-namespace}line,
.#{$kna-namespace}row {
clear: both;
}

/* blocks that must contain floats */
.#{$kna-namespace}clearfix,
.clearfix,
.#{$kna-namespace}line {
&::after {
content: "";
Expand Down

0 comments on commit d824fc2

Please sign in to comment.