-
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
b8ddc03
commit 648395d
Showing
13 changed files
with
381 additions
and
121 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
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,82 @@ | ||
// box-shadow variables | ||
$shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); | ||
$shadow: | ||
0 1px 3px 0 rgba(0, 0, 0, 0.1), | ||
0 1px 2px -1px rgba(0, 0, 0, 0.1); | ||
$shadow-md: | ||
0 4px 6px -1px rgb(0 0 0 / 0.1), | ||
0 2px 4px -2px rgb(0 0 0 / 0.1); | ||
$shadow-lg: | ||
0 10px 15px -3px rgb(0 0 0 / 0.1), | ||
0 4px 6px -4px rgb(0 0 0 / 0.1); | ||
$shadow-xl: | ||
0 20px 25px -5px rgb(0 0 0 / 0.1), | ||
0 8px 10px -6px rgb(0 0 0 / 0.1); | ||
$shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25); | ||
$shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); | ||
|
||
@mixin shadow { | ||
&.shadow-regular { | ||
box-shadow: $shadow; | ||
} | ||
&.shadow-small { | ||
box-shadow: $shadow-sm; | ||
} | ||
&.shadow-medium { | ||
box-shadow: $shadow-md; | ||
} | ||
&.shadow-large { | ||
box-shadow: $shadow-lg; | ||
} | ||
&.shadow-extraLarge { | ||
box-shadow: $shadow-xl; | ||
} | ||
&.shadow-inner { | ||
box-shadow: $shadow-inner; | ||
} | ||
} | ||
|
||
// border width variables | ||
$border-0: 0px; | ||
$border-1: 1px; | ||
$border-2: 2px; | ||
|
||
//animation-duration varibles | ||
$duration-100: 100ms; | ||
$duration-200: 200ms; | ||
$duration-300: 300ms; | ||
$duration-400: 400ms; | ||
$duration-800: 800ms; | ||
|
||
//border radius variables | ||
$radius-10: 10px; | ||
$radius-8: 8px; | ||
$radius-5: 5px; | ||
$radius-15: 15px; | ||
$radius-half: 50%; | ||
|
||
//absolute center | ||
@mixin absolute-center { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
//font-size variables | ||
$font-size-8: 8px; | ||
$font-size-10: 10px; | ||
$font-size-12: 12px; | ||
$font-size-14: 14px; | ||
$font-size-16: 16px; | ||
|
||
//disabled | ||
@mixin disabled { | ||
cursor: not-allowed; | ||
opacity: 0.4; | ||
} | ||
|
||
//background color | ||
$background-shadow-color: rgb(var(--black-color-rgb), 0.6); | ||
|
||
$cubic-bezier: cubic-bezier(0.215, 0.61, 0.355, 1); |
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,68 @@ | ||
:host { | ||
background-color: var(--primary-color); | ||
color: var(--white-color); | ||
padding: 10px; | ||
border-radius: 5px; | ||
border: none; | ||
cursor: pointer; | ||
font-size: 16px; | ||
font-weight: 400; | ||
transition: all 0.15s ease-in-out; | ||
@include shadow; | ||
&:hover { | ||
backdrop-filter: brightness(0.85); | ||
} | ||
&:active { | ||
transform: scale(0.98); | ||
} | ||
&.primary { | ||
background-color: var(--primary-color); | ||
} | ||
&.secondary { | ||
background-color: var(--white-color); | ||
color: var(--primary-color); | ||
border: 1px solid var(--primary-color); | ||
} | ||
&.border { | ||
border: solid 1px var(--border-white); | ||
background-color: var(--white-color); | ||
color: var(--black-color); | ||
font-weight: 500; | ||
} | ||
&.ghost { | ||
&:hover:not(.disabled) { | ||
filter: brightness(1); | ||
backdrop-filter: brightness(0.97); | ||
} | ||
background-color: transparent; | ||
color: var(--primary-color); | ||
font-weight: 600; | ||
} | ||
&.danger { | ||
background-color: var(--danger-color); | ||
} | ||
&.disabled { | ||
cursor: not-allowed; | ||
&:hover { | ||
backdrop-filter: none; | ||
} | ||
&:active { | ||
transform: none; | ||
} | ||
} | ||
&.disabledShadow { | ||
filter: grayscale(1); | ||
} | ||
&.small { | ||
padding: 5px; | ||
font-size: 12px; | ||
} | ||
&.medium { | ||
padding: 10px; | ||
font-size: 16px; | ||
} | ||
&.large { | ||
padding: 15px; | ||
font-size: 20px; | ||
} | ||
} |
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
Empty file.
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
declare module "*.scss?inline" { | ||
import { CSSResult } from "lit"; | ||
const styles: CSSResult; | ||
export default styles; | ||
} | ||
|
||
declare module "*.scss" { | ||
import { CSSResult } from "lit"; | ||
const styles: CSSResult; | ||
export default styles; | ||
} |
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 |
---|---|---|
|
@@ -28,5 +28,5 @@ | |
"paths": { | ||
"@/*": ["./lib/*"] | ||
}, | ||
"include": ["lib"] | ||
"include": ["lib", "lib/typings/index.d.ts"] | ||
} |
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.