Sha256: 8801a4a97d71a2e8cf50858681bbd22a300803196eb14fca48bb0e2e897279cf

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

.hover-tile-outer
  ///////////////////////////////////////////////////////////////////////////////////
  $base-border-color: gainsboro !default
  $base-line-height: 1.5em !default
  $medium-screen: em(640) !default
  h4
    margin: 0
  p
    line-height: $base-line-height
  //////////////////////////////////////////////////////////////////////////////////
  $hover-tile-height: 10em
  background: url("https://s3.amazonaws.com/FutureGov/sampleimage.jpg")
  background-position: top
  background-size: cover
  background-color: beige
  border: 1px solid $base-border-color
  cursor: pointer
  height: $hover-tile-height
  margin-bottom: $base-line-height
  +media($medium-screen)
    width: 40%

  .hover-tile-container
    height: $hover-tile-height
    overflow: hidden
  .hover-tile-container:hover > .hover-tile
    +transform(translate(0, -100%))
  .hover-tile
    +transition(all, 0.2s ease-in-out)
    background: inherit
    color: white
    height: inherit
    overflow: hidden
    padding: $base-spacing
  .hover-tile-hidden
    background: transparentize(#000, 0.5)
    p
      color: transparentize(#fff, 0.3)
    h4
      margin-bottom: 0.5em

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
breezeblocks-0.0.4 source/stylesheets/breezeblocks/_hover-tile-animation.sass
breezeblocks-0.0.2 source/stylesheets/breezeblocks/_hover-tile-animation.sass