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