Navigation bar


Description

The Ueyen navigation bar allows creating a nav-bar with a set of items (linked buttons). The navigation can be set to change its alignment on the different breakpoint



Basic use

The following selectors class names can be used to create a simple 1-column to 6-column grid.



un-nav

Default — Sides aligned.

un-nav-r

Items are right-aligned.

un-nav-l

Items are left-aligned.

un-nav-c

Items are center-aligned.



Example of basic use

The following class name .un-nav is assigned to the element, and the class name .un-nav-items is assigned to the container of the nav's items.



The items can be styled individually. in this example, the class name un-bu _primary is assigned to the nav items.


Markup

LOGO
  • Item 1
  • Item 2
  • item 3


LOGO

Navigation and breakpoints

All the selectors in the basic mode can be followed by :s to :h (small to huge) to apply the alignment changes in different breakpoints.



Centered navigation bar on different breakpoints:
un-nav-c:s

Center aligned on larger than Breakpoint Small

un-nav-c:m

Center aligned on larger than Breakpoint Large.

un-nav-c:l

Center aligned on larger than Breakpoint large.

un-nav-c:h

Center aligned on larger than Breakpoint Huge.




Right aligned navigation bar on different breakpoints:
un-nav-r:s

Right aligned on larger than Breakpoint Small

un-nav-r:m

Right aligned on larger than Breakpoint Large.

un-nav-r:l

Right aligned on larger than Breakpoint large.

un-nav-r:h

Right aligned on larger than Breakpoint Huge.




Left aligned navigation bar on different breakpoints:
un-nav-l:s

Left aligned on larger than Breakpoint Small

un-nav-l:m

Left aligned on larger than Breakpoint Large.

un-nav-l:l

Left aligned on larger than Breakpoint large.

un-nav-l:h

Left aligned on larger than Breakpoint Huge.




Sides aligned navigation bar on different breakpoints:
un-nav-s:s

Side aligned on larger than Breakpoint Small

un-nav-s:m

Side aligned on larger than Breakpoint Large.

un-nav-s:l

Side aligned on larger than Breakpoint large.

un-nav-s:h

Side aligned on larger than Breakpoint Huge.



Example of using navigation with brekpoints

The following navigation bar has these class names: un-nav-r:l un-nav-c


The result will be:

un-nav-c One navigation is centered on any screen size smaller than large-breakpoint.

un-nav-r:l One navigation is right aligned on any screen size larger than large-breakpoint.



Markup

  • Item 1
  • Item 2
  • item 3
LOGO


LOGO