HTML Markup:
Single buttons:
1 2 3 |
<a href="#" class="btn btn-xs btn-default ct-btn-rounded"> Small Button </a> |
1 2 3 |
<a href="#" class="btn btn-sm btn-primary ct-btn-rounded"> Medium Button </a> |
1 2 3 |
<a href="#" class="btn ct-btn--transparent ct-btn-rounded"> Normal Button </a> |
Description:
btn – this is a base class that is obligatory for every button.
ct-btn–transparent – adds transparency to button leaving only borders.
btn-xs,.btn-sm… etc. these classes gives size to a button.
ct-btn-rounded – this class makes button rounded.
‘btn-primary‘ and ‘btn-default‘ – types of buttons, which change color to: black and white .
Notice:
if class ‘ct-u-colorWhite‘ is a wrapping class e.g.
1 2 3 4 5 |
<div class="ct-u-colorWhite"> <a class="btn btn-lg btn-primary"> Click me ! </a> </div> |
It changes properties of this button to white.
Some buttons may keep the properties of a link. It’s strongly adviced to create them by using
‘
<a> ‘ attribute.
1 |
<a class="btn btn-link btn-link--white">Link</a> |
Button groups
1 2 3 4 5 |
<div class="btn-group ct-btn-group--rounded btn-group--equal ct-u-colorWhite" role="group" aria-label="..."> <a class="btn ct-btn--transparent">Left</a> <a class="btn ct-btn--transparent">Center</a> <a class="btn ct-btn--transparent">Right</a> </div> |
Button wrapper
1 2 3 4 |
<div class="ct-btn-wrapper"> <a class="btn ct-btn--transparent ct-btn-rounded ct-js-magnificPopupImage" href="assets/images/top-product-1-lg.jpg"><i class="fa fa-search"></i></a> <a class="btn ct-btn--transparent ct-btn-rounded" href="#"><i class="fa fa-shopping-cart"></i></a> </div> |
CSS Classes:
ct-btn-rounded: Gives border radius to button.
ct-u-colorWhite: changes button’s color properties to white.
ct-btn–transparent, btn-primary, btn-default, btn-link: button types.
btn-link–white: Gives white color properties to a link.
ct-btn-wrapper: Wraps buttons if they are dsplayed on image.
Group buttons :
ct-btn-group–rounded: Gives border radius to a button group.
btn-group–equal: Buttons in button group are equal.
Button sizes:
btn-xs,.btn-sm,.btn-lg,.btn-lg-2: button size.
ct-btn–full: full width button.
Button types:
btn-default, btn-primary, btn-link: Button types.
btn-link–white: variation to change ‘btn-link’ properties to white.