// Miscellaneous mixins.
//
// Copyright (C) 2013 Damien Dart, <damiendart@pobox.com>.
// This file is distributed under the MIT licence. For more information,
// please refer to the accompanying "LICENCE" file.

// Produces declarations and rules that make up the clear-fix hack. See
// <http://nicolasgallagher.com/micro-clearfix-hack/> for more information.
@mixin clear-fix() {
  *zoom: 1;
  &:after, &:before {
    clear: both;
    content: " ";
    display: table; } }

// Produces declarations and rules for links where when a user hovers over a
// link, the background and foreground colours are swapped. At the moment,
// links that have already been visited are not differentiated.
@mixin colour-swap-links($background-colour, $foreground-colour) {
  background: $background-colour;
  color: $foreground-colour;
  &:active, &:focus, &:hover, &:visited:hover {
    background: $foreground-colour;
    color: $background-colour; }
  &:visited {
    // TODO: Make visited links a little different from other links?
    background: $background-colour;
    color: $foreground-colour; } }

// Produces declarations that reset the box-model measurements. See also
// <http://reference.sitepoint.com/css/boxmodel>.
@mixin reset-box-model() {
  @each $property in ("border", "margin", "padding") {
    #{$property}: 0; } }

// Miscellaneous mixins.
//
// Copyright (C) 2013 Damien Dart, <damiendart@pobox.com>.
// This file is distributed under the MIT licence. For more information,
// please refer to the accompanying "LICENCE" file.

// Produces declarations and rules that make up the clear-fix hack. See
// <http://nicolasgallagher.com/micro-clearfix-hack/> for more information.
@mixin clear-fix() {
  *zoom: 1;
  &:after, &:before {
    clear: both;
    content: " ";
    display: table; } }

// Produces declarations and rules for links where when a user hovers over a
// link, the background and foreground colours are swapped. At the moment,
// links that have already been visited are not differentiated.
@mixin colour-swap-links($background-colour, $foreground-colour) {
  background: $background-colour;
  color: $foreground-colour;
  &:active, &:focus, &:hover, &:visited:hover {
    background: $foreground-colour;
    color: $background-colour; }
  &:visited {
    // TODO: Make visited links a little different from other links?
    background: $background-colour;
    color: $foreground-colour; } }

Remove unused "reset box model" mixin.
Remove unused "reset box model" mixin.
