-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add preprocess to allow replacement of breakpoint tokens with …
…custom media values
- Loading branch information
1 parent
29ff97b
commit 82a52c6
Showing
46 changed files
with
1,456 additions
and
664 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"singleQuote": false, | ||
"endOfLine": "lf" | ||
"endOfLine": "lf", | ||
"plugins": ["prettier-plugin-svelte"] | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,22 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
|
||
<head> | ||
<meta charset='utf-8'> | ||
<meta name='viewport' content='width=device-width,initial-scale=1'> | ||
<title>DIO Components</title> | ||
|
||
<title>DIO Components</title> | ||
<link rel="icon" type="image/png" href="/favicon.png" /> | ||
<link rel="stylesheet" href="/build/bundle.css" /> | ||
|
||
<link rel='icon' type='image/png' href='/favicon.png'> | ||
<link rel='stylesheet' href='/build/bundle.css'> | ||
<script | ||
type="module" | ||
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js" | ||
></script> | ||
<script | ||
nomodule | ||
src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js" | ||
></script> | ||
|
||
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script> | ||
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script> | ||
<script defer src="/build/bundle.js"></script> | ||
</head> | ||
|
||
<script defer src='/build/bundle.js'></script> | ||
</head> | ||
|
||
<body> | ||
</body> | ||
|
||
</html> | ||
<body></body> | ||
</html> |
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 |
---|---|---|
@@ -1,29 +1,57 @@ | ||
<svelte:options tag="pg-modal" /> | ||
|
||
<script lang="ts"> | ||
let open: boolean = false; | ||
let value: string = "blue" | ||
let value: string = "blue"; | ||
</script> | ||
|
||
|
||
<goa-modal {open} closable="true" on:_close={() => open = false}> | ||
<goa-dropdown on:_change={() => {}} value={value} disabled={false}> | ||
<goa-dropdown-item value="" label="Red"></goa-dropdown-item> | ||
<goa-dropdown-item value="green" label="Green"></goa-dropdown-item> | ||
<goa-dropdown-item value="blue" label="Blue"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-dropdown-item value="white" label="White"></goa-dropdown-item> | ||
<goa-modal {open} closable="true" on:_close={() => (open = false)}> | ||
<goa-dropdown on:_change={() => {}} {value} disabled={false}> | ||
<goa-dropdown-item value="" label="Red" /> | ||
<goa-dropdown-item value="green" label="Green" /> | ||
<goa-dropdown-item value="blue" label="Blue" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
<goa-dropdown-item value="white" label="White" /> | ||
</goa-dropdown> | ||
</goa-modal> | ||
|
||
<button on:click={() => open = !open}> | ||
Show | ||
</button> | ||
<button on:click={() => (open = !open)}> Show </button> | ||
|
||
<div class="card">This is a card</div> | ||
|
||
<style> | ||
.card { | ||
display: grid; | ||
transition: all 0.5s; | ||
user-select: none; | ||
} | ||
@media (--mobile) { | ||
.card { | ||
background-color: green; | ||
} | ||
} | ||
@media (--tablet) { | ||
.card { | ||
background-color: steelblue; | ||
} | ||
} | ||
@media (--desktop) { | ||
.card { | ||
background-color: paleturquoise; | ||
} | ||
} | ||
@media (--desktop) or (--tablet) { | ||
.card { | ||
background-color: red; | ||
} | ||
} | ||
</style> |
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,3 @@ | ||
@custom-media --mobile screen and (max-width: 623px); | ||
@custom-media --tablet screen and (min-width: 624px) and (max-width: 1023px); | ||
@custom-media --desktop screen and (min-width: 1024px); |
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,2 @@ | ||
export const MOBILE_BP = 624; | ||
export const TABLET_BP = 1024; |
Oops, something went wrong.