/** * @copyright 2010-2013, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ @import "../common"; //-------------------- Button --------------------// .#{$vendor-prefix}button.skew { border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0; } //-------------------- ButtonGroup --------------------// .#{$vendor-prefix}button-group.skew { border-top-left-radius: $skew; border-top-right-radius: $skew; border-bottom-left-radius: 0; border-bottom-right-radius: 0; > li:first-child .#{$vendor-prefix}button, > .#{$vendor-prefix}button:first-child, > .#{$vendor-prefix}button.first { border-top-left-radius: $skew; border-bottom-left-radius: 0; } > li:last-child .#{$vendor-prefix}button, > .#{$vendor-prefix}button:last-child, > .#{$vendor-prefix}button.last { border-top-right-radius: $skew; border-bottom-right-radius: 0; } } .#{$vendor-prefix}button-group--vertical { &.skew { border-top-left-radius: $skew-y 1.5rem; border-bottom-left-radius: $skew-y 1.5rem; > li:first-child .#{$vendor-prefix}button, > .#{$vendor-prefix}button:first-child { border-top-left-radius: $skew-reverse; } > li:last-child .#{$vendor-prefix}button, > .#{$vendor-prefix}button:last-child { border-bottom-left-radius: $skew-reverse; border-top-right-radius: 0; } } &.skew-reverse { border-top-right-radius: $skew-y 1.25rem; border-bottom-right-radius: $skew-y 1.25rem; > li:first-child .#{$vendor-prefix}button, > .#{$vendor-prefix}button:first-child { border-top-right-radius: $skew-reverse; } > li:last-child .#{$vendor-prefix}button, > .#{$vendor-prefix}button:last-child { border-bottom-right-radius: $skew-reverse; } } } //-------------------- Pagination --------------------// .#{$vendor-prefix}pagination--grouped.skew { ul { border-radius: #{$skew-x $skew-x} 0 0 / #{$skew-y $skew-y} 0 0; } li:first-child a { border-radius: #{$skew-x} 0 0 0 / #{$skew-y} 0 0 0; } li:last-child a { border-radius: 0 #{$skew-x} 0 0 / 0 #{$skew-y} 0 0; } } //-------------------- Visual --------------------// .#{$vendor-prefix}visual-gloss.skew:after { width: 90%; left: 5.5%; border-radius: 1rem 1rem 3rem 3rem / 1rem 1rem 2rem 2rem; }