-
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.
- Loading branch information
1 parent
eb09a26
commit 676783c
Showing
2 changed files
with
94 additions
and
61 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,78 @@ | ||
import styled from "styled-components"; | ||
import TabBar from '@splunk/react-ui/TabBar'; | ||
|
||
const StyledTab = styled(TabBar)` | ||
border: 0; | ||
background-color: #3C444D; | ||
height: 44px; | ||
border-bottom: 0; | ||
margin: 0; | ||
&::before{ | ||
border: 0; | ||
} | ||
& > button{ | ||
margin: 0; | ||
padding: 0; | ||
} | ||
& > button:nth-child(1){ | ||
margin-left: 20px; | ||
} | ||
& > button:nth-child(1) > div[class*='TabStyles__StyledLabel']{ | ||
width: 48px; | ||
} | ||
& > button:nth-child(2){ | ||
margin-left: 27px; | ||
} | ||
& > button:nth-child(2) > div[class*='TabStyles__StyledLabel']{ | ||
width: 46px; | ||
} | ||
& > button:nth-child(3){ | ||
margin-left: 27px; | ||
} | ||
& > button:nth-child(3) > div[class*='TabStyles__StyledLabel']{ | ||
width: 58px; | ||
} | ||
& > button > div[class*='TabStyles__StyledLabel']{ | ||
font-size: 13px; | ||
font-weight: 400; | ||
line-height: 39px; | ||
color: #E1E6EB; | ||
border: 0; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
& > button > div[class*='TabStyles__StyledUnderline']{ | ||
bottom: 0; | ||
width: 100%; | ||
} | ||
[aria-selected='true'] > div[class*='TabStyles__StyledUnderline']{ | ||
background-color: #5CC05C; | ||
} | ||
[aria-selected='true'] > div[class*='TabStyles__StyledLabel']{ | ||
color: #FFFFFF; | ||
font-weight: 600; | ||
} | ||
`; | ||
|
||
const StyledMenuBar = styled.div` | ||
width: 100%; | ||
height: 44px; | ||
display: flex; | ||
background-color: #3C444D; | ||
`; | ||
|
||
const StyledMenuBarLeft = styled.div` | ||
width: 50%; | ||
height: 44px; | ||
`; | ||
|
||
const StyledMenuBarRight = styled.div` | ||
width: 50%; | ||
height: 44px; | ||
`; | ||
|
||
export { StyledTab, StyledMenuBar, StyledMenuBarLeft, StyledMenuBarRight }; |