Sha256: 963735dec9cd09e88a484705a87dfb5f793be8f1f7969ce6b7f10198f5d48689

Contents?: true

Size: 1.39 KB

Versions: 5

Compression:

Stored size: 1.39 KB

Contents

$secondary-gradient-start: #efefef !default;
$secondary-gradient-stop: #dfe1e2 !default;

@mixin gradient($start, $end){
  background: $start;
  background: -webkit-linear-gradient(-90deg, $start, $end);
  background: -moz-linear-gradient(-90deg, $start, $end);
  background: linear-gradient(-90deg, $start, $end);
  // IE 6 & 7
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start)}', endColorstr='#{ie-hex-str($end)}');
  // IE 8
  -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start)}', endColorstr='#{ie-hex-str($end)}');
}

@mixin header-background-gradient {
  background: $page-header-background-color;
}

@mixin title-bar-gradient {
  background: $title-bar-background;
}

@mixin primary-gradient {
  // background: $secondary-color;
  @include gradient(lighten($primary-color, 5%), darken($primary-color, 7%));
  border-bottom: 1px solid darken($primary-color, 11%);
}

// @mixin secondary-gradient {
//   @include gradient($secondary-gradient-start, $secondary-gradient-stop);
// }

@mixin highlight-gradient {
  @include gradient(#75a1c2, #608cb4);
}

@mixin reverse-highlight-gradient {
  @include gradient(#608cb4, #75a1c2);
}

@mixin no-gradient {
  background: none;
  // IE 6 & 7
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
  // IE 8
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flattened_active_admin-0.0.7 app/assets/stylesheets/flattened_active_admin/mixins/_gradients.scss
flattened_active_admin-0.0.6 app/assets/stylesheets/flattened_active_admin/mixins/_gradients.css.scss
flattened_active_admin-0.0.5 app/assets/stylesheets/flattened_active_admin/mixins/_gradients.css.scss
flattened_active_admin-0.0.3 app/assets/stylesheets/flattened_active_admin/mixins/_gradients.css.scss
flattened_active_admin-0.0.2 app/assets/stylesheets/flattened_active_admin/mixins/_gradients.css.scss