Sha256: 1c1edbe394760f506f75d62132a384580e59bc89eb7c75bab317f6bfef36680d

Contents?: true

Size: 590 Bytes

Versions: 5

Compression:

Stored size: 590 Bytes

Contents

$dimensions: 16 24 32 48 64 96 128

.image
  display: block
  position: relative
  img
    display: block
  // Ratio
  &.is-square,
  &.is-1by1,
  &.is-4by3,
  &.is-3by2,
  &.is-16by9,
  &.is-2by1
    img
      +overlay
      height: 100%
      width: 100%
  &.is-square,
  &.is-1by1
    padding-top: 100%
  &.is-4by3
    padding-top: 75%
  &.is-3by2
    padding-top: 66.6666%
  &.is-16by9
    padding-top: 56.25%
  &.is-2by1
    padding-top: 50%
  // Sizes
  @each $dimension in $dimensions
    &.is-#{$dimension}x#{$dimension}
      height: $dimension * 1px
      width: $dimension * 1px

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bulma-rails-0.0.26 app/assets/stylesheets/sass/elements/image.sass
bulma-rails-0.0.24 app/assets/stylesheets/sass/elements/image.sass
bulma-rails-0.0.23 app/assets/stylesheets/sass/elements/image.sass
bulma-rails-0.0.20 app/assets/stylesheets/bulma/elements/images.sass
bulma-rails-0.0.18 app/assets/stylesheets/bulma/elements/images.sass