-
-
Notifications
You must be signed in to change notification settings - Fork 91
Docs: add demo HTML using Gardevoir CDN + optional reduced-motion snippet #356
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
Open
therunnas
wants to merge
7
commits into
kkrishguptaa:main
Choose a base branch
from
therunnas:add-seu-nome
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b4627af
Adiciona demo.html e suporte a prefers-reduced-motion no global.scss
therunnas 82334e6
Create launch.json
therunnas 6e91d58
docs(demo): use Gardevoir CDN; fix button type | style: comment in En…
therunnas b98f4c6
docs: move demo.html to /docs
therunnas 36e9581
docs(demo): use official Reseter.css CDN instead of Gardevoir
therunnas 9fbf0f4
fix(a11y): consolidate prefers-reduced-motion rules (WCAG-friendly)
therunnas bdc4853
docs(demo): add demo.html page in English (no global.scss changes)
therunnas 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...Gardevoir CDN; fix button type style comment in English chore remove VSCode launch
This file contains hidden or 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,44 @@ | ||
| warning: in the working copy of 'demo.html', LF will be replaced by CRLF the next time Git touches it | ||
| warning: in the working copy of 'src/components/global.scss', LF will be replaced by CRLF the next time Git touches it | ||
| [1mdiff --git a/demo.html b/demo.html[m | ||
| [1mindex 71b56c3..a3b977d 100644[m | ||
| [1m--- a/demo.html[m | ||
| [1m+++ b/demo.html[m | ||
| [36m@@ -4,7 +4,7 @@[m | ||
| <meta charset="UTF-8" />[m | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" />[m | ||
| <title>Reseter.css Demo</title>[m | ||
| [31m- <link rel="stylesheet" href="reseter.css" />[m | ||
| [32m+[m[32m <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gardevoir" />[m | ||
| <style>[m | ||
| body { padding: 2rem; font-family: sans-serif; }[m | ||
| section { margin-bottom: 2rem; }[m | ||
| [36m@@ -25,13 +25,13 @@[m | ||
| <form>[m | ||
| <label>Nome: <input type="text" /></label><br><br>[m | ||
| <label>Email: <input type="email" /></label><br><br>[m | ||
| [31m- <button>Enviar</button>[m | ||
| [32m+[m[32m <button type="button">Enviar</button>[m | ||
| </form>[m | ||
| </section>[m | ||
| [m | ||
| <section>[m | ||
| <h2>Botões e Tipografia</h2>[m | ||
| [31m- <button>Clique Aqui</button>[m | ||
| [32m+[m[32m <button type="button">Clique Aqui</button>[m | ||
| <p>Texto comum</p>[m | ||
| <strong>Texto em negrito</strong>[m | ||
| <em>Texto em itálico</em>[m | ||
| [1mdiff --git a/src/components/global.scss b/src/components/global.scss[m | ||
| [1mindex 2b5da0d..95df3f5 100644[m | ||
| [1m--- a/src/components/global.scss[m | ||
| [1m+++ b/src/components/global.scss[m | ||
| [36m@@ -24,7 +24,7 @@[m | ||
| :where(p + p) {[m | ||
| margin-top: 1rem;[m | ||
| }[m | ||
| [31m-// Acessibilidade: reduz animações para usuários que preferem menos movimento[m | ||
| [32m+[m[32m// Accessibility: reduce motion for users who prefer less movement[m | ||
| @media (prefers-reduced-motion: reduce) {[m | ||
| *, *::before, *::after {[m | ||
| animation-duration: 0.001ms !important;[m | ||
This file contains hidden or 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,40 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
therunnas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Reseter.css Demo</title> | ||
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gardevoir" /> | ||
therunnas marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <style> | ||
| body { padding: 2rem; font-family: sans-serif; } | ||
| section { margin-bottom: 2rem; } | ||
| h2 { border-bottom: 1px solid #ccc; padding-bottom: 0.3rem; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <h1>Reseter.css Demo</h1> | ||
|
|
||
| <section> | ||
| <h2>Listas</h2> | ||
| <ul><li>Item 1</li><li>Item 2</li></ul> | ||
| <ol><li>Item A</li><li>Item B</li></ol> | ||
| </section> | ||
|
|
||
| <section> | ||
| <h2>Formulário</h2> | ||
| <form> | ||
| <label>Nome: <input type="text" /></label><br><br> | ||
| <label>Email: <input type="email" /></label><br><br> | ||
| <button type="button">Enviar</button> | ||
| </form> | ||
| </section> | ||
|
|
||
| <section> | ||
| <h2>Botões e Tipografia</h2> | ||
| <button type="button">Clique Aqui</button> | ||
| <p>Texto comum</p> | ||
| <strong>Texto em negrito</strong> | ||
| <em>Texto em itálico</em> | ||
| </section> | ||
| </body> | ||
| </html> | ||
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.