-
Notifications
You must be signed in to change notification settings - Fork 1
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
201cc53
commit 8026f35
Showing
26 changed files
with
240 additions
and
263 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,6 @@ | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
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,83 +1,82 @@ | ||
@layer default { | ||
.button { | ||
width: auto; | ||
height: 2.5rem; | ||
display: flex; | ||
gap: 12px; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 12px; | ||
border: 1px solid transparent; | ||
box-shadow: var(--shadow-md); | ||
transition: all 0.2s ease-in-out; | ||
padding: 0.5rem 1.375rem; | ||
white-space: nowrap; | ||
line-height: 1.75rem; | ||
overflow: hidden; | ||
color: light-dark(var(--button-text-color), #ffffff); | ||
font-size: 0.875rem; | ||
font-weight: 600; | ||
letter-spacing: 0.8px; | ||
.button { | ||
width: auto; | ||
height: 2.5rem; | ||
display: flex; | ||
gap: 12px; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 12px; | ||
border: 1px solid transparent; | ||
box-shadow: var(--shadow-md); | ||
transition: all 0.2s ease-in-out; | ||
padding: 0.5rem 1.375rem; | ||
white-space: nowrap; | ||
line-height: 1.75rem; | ||
overflow: hidden; | ||
color: light-dark(var(--button-text-color), #ffffff); | ||
font-size: 0.875rem; | ||
font-weight: 600; | ||
letter-spacing: 0.8px; | ||
user-select: none; | ||
|
||
cursor: pointer; | ||
cursor: pointer; | ||
|
||
&[data-variant="solid"] { | ||
background-color: var(--button-bg-color); | ||
} | ||
&[data-variant="solid"] { | ||
background-color: var(--button-bg-color); | ||
} | ||
|
||
&[data-variant="outlined"] { | ||
background-color: transparent; | ||
border-color: var(--button-bg-color); | ||
} | ||
&[data-variant="outlined"] { | ||
background-color: transparent; | ||
border-color: var(--button-bg-color); | ||
} | ||
|
||
&[data-variant="tonal"] { | ||
background-color: var(--bg-color); | ||
border-color: var(--button-bg-color); | ||
} | ||
&[data-variant="tonal"] { | ||
background-color: var(--bg-color); | ||
border-color: var(--button-bg-color); | ||
} | ||
|
||
&[data-variant="subtle"] { | ||
background-color: color-mix( | ||
in srgb, | ||
var(--button-bg-color) 30%, | ||
#ffffff 10% | ||
); | ||
} | ||
&[data-variant="subtle"] { | ||
background-color: color-mix( | ||
in srgb, | ||
var(--button-bg-color) 30%, | ||
#ffffff 10% | ||
); | ||
} | ||
|
||
&[data-variant="ghost"], | ||
&[data-variant="text"] { | ||
background-color: transparent; | ||
box-shadow: 0 0 0 0 var(--button-bg-color); | ||
color: light-dark(var(--button-bg-color), #ffffff); | ||
} | ||
&[data-variant="ghost"], | ||
&[data-variant="text"] { | ||
background-color: transparent; | ||
box-shadow: 0 0 0 0 var(--button-bg-color); | ||
color: light-dark(var(--button-bg-color), #ffffff); | ||
} | ||
|
||
&:disabled, | ||
&[data-loading="true"], | ||
&[data-disabled="true"] { | ||
cursor: not-allowed; | ||
} | ||
&:disabled, | ||
&[data-loading="true"], | ||
&[data-disabled="true"] { | ||
cursor: not-allowed; | ||
} | ||
|
||
&:not(:disabled, [data-loading="true"], [data-disabled="true"]) { | ||
&:hover { | ||
filter: brightness(1.2); | ||
&:not(:disabled, [data-loading="true"], [data-disabled="true"]) { | ||
&:hover { | ||
filter: brightness(1.2); | ||
|
||
&[data-variant="ghost"] { | ||
background-color: color-mix( | ||
in srgb, | ||
light-dark(#000, #fff) 5%, | ||
transparent 95% | ||
); | ||
} | ||
&[data-variant="ghost"] { | ||
background-color: color-mix( | ||
in srgb, | ||
light-dark(#000, #fff) 5%, | ||
transparent 95% | ||
); | ||
} | ||
} | ||
|
||
&:active { | ||
box-shadow: none; | ||
transform: translateY(2px); | ||
} | ||
&:active { | ||
box-shadow: none; | ||
transform: translateY(2px); | ||
} | ||
|
||
&:focus { | ||
outline: none; | ||
filter: brightness(1.2); | ||
} | ||
&:focus { | ||
outline: none; | ||
filter: brightness(1.2); | ||
} | ||
} | ||
} |
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
49 changes: 49 additions & 0 deletions
49
src/components/core/_blocks/InputBase/InputBase.module.scss
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,49 @@ | ||
.root { | ||
width: var(--input-width); | ||
height: var(--input-height); | ||
display: flex; | ||
flex-direction: column; | ||
align-items: start; | ||
justify-content: start; | ||
border-radius: 15px; | ||
|
||
&[data-full-width="true"] { | ||
width: 100%; | ||
} | ||
} | ||
|
||
.wrapper { | ||
width: 100%; | ||
height: 100%; | ||
border-radius: 15px; | ||
box-shadow: var(--input-shadow); | ||
display: flex; | ||
align-items: center; | ||
position: relative; | ||
border: 1px solid var(--input-border-color); | ||
border-radius: 12px; | ||
padding: 6.75px 12px; | ||
transition: all 0.2s ease-in-out; | ||
gap: 8px; | ||
|
||
&[data-variant="solid"] { | ||
background-color: var(--input-bg-color); | ||
color: #ffffff; | ||
} | ||
|
||
&[data-variant="outlined"] { | ||
background-color: var(--bg-2nd-color); | ||
color: var(--input-border-color); | ||
} | ||
|
||
&:focus, | ||
&:hover { | ||
filter: brightness(1.2); | ||
} | ||
|
||
&:disabled, | ||
&[data-disabled="true"] { | ||
cursor: not-allowed; | ||
opacity: 0.5; | ||
} | ||
} |
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
Oops, something went wrong.