-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
88 additions
and
108 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,30 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { contract } from '../ThemeProvider/themes/contract.css'; | ||
import { calc } from '@vanilla-extract/css-utils'; | ||
|
||
export const tip = style({ | ||
background: `radial-gradient(#ff0 20%, transparent 20%) 0 0, | ||
radial-gradient(#ff0 20%, transparent 20%) 4px 4px, | ||
radial-gradient(rgba(255, 255, 255, 0.1) 20%, transparent 25%) 0 1px, | ||
radial-gradient(rgba(255, 255, 255, 0.1) 20%, transparent 25%) 3px 4px`, | ||
backgroundSize: `${contract.space[7]} ${contract.space[7]}`, | ||
backgroundColor: contract.colors.borderLightest, | ||
borderWidth: contract.space[1], | ||
borderStyle: 'solid', | ||
paddingTop: contract.space[2], | ||
paddingRight: contract.space[2], | ||
paddingBottom: contract.space[2], | ||
paddingLeft: contract.space[4], | ||
boxShadow: 'none', | ||
position: 'absolute', | ||
top: calc.negate(contract.space[20]), | ||
textAlign: 'center', | ||
zIndex: contract.zIndices.taskbar, | ||
}); | ||
|
||
export const wrapper = style({ | ||
display: 'inline-block', | ||
position: 'relative', | ||
cursor: 'default', | ||
whiteSpace: 'nowrap', | ||
}); |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Tooltip from './Tooltip'; | ||
import { Tooltip } from './Tooltip'; | ||
|
||
export default Tooltip; |
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