Sha256: e2315da6c2fc2724dd1092748c98095ecc37e5496812d159c580f1c117eaa194

Contents?: true

Size: 630 Bytes

Versions: 112

Compression:

Stored size: 630 Bytes

Contents

// Set all the colors for a link with one mixin call.
// Order of arguments is:
//
// 1. normal
// 2. hover
// 3. active
// 4. visited
// 5. focus
//
// Those states not specified will inherit.
// Mixin to an anchor link like so:
//     a
//       +link-colors(#00c, #0cc, #c0c, #ccc, #cc0)

@mixin link-colors($normal, $hover: false, $active: false, $visited: false, $focus: false) {
  color: $normal;
  @if $visited {
    &:visited {
      color: $visited; } }
  @if $focus {
    &:focus {
      color: $focus; } }
  @if $hover {
    &:hover {
      color: $hover; } }
  @if $active {
    &:active {
      color: $active; } } }

Version data entries

112 entries across 108 versions & 14 rubygems

Version Path
comixins-0.1.2 vendor/assets/stylesheets/compass/typography/links/_link-colors.scss
arcabouco-0.2.13 vendor/bundle/gems/compass-core-1.0.3/stylesheets/compass/typography/links/_link-colors.scss
egghead-styles-1.0.82 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.81 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.80 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.79 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.78 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.77 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.76 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.75 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.74 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
egghead-styles-1.0.73 app/assets/stylesheets/plugins/compass/compass/typography/links/_link-colors.scss
gem_2345-0.1.2 stylesheets/compass/typography/links/_link-colors.scss
ghost-manager-1.0.0 magneto/source/assets/bower_components/compass-mixins/lib/compass/typography/links/_link-colors.scss
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_link-colors.scss
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_link-colors.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/stylesheets/compass/utilities/links/_link-colors.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/utilities/links/_link-colors.scss