Sha256: 47ecd58395f5e902834dfd5a8c1c7f6e18c5e003650b782a6b24db9724b60915

Contents?: true

Size: 918 Bytes

Versions: 27

Compression:

Stored size: 918 Bytes

Contents

@mixin hover {
  @if $enable-hover-media-query {
    // See Media Queries Level 4: http://drafts.csswg.org/mediaqueries/#hover
    // Currently shimmed by https://github.com/twbs/mq4-hover-shim
    @media (hover: hover) {
      &:hover { @content }
    }
  }
  @else {
    &:hover { @content }
  }
}

@mixin hover-focus {
  @if $enable-hover-media-query {
    &:focus { @content }
    @include hover { @content }
  }
  @else {
    &:focus,
    &:hover {
      @content
    }
  }
}

@mixin plain-hover-focus {
  @if $enable-hover-media-query {
    &,
    &:focus {
      @content
    }
    @include hover { @content }
  }
  @else {
    &,
    &:focus,
    &:hover {
      @content
    }
  }
}

@mixin hover-focus-active {
  @if $enable-hover-media-query {
    &:focus,
    &:active {
      @content
    }
    @include hover { @content }
  }
  @else {
    &:focus,
    &:active,
    &:hover {
      @content
    }
  }
}

Version data entries

27 entries across 27 versions & 3 rubygems

Version Path
solidus_backend-2.1.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-2.0.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-1.4.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-1.3.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-2.0.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-1.4.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-2.1.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-2.1.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-2.0.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
on-standards-rails-2.0.0.pre.alpha.2 vendor/assets/stylesheets/on-standards/mixins/_hover.scss
solidus_backend-2.1.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
on-standards-rails-2.0.0.pre.alpha.1 vendor/assets/stylesheets/on-standards/mixins/_hover.scss
on-standards-rails-2.0.0.pre.alpha vendor/assets/stylesheets/on-standards/mixins/_hover.scss
solidus_backend-2.0.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-1.4.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-2.0.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-1.4.0.rc1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-2.0.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-1.4.0.beta1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss
solidus_backend-1.3.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_hover.scss