Sha256: 806f9e95eaea5ade05cfccc794a7837ae45d48dac05773b68a2168d57c4afadf

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

.hover-tile-outer {
  $hover-tile-height: 10em;

  background-position: bottom;
  background-size: cover;
  background: url("https://raw.github.com/Magnus-G/Random/master/mountains.png");
  background-size: cover;
  background-color: #BEB56E;
  border: 1px solid $base-border-color;
  height: $hover-tile-height;
  margin-bottom: $base-line-height;
  cursor: pointer;
  
  @include media($medium-screen) {
    width: 40%;
  }

  .hover-tile-container {
    height: $hover-tile-height;
    overflow: hidden;
  }

  .hover-tile-container:hover > .hover-tile {
    @include transform(translate(0, -100%));
  }

  .hover-tile {
    @include transition(all, .2s ease-in-out);
    background:inherit;
    color: white;
    height:inherit;
    padding: 1em 1.5em;
  }

  .hover-tile-visible {
    color: transparentize(white, .3);
    font-size: 2em;
    font-weight: 200;  
    padding-top: 2em;
    text-align: center;
  }

  .hover-tile-hidden {
    background: transparentize(black, .5);
    h4 {
      margin-bottom: .5em;
    }
    p {
      color: transparentize(white, .3);
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refills-0.0.2 source/stylesheets/refills/_hover-tile-animation.scss