Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added fallback colors for css var #25

Merged
merged 1 commit into from
Oct 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/components/Common/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@
.lil-dropdown:hover:after {
content: '';
transform: rotate(45deg);
/* for IE */
border-top: 2px solid #CFD4DD;
border-left: 2px solid #CFD4DD;
/* */
border-top: 2px solid var(--grey-400);
border-left: 2px solid var(--grey-400);
bottom: -10px;
left: 20px;
@apply lil-block lil-absolute lil-bg-white lil-z-40 lil-h-4 lil-w-4;
}
.lil-dropdown .lil-dropdown-menu {
/* for IE */
box-shadow: 0px 1px 2px 3px #CFD4DD;
/* */
box-shadow: 0px 1px 2px 3px var(--grey-400);
width: 350px;
@apply lil-absolute lil-hidden lil-pt-1 lil-rounded-lg lil-mt-1 lil-p-4;
Expand All @@ -25,6 +32,9 @@
@apply lil-block lil-z-30 lil-bg-white;
}
.lil-dropdown:hover .lil-dropdown-full-menu {
/* for IE */
box-shadow: 0px 1px 2px 3px #CFD4DD;
/* */
box-shadow: 0px 1px 2px 3px var(--grey-400);
left: 0.5rem;
right: 0.5rem;
Expand Down
22 changes: 11 additions & 11 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ module.exports = {
500: "#4B2D18",
},
grey: {
100: "var(--grey-100)",
150: "var(--grey-150)",
200: "var(--grey-200)",
250: "var(--grey-250)",
300: "var(--grey-300)",
350: "var(--grey-350)",
400: "var(--grey-400)",
450: "var(--grey-450)",
500: "var(--grey-500)",
550: "var(--grey-550)",
600: "var(--grey-600)",
100: "var(--grey-100, #FAFAFA)",
150: "var(--grey-150, #F5F5F5)",
200: "var(--grey-200, #FAFBFF)",
250: "var(--grey-250, #EEEEEE)",
300: "var(--grey-300, #E0E0E0)",
350: "var(--grey-350, #D6D6D6)",
400: "var(--grey-400, #CFD4DD)",
450: "var(--grey-450, #ADB1BB)",
500: "var(--grey-500, #8B8F99)",
550: "var(--grey-550, #686D77)",
600: "var(--grey-600, #23282E)",
},
yellow: {
100: "#FEF6DC",
Expand Down