Sha256: 1f2b9ac0397afed3c663b7b269eb7302226998fb66302ca22d46a0dcf0162e48

Contents?: true

Size: 1.71 KB

Versions: 7

Compression:

Stored size: 1.71 KB

Contents

// Links --------------------------------------------------------------
// replace underlines on links with bottom borders
@mixin border-links($normal, $hover: false, $active: false, $visited: false, $focus: false) {
  & {
    text-decoration: none;
    border-bottom: 1px solid $normal;
    @if $visited {
      &:visited {
        border-bottom-color: $visited;
      }
    }
    @if $focus {
      &:focus {
        border-bottom-color: $focus;
      }
    }
    @if $hover {
      &:hover {
        border-bottom-color: $hover;
      }
    }
    @if $active {
      &:active {
        border-bottom-color: $active;
      }
    }
  }
}

@mixin undo-border-links {
  & {
    text-decoration: none;
    border-bottom: none;
    &:visited {
      border-bottom: none;
    }
    &:focus {
      border-bottom: none;
    }
    &:hover {
      border-bottom: none;
    }
    &:active {
      border-bottom: none;
    }
  }
}

// fade between default and hover colors
@mixin link-transitions($time: 0.5s, $easing: "ease-out", $property: "all") {
  @include transition($property, $time, $easing);
}

// Only use the fancy ampersand in <h#> tags */
@mixin header-ampersands($size: 1em) {
  h1 .amp, h2 .amp, h3 .amp, h4 .amp, h5 .amp, h6 .amp {
    font-size: $size;
    font-family: $font-amp;
    font-style: italic;
  }
}

// text-overflow
@mixin text-overflow($method: ellipsis) {
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: $method;
  text-overflow: $method;
  .ie & {
    width: 100%;
  }
}

// replace OL > LI numbers so they can be styled
@mixin replace-list-numbers($decimal: null) {
  counter-reset: li;
  list-style-type: none;
  li {
    &:before {
      content: counter(li) $decimal;
      counter-increment: li;
    }
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
survivalkit-1.0.beta.14 stylesheets/survivalkit/mixins/_typography.scss
survivalkit-1.0.beta.13 stylesheets/survivalkit/mixins/_typography.scss
survivalkit-1.0.beta.12 stylesheets/survivalkit/mixins/_typography.scss
survivalkit-1.0.beta.11 stylesheets/survivalkit/mixins/_typography.scss
survivalkit-1.0.beta.10 stylesheets/survivalkit/mixins/_typography.scss
survivalkit-1.0.beta.9 stylesheets/survivalkit/mixins/_typography.scss
survivalkit-1.0.beta.8 stylesheets/survivalkit/mixins/_typography.scss