-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tooltip and chart styling fixes (#535)
* Tooltip and chart styling fixes * Tooltip and chart styling fixes * Un-deleted .env.example * Put grade colors in an enum instead of array * fix prettier lint errors * delete unused file --------- Co-authored-by: Awesome-E <[email protected]>
- Loading branch information
Showing
5 changed files
with
62 additions
and
50 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export const Colors = ['#60A3D1', '#81C284', '#F5D77F', '#ECAD6D', '#E8966D', '#EBEBEB', '#EBEBEB']; |
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,9 @@ | ||
export enum GradeColors { | ||
A = '#60A3D1', | ||
B = '#81C284', | ||
C = '#F5D77F', | ||
D = '#ECAD6D', | ||
F = '#E8966D', | ||
P = '#4AB486', | ||
NP = '#E36436', | ||
} |
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,17 @@ | ||
import { type Theme } from '@nivo/core'; | ||
|
||
export const tooltipStyle: Theme = { | ||
tooltip: { | ||
container: { | ||
background: 'rgba(0,0,0,.87)', | ||
color: '#ffffff', | ||
fontSize: '1.2rem', | ||
outline: 'none', | ||
margin: 0, | ||
padding: '0.25em 0.5em', | ||
borderRadius: '2px', | ||
paddingLeft: '0.5em', | ||
paddingRight: '0.5em', | ||
}, | ||
}, | ||
}; |