generated from oddbird/polyfill-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update demo site with OddBird branding #271
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3d307eb
apply OddBird brand tokens to demo site
stacyk 230e15e
spacing
stacyk c1df471
lint
stacyk cb5b8ba
lint
jgerigmeyer ec1c938
remove reference to open-props
jgerigmeyer 6c59c15
Fix tests
jgerigmeyer 720031c
Adjust examples
jamesnw 1efc9ef
Update links and add description to readme.
jgerigmeyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CSS Anchor Positioning Polyfill Demo</title> | ||
<link rel="stylesheet" href="https://unpkg.com/open-props" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/[email protected]/themes/prism.css" | ||
|
@@ -15,7 +14,15 @@ | |
crossorigin="anonymous" | ||
defer | ||
></script> | ||
<!-- TypeKit Fonts --> | ||
<script src="https://use.typekit.net/slx1xnq.js"></script> | ||
<script> | ||
try { | ||
Typekit.load({ async: true }); | ||
} catch (e) {} | ||
</script> | ||
<link rel="stylesheet" href="/demo.css" /> | ||
|
||
<!-- Included to test invalid stylesheets --> | ||
<link rel="stylesheet" href="/fake.css" /> | ||
<link rel="stylesheet" href="/anchor.css" /> | ||
|
@@ -236,7 +243,7 @@ <h1>CSS Anchor Positioning Polyfill</h1> | |
>WPT results</a | ||
> --> | ||
<a | ||
href="https://w3c.github.io/csswg-drafts/css-anchor-position/" | ||
href="https://drafts.csswg.org/css-anchor-position/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
>Draft Spec</a | ||
|
@@ -251,7 +258,7 @@ <h2>Anchoring Elements Using CSS</h2> | |
<p> | ||
The CSS anchor positioning | ||
<a | ||
href="https://w3c.github.io/csswg-drafts/css-anchor-position/" | ||
href="https://drafts.csswg.org/css-anchor-position/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
>specification</a | ||
|
@@ -298,7 +305,7 @@ <h2>Anchoring Elements Using CSS</h2> | |
<li> | ||
Browse or open issues related to the specification | ||
<a | ||
href="https://github.com/w3c/csswg-drafts/labels/css-anchor-1" | ||
href="https://github.com/w3c/csswg-drafts/labels/css-anchor-position-1" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
>here</a | ||
|
@@ -854,8 +861,8 @@ <h2> | |
<div id="my-target-math" class="target">Target</div> | ||
</div> | ||
<p class="note"> | ||
With polyfill applied: Target's left edge is 50px left of the Anchor's | ||
right edge). The top edge of the Target is 50px above the bottom edge of | ||
With polyfill applied: Target's left edge is 10px left of the Anchor's | ||
right edge). The top edge of the Target is 10px below the bottom edge of | ||
the Anchor. | ||
</p> | ||
<pre><code class="language-css" | ||
|
@@ -865,10 +872,10 @@ <h2> | |
|
||
#my-target-math { | ||
--full-math: anchor(--my-anchor-math 100%); | ||
--full-minus-math: calc(anchor(--my-anchor-math 100%) - 50px); | ||
--full-minus-math: calc(anchor(--my-anchor-math 100%) - 10px); | ||
|
||
position: absolute; | ||
top: calc(var(--full-math) - 50px); | ||
top: calc(var(--full-math) + 10px); | ||
left: var(--full-minus-math); | ||
}</code></pre> | ||
</section> | ||
|
@@ -1303,12 +1310,6 @@ <h2>Sponsor OddBird's OSS Work</h2> | |
target="_blank" | ||
rel="noopener noreferrer" | ||
>OddBird</a | ||
>. Designed using | ||
<a | ||
href="https://open-props.style/" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
>Open Props</a | ||
>. | ||
</p> | ||
</footer> | ||
|
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,7 +1,7 @@ | ||
.scroll-container { | ||
height: 400px; | ||
overflow: scroll; | ||
border: solid; | ||
border: thin solid; | ||
position: relative; | ||
} | ||
|
||
|
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😮😮😮😮 coooool