@heycar-uikit/core
Version:
The React UI library from HeyCar
141 lines (129 loc) • 2.35 kB
CSS
:root {
/* heycar mint color */
/* mica blue color */
--color-mica-blue-500: #164ca3;
/* sunbeam blue color */
/* mustang yellow color */
/* old ferrari red color */
/* -- fantasy name of "green" color to be defined -- */
/* -- fantasy name of "whatsapp" color to be defined -- */
/* -- fantasy name of "red" color to be defined -- */
/* tarmac grey color */
--color-tarmac-grey-700: #303030;
/* brand colors */
--color-championship-white: #fff;
}
/* Depricated. Do Not Use */
:root {
--spacing-2: 8px;
--spacing-3: 12px;
--spacing-8: 32px;
--spacing-16: 64px;
}
:root {
/* Font families */
/* Font weights */
}
/*
Heading
*/
/*
Sub-Heading
*/
/*
Body
*/
/*
Caption
*/
/*
Overline
*/
/*
Button
*/
/*
Button Old - DO NOT USE
*/
/* If this is ever changed please update breakpoints.json as well */
/* Mobile */
/* Tablet */
/* Desktop */
/* Default theme (light) */
:root {
/*
Colors
*/
--color-primary-500: var(--color-mica-blue-500);
--color-neutral-700: var(--color-tarmac-grey-700);
/*
Sizes
*/
}
body {
color: var(--color-neutral-700);
}
.navItem {
display: inline-flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0;
padding: 0 var(--spacing-2);
width: auto;
height: 40px;
border: 0;
background: var(--color-primary-500);
text-decoration: none;
color: #fff;
transition: color 0.3s ease, background 0.3s ease;
}
.navItem > span {
width: 100%;
white-space: nowrap;
}
.navItem.isActive,
.navItem.isCurrentPage,
.navItem:hover,
.navItem:focus {
background: #fff;
color: var(--color-primary-500);
}
@media (min-width: 1280px) {
.navItem {
padding: 0 var(--spacing-3);
}
}
.nav {
display: none;
width: 100%;
height: auto;
background: var(--color-primary-500);
}
.nav > ul {
box-sizing: border-box;
display: flex;
margin: 0 auto;
padding: 0 var(--spacing-8);
list-style: none;
max-width: 1440px;
}
.nav > ul > li {
display: inline;
}
.nav .collapse {
position: absolute;
left: 0;
width: 100%;
background: var(--color-championship-white);
}
/* Dropdown nav starts here */
@media (min-width: 1024px) {
.nav {
display: block;
}
}
@media (min-width: 1440px) {
.nav > ul {
padding: 0 var(--spacing-16);
}
}