-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ using palette onload/unload to keep track of palettes + moved css to styles.css + using css vars set to settings vars - removed funding - removed listeners - removed settings tab headings
- Loading branch information
1 parent
7b8d7aa
commit f43234b
Showing
5 changed files
with
91 additions
and
68 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
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* Container */ | ||
.palette { | ||
/* fallback vars */ | ||
--palette-height: 150px; | ||
--palette-background-color: transparent; | ||
--palette-color: #000; | ||
--palette-column-flex-basis: 20px; | ||
|
||
display: flex; | ||
flex-direction: row; | ||
width: 100%; | ||
border-radius: 5px; | ||
overflow: hidden; | ||
cursor: pointer; | ||
height: var(--palette-height); | ||
} | ||
|
||
.palette.paletteColumn { | ||
flex-direction: column; | ||
} | ||
|
||
/* Child */ | ||
.palette > div { | ||
display: flex; | ||
flex: 1; | ||
flex-basis: 0px; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
transition: all 0.1s ease-in-out; | ||
background-color: var(--palette-background-color); | ||
} | ||
|
||
.palette.paletteColumn > div:hover { | ||
flex-basis: var(--palette-column-flex-basis); | ||
} | ||
|
||
.palette:not(.paletteColumn) > div:hover { | ||
flex-basis: 80px; | ||
} | ||
|
||
.palette > div:hover > span { | ||
display: block; | ||
} | ||
|
||
/* Child Text */ | ||
.palette > div > span { | ||
display: none; | ||
text-align: center; | ||
font-size: 100%; | ||
font-weight: bold; | ||
color: var(--palette-color); | ||
} | ||
|
||
/* Display invalid text */ | ||
.palette > div > span.invalid { | ||
display: block; | ||
} |