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
compass-0.13.alpha.0 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
concen-0.2.8 app/assets/stylesheets/concen/compass/typography/links/_link-colors.scss
compass-0.12.1 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.12.0 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
radiant-1.0.0 ruby-debug/ruby/1.8/gems/compass-0.11.7/frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.12.rc.1 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.12.rc.0 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
concen-0.2.7 app/assets/stylesheets/concen/compass/typography/links/_link-colors.scss
compass-0.11.7 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.12.alpha.4 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.12.alpha.3 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.11.6 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
concen-0.2.6 app/assets/stylesheets/concen/compass/typography/links/_link-colors.scss
compass-0.12.alpha.2 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.12.alpha.1 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
concen-0.2.5 app/assets/stylesheets/concen/compass/typography/links/_link-colors.scss
compass-0.12.alpha.0 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-rails31-0.12.0.alpha.0.91a748a frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.11.5 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss
compass-0.11.4 frameworks/compass/stylesheets/compass/typography/links/_link-colors.scss