Sha256: cc16e2109301fef8818767aa39bac3fa3be09fae4c918bdcdd1017847fbdaa30

Contents?: true

Size: 1.2 KB

Versions: 42

Compression:

Stored size: 1.2 KB

Contents

// Clearfix
//
// Clears floats via mixin (avoid using as a class).

@mixin clearfix {
  &:before {
    display: table;
    content: "";
  }

  &:after {
    display: table;
    clear: both;
    content: "";
  }
}

// Creates a linear gradient background, from top to bottom.
//
// $start - The color hex at the top.
// $end   - The color hex at the bottom.

@mixin gradient($start: #fafafa, $end: #eaeaea) {
  @warn "Gradient mixin is deprecated.";
  background-color: $end;
  // FF 3.6+
  background-image: -moz-linear-gradient($start, $end);
  // Safari 5.1+, Chrome 10+
  background-image: -webkit-linear-gradient($start, $end);
  background-image: linear-gradient($start, $end);
  background-repeat: repeat-x;
}

// Text hiding for image based text replacement.
// Higher performance than -9999px because it only renders
// the size of the actual text, not a full 9999px box.

@mixin hide-text() {
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

// Octicon bootstrap
//
// Quickly load the typography requirements for Octicons icon font.

@mixin icon-bootstrap($size) {
  font: normal normal #{$size}/1 "octicons";
  display: inline-block;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
flipper-ui-0.11.0.beta3 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.11.0.beta1 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.10.2 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.10.1 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.10.0 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.9.2 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.9.1 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.9.0 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.9.0.beta1 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.8.0 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.5 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.4 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.3 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.2 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.1 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.0 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.0.beta6 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.0.beta5 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.7.0.beta4 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss
flipper-ui-0.2.0.beta5 lib/flipper/ui/assets/stylesheets/primer/_mixins.scss