Skip to content

Commit

Permalink
Add visually visible mixin (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrtsmith committed Sep 26, 2017
1 parent bbef87b commit 01371b7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions nebula-css/_tools.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
@import 'tools/offsets';
@import 'tools/section';
@import 'tools/visually-hidden';
@import 'tools/visually-visible';
@import 'tools/hidden';
17 changes: 17 additions & 0 deletions nebula-css/tools/_visually-visible.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@mixin nb-visually-visible($important: false) {
$important-str: '';

@if ($important) {
$important-str: '!important';
}

position: static #{$important-str};
overflow: initial #{$important-str};
width: initial #{$important-str};
height: initial #{$important-str};
padding: initial #{$important-str};
border: initial;
white-space: initial #{$important-str};
clip: auto #{$important-str};
clip-path: initial #{$important-str};
}

0 comments on commit 01371b7

Please sign in to comment.