-
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.
same sidebar styles and new ant icons
- Loading branch information
Showing
9 changed files
with
142 additions
and
404 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 |
---|---|---|
@@ -1,167 +1,3 @@ | ||
import { bp, color } from 'lib/variables'; | ||
import styled from 'styled-components'; | ||
import { StyledNavigation as NavStyles } from 'components/Organizations/NavTabs/StyledNavTabs'; | ||
|
||
export const StyledNavigation = styled.ul` | ||
background: ${props => props.theme.backgrounds.sidebar}; | ||
border-right: 1px solid ${props => props.theme.borders.input}; | ||
margin: 0; | ||
z-index: 10; | ||
@media ${bp.tabletUp} { | ||
min-width: 30%; | ||
padding-bottom: 60px; | ||
} | ||
@media ${bp.wideUp} { | ||
min-width: 25%; | ||
} | ||
li { | ||
border-bottom: 1px solid ${props => props.theme.borders.input}; | ||
margin: 0; | ||
padding: 0; | ||
position: relative; | ||
transition: all 0.2s ease; | ||
&:hover { | ||
background-color: ${color.white} !important; | ||
} | ||
&::before { | ||
background-color: ${color.linkBlue}; | ||
background-position: center center; | ||
background-repeat: no-repeat; | ||
content: ''; | ||
display: block; | ||
height: 59px; | ||
left: 0; | ||
position: absolute; | ||
top: 0; | ||
transition: all 0.3s ease-in-out; | ||
width: 45px; | ||
} | ||
a { | ||
color: ${props => props.theme.texts.navigation}; | ||
display: block; | ||
padding: 20px 20px 19px 60px; | ||
@media ${bp.wideUp} { | ||
padding-left: calc((100vw / 16) * 1); | ||
} | ||
} | ||
&.active { | ||
background-color: ${props => props.theme.backgrounds.content}; | ||
border-right: 1px solid ${props => props.theme.backgrounds.content}; | ||
width: calc(100% + 1px); | ||
a { | ||
color: ${props => props.theme.texts.navigation}; | ||
} | ||
} | ||
&.overview { | ||
&::before { | ||
background-image: url('/static/images/overview.svg'); | ||
background-size: 18px; | ||
} | ||
&.active::before { | ||
background-image: url('/static/images/overview-active.svg'); | ||
} | ||
} | ||
&.deployments { | ||
&::before { | ||
background-image: url('/static/images/deployments.svg'); | ||
background-size: 21px 16px; | ||
} | ||
&.active::before { | ||
background-image: url('/static/images/deployments-active.svg'); | ||
} | ||
} | ||
&.backups { | ||
&::before { | ||
background-image: url('/static/images/backups.svg'); | ||
background-size: 19px; | ||
} | ||
&.active::before { | ||
background-image: url('/static/images/backups-active.svg'); | ||
} | ||
} | ||
&.tasks { | ||
&::before { | ||
background-image: url('/static/images/tasks.svg'); | ||
background-size: 16px; | ||
} | ||
&.active::before { | ||
background-image: url('/static/images/tasks-active.svg'); | ||
} | ||
} | ||
&.environmentVariables { | ||
&::before { | ||
background-image: url('/static/images/variables.svg'); | ||
background-size: 22px; | ||
} | ||
&.active::before { | ||
background-image: url('/static/images/variables-active.svg'); | ||
} | ||
} | ||
&.problems { | ||
&::before { | ||
background-image: url('/static/images/problems.svg'); | ||
background-size: 16px; | ||
} | ||
&.active::before { | ||
background-image: url('/static/images/problems-active.svg'); | ||
} | ||
} | ||
&.facts { | ||
&::before { | ||
background-image: url('/static/images/facts.svg'); | ||
background-size: 16px; | ||
} | ||
&.active::before { | ||
background-image: url('/static/images/facts-active.svg'); | ||
} | ||
} | ||
&.insights { | ||
&::before { | ||
background-image: url('/static/images/insights.svg'); | ||
background-size: 16px; | ||
} | ||
&.active::before { | ||
background-image: url('/static/images/insights-active.svg'); | ||
} | ||
} | ||
} | ||
.deployLink { | ||
a { | ||
color: ${props => props.theme.texts.navigation}; | ||
display: block; | ||
padding: 20px 20px 19px 60px; | ||
transition: color 0.2s ease; | ||
@media ${bp.wideUp} { | ||
padding-left: calc((100vw / 16) * 1); | ||
} | ||
&:hover { | ||
color: ${color.darkGrey}; | ||
} | ||
} | ||
.active a { | ||
color: ${color.black}; | ||
} | ||
} | ||
`; | ||
export const StyledNavigation = NavStyles; |
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
Oops, something went wrong.