Sha256: ba0cd7fef4065fbd32bf0ebd9a5e08f3ec2b78dbfe100ab764de4f1a40712ee6

Contents?: true

Size: 1.66 KB

Versions: 124

Compression:

Stored size: 1.66 KB

Contents

//
// Patternfly Mixins
// --------------------------------------------------
// PatternFly-specific mixins

// Patternfly button variants.
@mixin button-variant($color, $background, $background-image-start, $background-image-stop, $border){
  background-color: $background;
  @include gradient-vertical($background-image-start, $background-image-stop);
  border-color: $border;
  color: $color;

  &:hover,
  &:focus,
  &:active,
  &.active,
  .open .dropdown-toggle#{&} {
    background-color: $background;
    background-image: none;
    border-color: $border;
    color: $color;
  }
  &:active,
  &.active,
  .open .dropdown-toggle#{&} {
    background-image: none;
    &:hover,
    &:focus,
    &.focus {
      background-color: darken($background, 5%);
          border-color: darken($border, 7%);
    }
  }
  &.disabled,
  &[disabled],
  fieldset[disabled] & {
    &,
    &:hover,
    &:focus,
    &:active,
    &.active {
      background-color: $background;
      border-color: $border;
    }
  }
}

// SASS CONVERSION FIX.
// Allows inclusion of sr-only rules in nested media queries where @extends .sr-only
// will not work.
@mixin sr-only-pf(){
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@mixin tab-indicator($background: $gray-light-pf, $left: 15px, $right: 15px){
  &:before {
    background: $background;
    bottom: -1px;
    content: "";
    display: block;
    height: 2px;
    left: $left;
    position: absolute;
    right: $right;
  }
}

// Ellipse overflow text
.text-overflow-pf {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: normal;
}

Version data entries

124 entries across 81 versions & 1 rubygems

Version Path
patternfly-sass-3.59.5 dist/sass/rcue/_mixins.scss
patternfly-sass-3.59.5 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.59.4 dist/sass/rcue/_mixins.scss
patternfly-sass-3.59.4 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.59.3 dist/sass/rcue/_mixins.scss
patternfly-sass-3.59.3 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.59.2 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.59.2 dist/sass/rcue/_mixins.scss
patternfly-sass-3.59.1 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.59.1 dist/sass/rcue/_mixins.scss
patternfly-sass-3.59.0 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.59.0 dist/sass/rcue/_mixins.scss
patternfly-sass-3.58.0 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.58.0 dist/sass/rcue/_mixins.scss
patternfly-sass-3.57.2 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.57.2 dist/sass/rcue/_mixins.scss
patternfly-sass-3.57.1 dist/sass/rcue/_mixins.scss
patternfly-sass-3.57.1 dist/sass/patternfly/_mixins.scss
patternfly-sass-3.57.0 dist/sass/rcue/_mixins.scss
patternfly-sass-3.57.0 dist/sass/patternfly/_mixins.scss