Sha256: ddb054caf060e8768760ee6b5ef9ff0b3ff216c2b9294411e121d300363d9c70

Contents?: true

Size: 1.63 KB

Versions: 33

Compression:

Stored size: 1.63 KB

Contents

@import "global";



//
// @name _thumbs.scss
// @dependencies _globals.scss
//

//
// @variables
//

$include-html-media-classes: $include-html-classes !default;

// We use these to control border styles
$thumb-border-style: solid !default;
$thumb-border-width: 4px !default;
$thumb-border-color: #fff !default;
$thumb-box-shadow: 0 0 0 1px rgba(#000,.2) !default;
$thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5) !default;

// Radius and transition speed for thumbs
$thumb-radius: $global-radius !default;
$thumb-transition-speed: 200ms !default;

//
// @mixins
//

// We use this to create image thumbnail styles.
//
// $border-width - Width of border around thumbnail. Default: $thumb-border-width.
// $box-shadow - Box shadow to apply to thumbnail. Default: $thumb-box-shadow.
// $box-shadow-hover - Box shadow to apply on hover. Default: $thumb-box-shadow-hover.
@mixin 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;
  }
}


@include exports("thumb") {
  @if $include-html-media-classes {

    /* Image Thumbnails */
    .th {
      @include thumb;
      @include single-transition(all,$thumb-transition-speed,ease-out);

      &.radius { @include radius($thumb-radius); }
    }
    a.th { display: inline-block; max-width:100%; }

  }
}

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
publish_my_data-1.3.5 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.3.4 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.3.3 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.3.2 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.3.1 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.3.0 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.2.4 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.2.3 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.2.2 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.2.1 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
publish_my_data-1.2.0 app/assets/stylesheets/vendor/zurb/foundation/components/_thumbs.scss
foundation-rails-5.0.2.0 vendor/assets/stylesheets/foundation/components/_thumbs.scss
foundation-rails-5.0.1.0 vendor/assets/stylesheets/foundation/components/_thumbs.scss