@heycar-uikit/core
Version:
The React UI library from HeyCar
244 lines (225 loc) • 5.52 kB
CSS
:root {
/* heycar mint color */
/* mica blue color */
--color-mica-blue-500: #164ca3;
--color-mica-blue-600: #123d82;
--color-mica-blue-700: #052962;
/* 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-100: #e6e6e6;
--color-tarmac-grey-600: #595959;
--color-tarmac-grey-700: #303030;
/* brand colors */
}
/* Depricated. Do Not Use */
:root {
--spacing-2: 8px;
--spacing-3: 12px;
--spacing-4: 16px;
--spacing-6: 24px;
--spacing-8: 32px;
--spacing-16: 64px;
}
:root {
/* Font families */
--font-family-system: Objektiv, sans-serif, 'Helvetica Neue', Helvetica, Arial;
/* Font weights */
--font-weight-regular: 400;
--font-weight-medium: 500;
--font-weight-bold: 600;
}
/*
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-primary-600: var(--color-mica-blue-600);
--color-primary-700: var(--color-mica-blue-700);
--color-neutral-100: var(--color-tarmac-grey-100);
--color-neutral-600: var(--color-tarmac-grey-600);
--color-neutral-700: var(--color-tarmac-grey-700);
/*
Sizes
*/
}
body {
color: var(--color-neutral-700);
}
/*
* Base
*/
.header__subNavItem_1raj3 {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 40px;
border: 0;
background: #fff;
text-decoration: none;
color: var(--color-neutral-700);
transition: color 0.3s ease, background 0.3s ease;
}
.header__subNavItem_1raj3 > span {
font-size: 14px;
line-height: 22px;
font-weight: var(--font-weight-regular);
font-family: var(--font-family-system);
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
.header__subNavItem_1raj3:hover {
color: var(--color-neutral-600);
text-decoration: underline;
text-decoration-color: var(--color-neutral-600);
}
}
@media (min-width: 1024px) {
.header__subNavItem_1raj3 > q {
display: block;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
white-space: nowrap;
}
.header__subNavItem_1raj3 > q:before,
.header__subNavItem_1raj3 > q:after {
display: none;
}
.header__subNavItem_1raj3.header__hasCaption_1raj3 {
flex-direction: column;
align-items: flex-start;
gap: var(--spacing-2);
margin-bottom: var(--spacing-4);
height: 52px;
}
.header__subNavItem_1raj3.header__hasCaption_1raj3 > span {
font-size: 16px;
font-weight: var(--font-weight-bold);
letter-spacing: 0.2px;
font-family: var(--font-family-system);
}
}
.header__subNav_1raj3 {
margin: 0 0 var(--spacing-2);
border-bottom: solid 1px var(--color-neutral-100);
.lastNavItem & {
border-bottom: none;
}
}
@media (min-width: 1024px) {
.header__subNav_1raj3 {
box-sizing: border-box;
display: flex;
margin: 0;
padding: var(--spacing-8) var(--spacing-8);
max-width: 1440px;
border-bottom: none;
}
}
@media (min-width: 1440px) {
.header__subNav_1raj3 {
margin-left: auto ;
margin-right: auto ;
padding: var(--spacing-8) var(--spacing-16);
}
}
.header__subNavGroup_1raj3 {
margin-bottom: var(--spacing-6);
}
.header__subNavGroup_1raj3 > span[role='separator'] {
font-size: 14px;
font-weight: var(--font-weight-medium);
font-family: var(--font-family-system);
color: var(--color-neutral-700);
display: block;
}
.header__subNavGroup_1raj3 > ul {
list-style: none;
display: flex;
flex-direction: column;
align-content: flex-start;
flex-wrap: wrap;
max-height: 224px;
padding-bottom: 0;
}
.header__subNavGroup_1raj3 > ul > li {
width: 100%;
}
/* Dropdown nav starts here */
@media (min-width: 1024px) {
.header__subNavGroup_1raj3 {
margin-bottom: 0;
}
.header__subNavGroup_1raj3 > span[role='separator'] {
margin-bottom: var(--spacing-2);
padding-bottom: var(--spacing-3);
border-bottom: solid 1px var(--color-neutral-100);
}
.header__subNavGroup_1raj3 > ul {
padding: 0;
}
.header__subNavGroup_1raj3 > ul > li {
margin-right: var(--spacing-6);
}
.header__subNavGroup_1raj3.fullWidth > ul > li {
width: calc(33% - var(--spacing-6));
}
.header__subNavGroup_1raj3.halfWidth > ul > li {
width: calc(50% - var(--spacing-6));
}
}
.header__showAll_1raj3 {
font-size: 12px;
font-weight: var(--font-weight-bold);
letter-spacing: 0.2px;
font-family: var(--font-family-system);
display: block;
padding: var(--spacing-3) 0;
color: var(--color-primary-500);
}
@media (hover: hover) and (pointer: fine) {
.header__showAll_1raj3:hover {
text-decoration-thickness: 2px;
color: var(--color-primary-600);
}
}
.header__showAll_1raj3:active {
color: var(--color-primary-700);
}