-
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.
Merge pull request #72 from webcomponents-preview/feature/70-preview-…
…toggle-editor-link-debugger Feature/70 preview toggle editor link debugger
- Loading branch information
Showing
58 changed files
with
559 additions
and
222 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
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
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,5 +1,7 @@ | ||
# wcp-layout | ||
|
||
**Mixins:** ColorSchemable | ||
|
||
## Example | ||
|
||
```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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
@use '@/styles/utils' as utils; | ||
|
||
// prettier-ignore | ||
:host { | ||
---wcp-layout-dark-background: var(--wcp-layout-dark-background, var(--wcp-color-blue-17)); | ||
---wcp-layout-dark-color: var(--wcp-layout-dark-color, var(--wcp-color-grey-96)); | ||
|
||
---wcp-layout-light-background: var(--wcp-layout-light-background, var(--wcp-color-blue-80)); | ||
---wcp-layout-light-color: var(--wcp-layout-light-color, var(--wcp-color-grey-96)); | ||
} | ||
|
||
:host { | ||
@include utils.color-scheme() using ($color-scheme) { | ||
---wcp-layout-background: var(---wcp-layout-#{$color-scheme}-background); | ||
---wcp-layout-color: var(---wcp-layout-#{$color-scheme}-color); | ||
} | ||
} | ||
|
||
:host { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
height: 100%; | ||
overflow: hidden; | ||
|
||
background-color: var(---wcp-layout-background); | ||
color: var(---wcp-layout-color); | ||
} |
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,32 @@ | ||
# wcp-root-splash | ||
|
||
Shows a splash screen whilst initializing the application. | ||
|
||
## Example | ||
|
||
# Basic usage | ||
|
||
```html | ||
<wcp-root-splash>Loading...</wcp-root-splash> | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
|----------|-----------|--------------------------------------------------| | ||
| `hidden` | `boolean` | Use the global hidden attribute to fade out the splash screen. | | ||
|
||
## Slots | ||
|
||
| Name | Description | | ||
|------|--------------------------------------------------| | ||
| | The text content to be displayed in the splash screen. | | ||
|
||
## CSS Custom Properties | ||
|
||
| Property | Description | | ||
|--------------------------------------------|--------------------------------------------------| | ||
| `--wcp-root-splash-dark-background-color` | The background color of the splash screen in dark mode. | | ||
| `--wcp-root-splash-dark-color` | The text color of the splash screen in dark mode. | | ||
| `--wcp-root-splash-light-background-color` | The background color of the splash screen in light mode. | | ||
| `--wcp-root-splash-light-color` | The text color of the splash screen in light mode. | |
41 changes: 41 additions & 0 deletions
41
src/components/root/root-splash/root-splash.component.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,41 @@ | ||
@use '@/styles/utils' as utils; | ||
|
||
:host { | ||
---wcp-root-splash-dark-background-color: var(--wcp-root-splash-dark-background-color, var(--wcp-color-blue-17)); | ||
---wcp-root-splash-dark-color: var(--wcp-root-splash-dark-color, var(--wcp-color-grey-96)); | ||
---wcp-root-splash-light-background-color: var(--wcp-root-splash-light-background-color, var(--wcp-color-grey-96)); | ||
---wcp-root-splash-light-color: var(--wcp-root-splash-light-color, var(--wcp-color-blue-80)); | ||
|
||
@media (prefers-color-scheme: dark) { | ||
---wcp-root-splash-background-color: var(---wcp-root-splash-dark-background-color); | ||
---wcp-root-splash-color: var(---wcp-root-splash-dark-color); | ||
} | ||
|
||
@media (prefers-color-scheme: light) { | ||
---wcp-root-splash-background-color: var(---wcp-root-splash-light-background-color); | ||
---wcp-root-splash-color: var(---wcp-root-splash-light-color); | ||
} | ||
} | ||
|
||
:host { | ||
position: fixed; | ||
inset: 0; | ||
|
||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
background-color: var(---wcp-root-splash-background-color); | ||
color: var(---wcp-root-splash-color); | ||
font: var(--wcp-font-family); | ||
|
||
transition: opacity 1s ease-in-out; | ||
|
||
// prevent user interaction with splash screen | ||
pointer-events: none; | ||
} | ||
|
||
:host([hidden]) { | ||
opacity: 0; | ||
} |
Oops, something went wrong.