-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sidebar):add new props and props and design revision sidebar
- Loading branch information
Showing
8 changed files
with
73 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 |
---|---|---|
@@ -1,40 +1,34 @@ | ||
import styled from "styled-components"; | ||
|
||
|
||
export const SidebarContainer = styled.div` | ||
background: ${(props) => props.backgroundColor}; | ||
color: ${(props) => props.textColor}; | ||
height: 100%; | ||
width: 270px; | ||
min-width: 270px; | ||
text-align: left; | ||
transition: width, left, right, 0.3s; | ||
position: relative; | ||
z-index: 1009; | ||
&.toggled{ | ||
min-width: 80px; | ||
width: 80px; | ||
background: ${(props) => props.backgroundColor}; | ||
color: ${(props) => props.textColor}; | ||
height: 100%; | ||
width: ${({ maxWidth }) => maxWidth}; | ||
min-width: ${({ maxWidth }) => maxWidth}; | ||
text-align: left; | ||
transition: width, left, right, 0.3s; | ||
position: relative; | ||
z-index: 1009; | ||
&.toggled { | ||
width: ${({ minWidth }) => minWidth}; | ||
min-width: ${({ minWidth }) => minWidth}; | ||
} | ||
`; | ||
|
||
export const SidebarInner = styled.div` | ||
height: 100%; | ||
position: relative; | ||
z-index: 101; | ||
height: 100%; | ||
position: relative; | ||
z-index: 101; | ||
`; | ||
|
||
export const SidebarLayout = styled.div` | ||
height: 100%; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
z-index: 101; | ||
height: 100%; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
z-index: 101; | ||
`; | ||
|
||
|
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
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