Primary nav
The main navigation for The Cosmopolitan site, visible at the top of the screen.
Default primary nav orc-c-primary-nav
The main navigation for The Cosmopolitan site, visible at the top of the screen.
Primary nav megamenu orc-c-primary-nav--megamenu
The main navigation for The Cosmopolitan site that contains a megamenu on larger screens.
Usage
When to use
Use this component when establishing the items and any subnavigation in the primary navigation. This container lives within a default header.
When to consider an alternative
The header contains both the primary nav and The Cosmopolitan logo. When creating a Cosmopolitan site, be sure to include a header at the top of each page.
Class Name | Description |
---|---|
Required
|
Apply to the primary nav’s containing |
Modifier
|
Apply in addition to the |
Required
|
Apply to the |
Required
|
Apply to each |
JS
|
Applied in addition to the |
Required
|
Apply to an |
JS
|
Applied in addition to the |
Required
|
Actual text of the primary nav item. Apply to a |
Required
|
Base class for icons in the design system. Used to set the base styles for the primary nav icon |
Required
|
Apply in addition to the |
JS
|
Added to the first primary nav icon that is visible by default. This allows JS to trigger this icon to swap icons when the primary nav panel is opened and closed. |
JS
|
Added to the second primary nav icon that is hidden by default. This allows JS to trigger this icon to remove the hidden class when the primary nav panel is open and then add it back in when it is closed. |
Required
|
Utility class that is required when applied to the |
Required
|
Applied to |
JS
|
Applied in addition to the |
Required
|
Applied to the inner |
|
Applied within the primary nav panel only when the |
|
Actual image used within the primary nav panel with the megamenu variation. |
JS
|
Applied in addition to |
|
Applied to the container of the sublist container when the megamenu variation is implemented. This helps with the layout of the primary nav sublist container. |
|
Applied to the container of the subnavigation when the megamenu variation is implemented. This helps with the layout of each subnavigation list. |
|
Applied to the |
|
Applied to the |
|
Applied to each |
|
Applied to the |
JS
|
Applied in addition to each |
JS
|
Applied in addition to each |