Sha256: 6368cce78b7110833ba539de3d424876ae51dec1926c4b7ce65e995282e4c232

Contents?: true

Size: 1.66 KB

Versions: 3

Compression:

Stored size: 1.66 KB

Contents

@mixin border-radius ($top-right, $top-left: false, $bottom-right: false, $bottom-left: false) {
  @if not $top-left { $top-left: $top-right }
  @if not $bottom-right { $bottom-right: $top-right }
  @if not $bottom-left { $bottom-left: $top-left }

  @include border-top-left-radius($top-left);
  @include border-top-right-radius($top-right);
  @include border-bottom-left-radius($bottom-left);
  @include border-bottom-right-radius($bottom-right);
}

@mixin border-top-left-radius($top-left) {
  -webkit-border-top-left-radius: $top-left;
  -moz-border-radius-topleft: $top-left;
  border-top-left-radius: $top-left;
}

@mixin border-top-right-radius($top-right) {
  -webkit-border-top-right-radius: $top-right;
  -moz-border-radius-topright: $top-right;
  border-top-right-radius: $top-right;
}

@mixin border-bottom-left-radius($bottom-left) {
  -webkit-border-bottom-left-radius: $bottom-left;
  -moz-border-radius-bottomleft: $bottom-left;
  border-bottom-left-radius: $bottom-left;
}

@mixin border-bottom-right-radius($bottom-right) {
  -webkit-border-bottom-right-radius: $bottom-right;
  -moz-border-radius-bottomright: $bottom-right;
  border-bottom-right-radius: $bottom-right;
}

@mixin border-top-radius($top) {
  @include border-top-left-radius($top);
  @include border-top-right-radius($top);
}

@mixin border-bottom-radius($bottom) {
  @include border-bottom-left-radius($bottom);
  @include border-bottom-right-radius($bottom);
}

@mixin border-left-radius($left) {
  @include border-top-left-radius($left);
  @include border-bottom-right-radius($left);
}

@mixin border-right-radius($right) {
  @include border-top-right-radius($right);
  @include border-bottom-right-radius($right);
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wiskey-0.0.3 app/assets/stylesheets/css3/_border-radius.scss
wiskey-0.0.2 app/assets/stylesheets/css3/_border-radius.scss
wiskey-0.0.1 app/assets/stylesheets/css3/_border-radius.scss