-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix padding judges using react-tooltip, need to fix arrow
- Loading branch information
1 parent
e526e5b
commit c784f75
Showing
9 changed files
with
173 additions
and
73 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
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,21 @@ | ||
.judge-fun-facts { | ||
.tooltip { | ||
font-family: $p-font; | ||
font-size: $p-size; | ||
color: rgb(9, 9, 33); | ||
background-color: rgba(255, 255, 255, 0.8); | ||
border: 1px solid rgba(255, 255, 255, 1); | ||
backdrop-filter: blur(5px); | ||
padding: 1rem; | ||
color: $primary-blue; | ||
z-index: 99; | ||
max-width: 50ch; | ||
width: fit-content; | ||
border-radius: 0; | ||
} | ||
} | ||
|
||
[class*='react-tooltip__place-bottom'] { | ||
> .arrow { | ||
} | ||
} |
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 { JudgeInfo } from '../../pages/Judges/JudgeInfo'; | ||
import { Tooltip } from 'react-tooltip'; | ||
import './JudgeFunFacts.scss'; | ||
|
||
export default function JudgeFunFacts() { | ||
return ( | ||
<div className="judge-fun-facts"> | ||
{JudgeInfo.map(item => ( | ||
<Tooltip | ||
key={`${item.name}-tooltip`} | ||
id={`${item.name}-tooltip`} | ||
className="tooltip" | ||
/> | ||
))} | ||
</div> | ||
); | ||
} |