-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style account list a bit for dark theme, use components
- Loading branch information
1 parent
7d315ad
commit 7846a4e
Showing
12 changed files
with
125 additions
and
81 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,48 @@ | ||
import styled from 'styled-components'; | ||
import { AvatarStack } from "@primer/components"; | ||
import HeroImageTag from "../HeroImageTag"; | ||
|
||
interface Props { | ||
threePlus: boolean; | ||
} | ||
|
||
const AccountAvatarStack = styled(AvatarStack).attrs({ | ||
alignRight: true | ||
})<Props>` | ||
height: 45px; | ||
${props => props.threePlus ? "min-width: 69px;" : ""} | ||
${HeroImageTag} { | ||
width: 45px; | ||
height: 45px; | ||
background-color: transparent; | ||
margin-left: -25px; | ||
border-left: 0; | ||
} | ||
${HeroImageTag} + ${HeroImageTag} { | ||
opacity: 0.5; | ||
width: 40px; | ||
height: 40px; | ||
+ ${HeroImageTag} { | ||
opacity: 0.3; | ||
width: 35px; | ||
height: 35px; | ||
} | ||
} | ||
&:hover { | ||
${HeroImageTag} { | ||
margin-left: -5px; | ||
} | ||
${HeroImageTag} + ${HeroImageTag} { | ||
opacity: 1; | ||
width: 45px; | ||
height: 45px; | ||
} | ||
} | ||
`; | ||
|
||
export default AccountAvatarStack; |
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,15 @@ | ||
import styled from 'styled-components'; | ||
import { Flex } from "@primer/components"; | ||
|
||
interface Props { | ||
appTheme: string; | ||
} | ||
|
||
const AccountMeta = styled(Flex).attrs({ | ||
alignItems: "center" | ||
})<Props>` | ||
font-size: 16px; | ||
color: ${props => props.appTheme === "dark" ? "#d1d5da" : "#586069"} !important; | ||
`; | ||
|
||
export default AccountMeta; |
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 @@ | ||
import styled from 'styled-components'; | ||
|
||
const Separator = styled("span")` | ||
display: inline-block; | ||
padding-left: 0.75em; | ||
padding-right: 0.75em; | ||
`; | ||
|
||
export default Separator; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import styled from 'styled-components'; | ||
|
||
interface Props { | ||
appTheme: string; | ||
} | ||
|
||
const HeroImageTag = styled("img")<Props>` | ||
background-color: ${props => props.appTheme === "dark" ? "#2f363d" : "inherit"}; | ||
`; | ||
|
||
export default HeroImageTag; |
Oops, something went wrong.