Skip to content

Commit

Permalink
feat(mixins): move focus & active mixins to mixins/hover
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Sep 18, 2019
1 parent c3dfc17 commit 4ebbbda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
13 changes: 0 additions & 13 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1277,16 +1277,3 @@ $o-stepbar-arrow-width: $spacer !default;
$o-stepbar-mobile-padding-vertical: .3125rem !default;
$o-stepbar-mobile-arrow-width: .75rem !default;
$o-stepbar-mobile-arrow-height: 1.875rem !default;

// focus state mixin
@mixin focus() {
&:focus {
@content;
}
}

@mixin active() {
&:active {
@content;
}
}
10 changes: 10 additions & 0 deletions scss/mixins/_hover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
&:hover { @content; }
}

// Boosted mod
@mixin focus() {
&:focus { @content; }
}

@mixin active() {
&:active { @content; }
}
// end mod

@mixin hover-focus() {
&:hover,
&:focus {
Expand Down

0 comments on commit 4ebbbda

Please sign in to comment.