-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from bigcommerce/feature/advanced-filters
feat(pattern): fix bugs and ui based on review
- Loading branch information
Showing
6 changed files
with
738 additions
and
94 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
64 changes: 64 additions & 0 deletions
64
...xamples-site/src/pages/FiltersAdvancedAdditivePage/FiltersAdvancedAdditivePage.styled.tsx
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,64 @@ | ||
import { theme as defaultTheme } from "@bigcommerce/big-design-theme"; | ||
import styled from "styled-components"; | ||
import { BoxProps } from "@bigcommerce/big-design"; | ||
|
||
import { GridItem, Link } from "@bigcommerce/big-design"; | ||
|
||
export const StyledGridItem = styled(GridItem)` | ||
align-content: center; | ||
`; | ||
|
||
export const StyledFiltersLink = styled(Link)` | ||
display: inline-flex; | ||
align-items: center; | ||
flex-gap: 0.25rem; | ||
`; | ||
|
||
export const StyledPanelContents = styled.div<BoxProps>` | ||
display: block; | ||
box-sizing: border-box; | ||
margin-inline: -${({ theme }) => theme.spacing.medium}; | ||
max-width: calc( | ||
100% + ${({ theme }) => theme.spacing.medium}px + | ||
${({ theme }) => theme.spacing.medium}px | ||
); | ||
overflow-x: auto; | ||
@media (min-width: ${({ theme }) => theme.breakpointValues.tablet}) { | ||
margin-inline: -${({ theme }) => theme.spacing.xLarge}; | ||
max-width: calc( | ||
100% + ${({ theme }) => theme.spacing.xLarge}px + | ||
${({ theme }) => theme.spacing.xLarge}px | ||
); | ||
} | ||
`; | ||
|
||
// Provides default theme props to ensure consistent styling if not provided externally | ||
StyledPanelContents.defaultProps = { theme: defaultTheme }; | ||
|
||
export const StyledProductImage = styled.div<BoxProps>` | ||
display: block; | ||
box-sizing: border-box; | ||
width: 47px; | ||
height: 47px; | ||
border: ${({ theme }) => theme.border.box}; | ||
border-radius: ${({ theme }) => theme.borderRadius.normal}; | ||
overflow: hidden; | ||
img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
`; | ||
|
||
StyledProductImage.defaultProps = { theme: defaultTheme }; | ||
|
||
|
||
export const StyledBulkActions = styled.div<BoxProps>` | ||
display: block; | ||
@media (min-width: ${({ theme }) => theme.breakpointValues.tablet}) { | ||
min-width: 300px; | ||
} | ||
`; | ||
|
||
StyledBulkActions.defaultProps = { theme: defaultTheme }; |
Oops, something went wrong.