-
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
Showing
13 changed files
with
116 additions
and
93 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,9 @@ | ||
/* | ||
!docs/ | ||
!src/ | ||
!test/ | ||
|
||
**/*.html | ||
**/*.md | ||
**/*.yml | ||
**/*.json |
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,28 +1,28 @@ | ||
* { | ||
box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
|
||
:host { | ||
container-type: size; | ||
width: 100%; | ||
min-width: 10rem; | ||
container-type: size; | ||
width: 100%; | ||
min-width: 10rem; | ||
} | ||
|
||
.card { | ||
position: relative; | ||
position: relative; | ||
|
||
padding: 1rem; | ||
padding: 1rem; | ||
|
||
background: var(--card-background); | ||
border-color: var(--card-border-color); | ||
border-style: var(--card-border-style); | ||
border-width: var(--card-border-width); | ||
border-radius: var(--card-border-radius); | ||
box-shadow: var(--card-shadow); | ||
background: var(--card-background); | ||
border-color: var(--card-border-color); | ||
border-style: var(--card-border-style); | ||
border-width: var(--card-border-width); | ||
border-radius: var(--card-border-radius); | ||
box-shadow: var(--card-shadow); | ||
} | ||
|
||
@container (width < 20rem) { | ||
.card { | ||
padding: 0.5rem; | ||
} | ||
.card { | ||
padding: 0.5rem; | ||
} | ||
} |
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,14 +1,14 @@ | ||
@import url("../General/Color.css"); | ||
@import url("../General/Border.css"); | ||
@import url("../General/Shadow.css"); | ||
@import url('../General/Color.css'); | ||
@import url('../General/Border.css'); | ||
@import url('../General/Shadow.css'); | ||
|
||
@layer base { | ||
:root { | ||
--card-background: var(--color-content-background); | ||
--card-border-radius: var(--border-radius); | ||
--card-border-width: var(--border-width-none); | ||
--card-border-color: var(--color-border); | ||
--card-border-style: solid; | ||
--card-shadow: var(--shadow-2); | ||
} | ||
:root { | ||
--card-background: var(--color-content-background); | ||
--card-border-radius: var(--border-radius); | ||
--card-border-width: var(--border-width-none); | ||
--card-border-color: var(--color-border); | ||
--card-border-style: solid; | ||
--card-shadow: var(--shadow-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
@import url("CardVariable.css"); | ||
@import url('CardVariable.css'); |
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,13 +1,11 @@ | ||
@layer base { | ||
:root { | ||
--border-radius-none: 0; | ||
--border-radius-thin: 3px; | ||
--border-radius: 10px; | ||
--border-radius-thick: 20px; | ||
:root { | ||
--border-radius-none: 0; | ||
--border-radius-thin: 3px; | ||
--border-radius: 10px; | ||
--border-radius-thick: 20px; | ||
|
||
--border-width-none: 0; | ||
--border-width: 1px; | ||
} | ||
--border-width-none: 0; | ||
--border-width: 1px; | ||
} | ||
} | ||
|
||
|
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,9 +1,7 @@ | ||
@layer base { | ||
:root { | ||
--color-content-background: #fff; | ||
--color-border: #000; | ||
--color-shadow: 220 3% 15%; | ||
} | ||
:root { | ||
--color-content-background: #fff; | ||
--color-border: #000; | ||
--color-shadow: 220 3% 15%; | ||
} | ||
} | ||
|
||
|
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,44 +1,56 @@ | ||
@import url("Color.css"); | ||
@import url('Color.css'); | ||
|
||
/* | ||
* @source https://github.com/argyleink/open-props | ||
* @license MIT | ||
*/ | ||
|
||
@layer base { | ||
:root { | ||
--shadow-strength: 1%; | ||
--shadow-1: 0 1px 2px -1px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 9%)); | ||
--shadow-2: | ||
0 3px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), | ||
0 7px 14px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)); | ||
--shadow-3: | ||
0 -1px 3px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), | ||
0 1px 2px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), | ||
0 2px 5px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), | ||
0 4px 12px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), | ||
0 12px 15px -5px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)); | ||
--shadow-4: | ||
0 -2px 5px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), | ||
0 1px 1px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), | ||
0 2px 2px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), | ||
0 5px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), | ||
0 9px 9px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), | ||
0 16px 16px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 6%)); | ||
--shadow-5: | ||
0 -1px 2px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), | ||
0 2px 1px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), | ||
0 5px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), | ||
0 10px 10px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), | ||
0 20px 20px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), | ||
0 40px 40px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)); | ||
--shadow-6: | ||
0 -1px 2px 0 hsl(var(--shadow-color) / calc(var(--shadow-strength) + 2%)), | ||
0 3px 2px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), | ||
0 7px 5px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 3%)), | ||
0 12px 10px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 4%)), | ||
0 22px 18px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 5%)), | ||
0 41px 33px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 6%)), | ||
0 100px 80px -2px hsl(var(--shadow-color) / calc(var(--shadow-strength) + 7%)); | ||
} | ||
:root { | ||
--shadow-strength: 1%; | ||
--shadow-1: 0 1px 2px -1px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 9%)); | ||
--shadow-2: 0 3px 5px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 3%)), | ||
0 7px 14px -5px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 5%)); | ||
--shadow-3: 0 -1px 3px 0 hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 2%)), | ||
0 1px 2px -5px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 2%)), | ||
0 2px 5px -5px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 4%)), | ||
0 4px 12px -5px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 5%)), | ||
0 12px 15px -5px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 7%)); | ||
--shadow-4: 0 -2px 5px 0 hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 2%)), | ||
0 1px 1px -2px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 3%)), | ||
0 2px 2px -2px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 3%)), | ||
0 5px 5px -2px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 4%)), | ||
0 9px 9px -2px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 5%)), | ||
0 16px 16px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 6%)); | ||
--shadow-5: 0 -1px 2px 0 hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 2%)), | ||
0 2px 1px -2px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 3%)), | ||
0 5px 5px -2px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 3%)), | ||
0 10px 10px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 4%)), | ||
0 20px 20px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 5%)), | ||
0 40px 40px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 7%)); | ||
--shadow-6: 0 -1px 2px 0 hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 2%)), | ||
0 3px 2px -2px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 3%)), | ||
0 7px 5px -2px hsl(var(--color-shadow) / calc(var(--shadow-strength) + 3%)), | ||
0 12px 10px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 4%)), | ||
0 22px 18px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 5%)), | ||
0 41px 33px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 6%)), | ||
0 100px 80px -2px hsl(var(--color-shadow) / | ||
calc(var(--shadow-strength) + 7%)); | ||
} | ||
} |
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,3 +1,3 @@ | ||
@import url("Border.css"); | ||
@import url("Color.css"); | ||
@import url("Shadow.css"); | ||
@import url('Border.css'); | ||
@import url('Color.css'); | ||
@import url('Shadow.css'); |
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,2 +1,2 @@ | ||
@import url("./Component/index.css"); | ||
@import url("./General/index.css"); | ||
@import url('./Component/index.css'); | ||
@import url('./General/index.css'); |
File renamed without changes.
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,5 @@ | ||
{ | ||
"rules": { | ||
"no-unknown-custom-properties": true | ||
} | ||
} |