This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from Kedyn/design
Design
- Loading branch information
Showing
58 changed files
with
2,418 additions
and
676 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,44 @@ | ||
import { ITheme } from "utils/types"; | ||
import { createUseStyles } from "react-jss"; | ||
import colorNameToRGB from "utils/colorConverter"; | ||
|
||
export const useColorSwatchStyles = createUseStyles({ | ||
playerColorChangeMenuIcon: (props) => ({ | ||
display: "block", | ||
width: "30px", | ||
height: "30px", | ||
borderRadius: "15px", | ||
flex: "1 1 calc(25% - 10px)", | ||
backgroundColor: props.targetColor, | ||
margin: "0.15rem", | ||
|
||
"&:hover": { | ||
backgroundColor: `rgba(${colorNameToRGB(props.targetColor)}, 0.5)`, | ||
cursor: "pointer", | ||
}, | ||
}), | ||
}); | ||
|
||
export default createUseStyles((theme: ITheme) => ({ | ||
root: {}, | ||
playerColorChangeMenu: { | ||
alignItems: "center", | ||
background: theme.backgroundColor, | ||
border: "0.0625rem solid rgba(240, 240, 240, 0.25)", | ||
borderRadius: "6px", | ||
boxShadow: "0 0 1rem rgba(240, 240, 240, 0.1)", | ||
bottom: "110%", | ||
display: "flex", | ||
flex: 4, | ||
flexWrap: "wrap", | ||
left: 0, | ||
justifyContent: "space-between", | ||
position: "absolute", | ||
padding: "0.25rem", | ||
width: "100%", | ||
zIndex: 10, | ||
}, | ||
playerColorChangeMenuHidden: { | ||
display: "none", | ||
}, | ||
})); |
Oops, something went wrong.