-
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.
🎨 moved out styling to own component
- Loading branch information
1 parent
77f7dfa
commit 16f3739
Showing
2 changed files
with
86 additions
and
73 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
...nents/Navigation/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.ts
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,74 @@ | ||
import { Button } from '@equinor/eds-core-react'; | ||
import { tokens } from '@equinor/eds-tokens'; | ||
|
||
import styled from 'styled-components'; | ||
|
||
const { spacings, colors } = tokens; | ||
|
||
export const Wrapper = styled.div` | ||
padding: ${spacings.comfortable.medium}; | ||
border-bottom: 1px solid ${colors.ui.background__medium.hex}; | ||
&:hover { | ||
background: #f2f2f2; | ||
} | ||
`; | ||
|
||
export const Content = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
grid-column: span 3; | ||
padding: ${spacings.comfortable.small}; | ||
cursor: pointer; | ||
`; | ||
|
||
export const GridContainer = styled.div` | ||
display: grid; | ||
grid-template-columns: 10px 1fr; | ||
grid-gap: ${spacings.comfortable.medium_small}; | ||
align-items: center; | ||
`; | ||
|
||
export const Dot = styled.span` | ||
width: 10px; | ||
height: 10px; | ||
border-radius: 50%; | ||
background-color: ${colors.infographic.substitute__blue_overcast.hex}; | ||
position: relative; | ||
`; | ||
|
||
export const TopContainer = styled.div` | ||
display: grid; | ||
grid-template-columns: auto 1fr; | ||
align-items: start; | ||
gap: ${spacings.comfortable.medium_small}; | ||
justify-items: end; | ||
grid-column: span 3; | ||
`; | ||
|
||
interface UserInformationProps { | ||
$systemUser?: boolean; | ||
} | ||
|
||
export const UserInformation = styled.div<UserInformationProps>` | ||
display: flex; | ||
flex-direction: row; | ||
align-items: ${({ $systemUser }) => ($systemUser ? 'flex-start' : 'center')}; | ||
gap: ${spacings.comfortable.small}; | ||
`; | ||
|
||
export const FooterContainer = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: ${spacings.comfortable.medium_small}; | ||
grid-column: span 3; | ||
align-items: center; | ||
justify-content: space-between; | ||
height: 40px; | ||
padding: 0 ${spacings.comfortable.small}; | ||
`; | ||
export const DeleteButton = styled(Button)` | ||
display: none; | ||
${GridContainer}:hover & { | ||
display: initial; | ||
} | ||
`; |
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