foundation
Version:
You may also want to checkout:
58 lines (45 loc) • 1.28 kB
text/stylus
//
// Image Thumbnail Variables
//
$include-html-media-classes ?= $include-html-classes;
// We use these to control border styles
$thumb-border-style ?= solid;
$thumb-border-width ?= 4px;
$thumb-border-color ?= #fff;
$thumb-box-shadow ?= 0 0 0 1px rgba(#000,.2);
$thumb-box-shadow-hover ?= 0 0 6px 1px rgba($primary-color,0.5);
// Radius and transition speed for thumbs
$thumb-radius ?= $global-radius;
$thumb-transition-speed ?= 200ms;
//
// Image Thumbnail Mixins
//
// We use this to create image thumbnail styles.
thumb($border-width=$thumb-border-width, $box-shadow=$thumb-box-shadow, $box-shadow-hover=$thumb-box-shadow-hover) {
line-height: 0;
display: inline-block;
border: $thumb-border-style $border-width $thumb-border-color;
if $experimental {
-webkit-box-shadow: $box-shadow;
}
box-shadow: $box-shadow;
&:hover,
&:focus {
if $experimental {
-webkit-box-shadow: $box-shadow-hover;
}
box-shadow: $box-shadow-hover;
}
}
// If html classes are turned on we'll include these classes.
if $include-html-media-classes != false {
/* Image Thumbnails */
.th {
thumb();
single-transition(all,$thumb-transition-speed,ease-out);
&.radius {
radius($thumb-radius);
}
}
a.th { display: block; }
}