# UI Elements
Basscss can be used to create many different user interface elements out of the box. With utility styles and a thoughtfully-architected templating system, you can keep CSS bloat to a minimum, while making iterative design changes to partials and components. You don’t need to make CSS do your templating engine’s job.
Note: this guide makes use of the optional UI Utility Groups module that is not included in the default Basscss package. # Button Sizes Button font sizes can be adjusted with font size utilities. ```html ``` To change the line-height and padding but leave the font-size the same, use button size extensions in the optional basscss-button-sizes module. Font size utilities and button size extensions can be combined for more options. ```html ``` # Navigation In HTML, navigation is essentially just groups of links. By using the same styles as buttons, you can ensure that navigation links are evenly spaced and have large, easy-to-hit targets. Negative margin utilities can help line up text elements with other elements on the page. The `.btn` style can be used for navigation items. This button style inherits color from its parent, or it can be set with color utilities. ```html ``` The flex object can be used to create justified navigation. Be sure to test your specific navigation across a range of devices to ensure that labels fit within the viewport. ```html ``` To stack navigation elements, use the `.block` utility. ```html ``` Standard color styles can be applied to create a variety of navigation styles. ```html ``` The default `.btn-primary` style can be used to create a pill navigation. ```html ``` If you’d like to wrap your navigation in a `ul` use the `.list-reset` style to remove bullets and padding. ```html ``` # Breadcrumbs Breadcrumbs are a common and well-understood wayfinding pattern used in multi-level hierarchies. Stylistically, these are essentially the same as navigation, but with separators between items. ```html ``` ```html ```Note: the icons used in this example are from Geomicons Open.
# Pagination Pagination is used to split up large lists in a user-friendly way and allows for deep linking. Use a combination of layout utilities and button styles to create navigation that suites your design. ```html ``` Responsive state utilities can be used to progressively enhance pagination with numbers on devices with wider viewports. ```html ``` Standard color styles can be used to control the appearance. ```html ``` # Button Groups Button groups allow for more flexibility in establishing gestalt and controlling information density. Use a combination of layout utilities and color extensions to create button groups. The utilities `.rounded-left`, `.rounded-right`, and `.not-rounded` can be used to override button and form field border radii. ```htmlNote: this example uses a custom JavaScript function for the disclosure mechanism. Use a similar function, component, or directive in your own JavaScript to control behavior.
# Navbars Navbars are used to visually group global or sub navigation and to separate actions and navigation from content. Using a combination of layout utilities and color styles, you can create a wide range of navbars that are simple to customize and update. This example uses a double sided media object to create a flexible center with a search input that stacks at narrow viewport widths. By applying the `.py2` utility to the link buttons, they become the height of normal buttons and inputs plus `.py1`. ```html ``` By using rgba-based color utilities, the color can quickly be changed using background color utilities. ```html ``` Because Basscss is built with inter-operable styles, things like a user account dropdown can be added anywhere in the navbar. ```html ``` More complex [Priority Plus](http://bradfrostweb.com/blog/web/complex-navigation-patterns-for-responsive-design/#priority-plus) navigations can also be created using responsive utilities. ```html ``` # Boxes Boxes are used to group content and collections of application resources. Use combinations of layout utilities and color styles to create boxes. ```htmlBacon ipsum dolor sit amet chuck prosciutto landjaeger ham hock filet mignon shoulder hamburger pig venison. Ham bacon corned beef, sausage kielbasa flank tongue pig drumstick capicola swine short loin ham hock kevin.
Bacon ipsum dolor sit amet chuck prosciutto landjaeger ham hock filet mignon shoulder hamburger pig venison. Ham bacon corned beef, sausage kielbasa flank tongue pig drumstick capicola swine short loin ham hock kevin.
Bacon ipsum dolor sit amet chuck prosciutto landjaeger ham hock filet mignon shoulder hamburger pig venison.
Bacon ipsum dolor sit amet chuck prosciutto landjaeger ham hock filet mignon shoulder hamburger pig venison. Ham bacon corned beef, sausage kielbasa flank tongue pig drumstick capicola swine short loin ham hock kevin. Bacon t-bone hamburger turkey capicola rump short loin.
Turkey short loin tenderloin jerky.