Buttons
List of all kind of buttons used throughout the project. Every button starts
with a class (pds-c-button) that contains the shared behaviour.
There are modifiers to describe the primary or secondary style,
and the themes, when used, primarily consists of colors for the default,
hover, and focus states. If you want a button to be present but not yet
clickable, just add the disabled modifier class provided in the example.
The buttons with an icon contain an extra container with the SVG-code.
Just choose a button that fits best to your situation, copy
the code and alter to your needs.
Buttons use themes for their different colors. If you want a
different colored button, try a different theme on the button.
Elements and modifiers
- .pds-c-button[ .primary | .secondary ]
- .pds-c-button[ .large | .regular |.small ]
- .pds-c-button[ .full-width ]
- .pds-c-button[ .accent | .disabled ]
- .pds-c-button[ .toggle[.on|.off] | .transparent ]
- .pds-c-button > pds-c.button-label
- .pds-c-button > .pds-c-button-content[.big] > [ i.pds-c-button-icon .{name} + ] .pds-c-button-label [ .left | .right ] [ + i.pds-c-button-icon .{name} ]
- .pds-c-button > .pds-c-button-content[.big] > [ svg.pds-c-button-icon + ] .pds-c-button-label [ .left | .right ] [ + svg.pds-c-button-icon ]