forked from matschik/component-party.dev
-
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
5 changed files
with
12 additions
and
6 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,8 +1,14 @@ | ||
<h1.title>I am red</h1> | ||
<button style={ fontSize: "10rem" }>I am a button</button> | ||
<button class=scopedButton>I am a style-scoped button</button> | ||
|
||
<style> /* TODO: the Vue example uses style scoping, maybe we should show ours off too here */ | ||
<style> | ||
.title { | ||
color: red; | ||
} | ||
</style> | ||
<style/{ scopedButton }> | ||
.scopedButton { | ||
font-size: 10rem; | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
content/2-templating/5-dom-ref/marko/InputIndeterminate.marko
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 @@ | ||
<input/inputElement type="checkbox"> | ||
<effect() { inputElement().indeterminate = true }/> |
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,3 @@ | ||
<let/viewportSize = ""/> | ||
<effect() { viewportSize = `${window.innerWidth} × ${window.innerHeight}` }/> | ||
<p>Viewport size: ${viewportSize}</p> |