-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since the removal of the cozy-bar v7, Drive don't load an old version of cozy-ui. These variables are not defined anymore see cozy/cozy-ui#1743 The best way to use absolute color is to import them from the palette.json ``` palette=json('settings/palette.json', { hash: true }) ``` and use this way ``` background-color: palette['barney'] ``` I needed to add the `:` because sometimes I had compilations errors, sometime it was compiling in cozy-sharing but the classname was not present in the final bundle...
- Loading branch information
Showing
2 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
@require 'settings/palette.styl' | ||
|
||
palette=json('settings/palette.json', { hash: true }) | ||
.coz-btn-shared | ||
border-color var(--emerald) | ||
background-color var(--emerald) | ||
color var(--white) | ||
border-color: palette['emerald'] | ||
background-color: palette['emerald'] | ||
color: palette['white'] | ||
transition all .2s ease-out | ||
|
||
&:focus | ||
&:not([disabled]):not([aria-disabled=true]):hover | ||
border-color var(--malachite) | ||
background-color var(--malachite) | ||
border-color: palette['malachite'] | ||
background-color: palette['malachite'] | ||
|
||
.coz-btn-sharedWithMe | ||
border-color var(--lightishPurple) | ||
background-color var(--lightishPurple) | ||
color var(--white) | ||
border-color: palette['lightishPurple'] | ||
background-color: palette['lightishPurple'] | ||
color: palette['white'] | ||
transition all .2s ease-out | ||
|
||
&:focus | ||
&:not([disabled]):not([aria-disabled=true]):hover | ||
border-color var(--barney) | ||
background-color var(--barney) | ||
border-color: palette['barney'] | ||
background-color: palette['barney'] |