Buttons
Add btn to a link or button. Put buttons inside buttons to centre them and space them out, and add a colour class for the background.
<div class="buttons">
<a class="btn blurple-bg white-text" href="#">Plain</a>
<a class="btn hover blurple-dropshadow white-text" href="#">hover</a>
<a class="btn hover-scale emerald-bg white-text" href="#">hover-scale</a>
<a class="btn hover-scale-inset carrot-bg white-text" href="#">hover-scale-inset</a>
<a class="btn no-dark-hover alizarin-bg white-text" href="#">no-dark-hover</a>
</div>| Class | Description |
|---|---|
buttons | Centres the buttons inside it. On small screens they wrap two per row |
buttons.one-line | On small screens, puts one button per row instead |
btn | The button itself |
btn.hover | Floats the button upwards on hover |
btn.hover-scale | Grows the button on hover |
btn.hover-scale-inset | Shrinks the button on hover |
btn.animation | Slides the buttons in one after another when the page loads |
btn.no-dark-hover | Turns off the darkening on hover |
btn.{colour}-dropshadow | Keeps the drop shadow while hovering |
<div class="buttons">
<a class="btn animation sun-flower-bg black-text" href="#">One</a>
<a class="btn animation sun-flower-bg black-text" href="#">Two</a>
<a class="btn animation sun-flower-bg black-text" href="#">Three</a>
</div>Source: scss/components/_buttons.scss