Sha256: e30d2104cc9f873e780d6b01af6e2d4d4e11302e4de3fcaa911a72423a0ede86

Contents?: true

Size: 1.82 KB

Versions: 1

Compression:

Stored size: 1.82 KB

Contents

.flex-boxes
  ///////////////////////////////////////////////////////////////////////////////////
  $base-border-radius: 3px !default
  $base-background-color: white !default
  $dark-gray: #333 !default
  $light-gray: #DDD !default
  $base-font-color: $dark-gray !default
  a
    text-decoration: none
  //////////////////////////////////////////////////////////////////////////////////
  $flex-box-border-color: $light-gray
  $flex-box-border: 1px solid $flex-box-border-color
  $flex-box-background: lighten($light-gray, 10%)
  $flex-box-gutter: 0.4em
  $flex-box-width: 18em
  $flex-box-color: transparentize($base-font-color, 0.3)
  $flex-box-top-colors: tomato, #72BFBF, #92B1E3, #E3D743, #CCC, #F6C05C
  +clearfix
  +display(flex)
  +justify-content(center)
  +align-items(stretch)
  +flex-wrap(wrap)
  clear: both
  text-align: center
  .flex-box
    +transition(all 0.2s ease-in-out)
    +flex(2 2 15em)
    +align-self(stretch)
    background: $flex-box-background
    border-radius: $base-border-radius
    box-shadow: inset 0 0 1px $flex-box-border-color, 0 2px 4px darken($base-background-color, 10%)
    display: block
    margin: $flex-box-gutter
    padding: 2em 2em 3em 2em
    @for $i from 1 to 7
      // assign colors from $flex-box-top-colors list
      &:nth-child(#{$i})
        $color-from-list: nth($flex-box-top-colors, $i)
        border-top: 6px solid $color-from-list
        &:focus,
        &:hover
          background-color: transparentize($color-from-list, 0.9)
    img
      display: block
      height: 3em
      margin-bottom: 2em
      margin: auto
      opacity: 0.4
    .flex-title
      color: $flex-box-color
      font-size: 1.2em
      font-weight: 800
      margin-bottom: 0.5em
    p
      color: transparentize($flex-box-color, 0.1)
      line-height: 1.5em
      margin: auto
  .flex-box-big
    +flex(1 1 40em)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
breezeblocks-0.0.1 source/stylesheets/breezeblocks/_flex-boxes.sass