-
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.
- Loading branch information
1 parent
17fbaa9
commit b41a6c1
Showing
4 changed files
with
31 additions
and
29 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,25 @@ | ||
import styled from "styled-components"; | ||
|
||
export const GridWrapper = styled.div` | ||
display: grid; | ||
grid-template-rows: repeat(auto-fit, minmax(40px, 1fr)); | ||
grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); | ||
gap: 8px; | ||
margin: 0 auto; | ||
width: fit-content; | ||
`; | ||
|
||
export const ButtonStyle = styled.button<{ selected: boolean }>` | ||
font-size: 12px; | ||
padding: 8px 16px; | ||
border: 1px solid ${({ selected }) => (selected ? "#007bff" : "#ccc")}; | ||
background-color: ${({ selected }) => (selected ? "#e6f0ff" : "#fff")}; | ||
color: ${({ selected }) => (selected ? "#007bff" : "#000")}; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
transition: all 0.3s; | ||
&:hover { | ||
background-color: ${({ selected }) => (selected ? "#cce4ff" : "#f5f5f5")}; | ||
} | ||
`; |
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 @@ | ||
export { default as ButtonGrid } from "./ButtonGrid"; |