Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
diff --git a/demo.html b/demo.html
index 71b56c3..a3b977d 100644
--- a/demo.html
+++ b/demo.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reseter.css Demo</title>
- <link rel="stylesheet" href="reseter.css" />
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gardevoir" />
<style>
body { padding: 2rem; font-family: sans-serif; }
section { margin-bottom: 2rem; }
@@ -25,13 +25,13 @@
<form>
<label>Nome: <input type="text" /></label><br><br>
<label>Email: <input type="email" /></label><br><br>
- <button>Enviar</button>
+ <button type="button">Enviar</button>
</form>
</section>

<section>
<h2>Botões e Tipografia</h2>
- <button>Clique Aqui</button>
+ <button type="button">Clique Aqui</button>
<p>Texto comum</p>
<strong>Texto em negrito</strong>
<em>Texto em itálico</em>
diff --git a/src/components/global.scss b/src/components/global.scss
index 2b5da0d..95df3f5 100644
--- a/src/components/global.scss
+++ b/src/components/global.scss
@@ -24,7 +24,7 @@
:where(p + p) {
margin-top: 1rem;
}
-// Acessibilidade: reduz animações para usuários que preferem menos movimento
+// Accessibility: reduce motion for users who prefer less movement
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.001ms !important;
40 changes: 40 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<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" />
<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>
10 changes: 10 additions & 0 deletions src/components/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@
:where(p + p) {
margin-top: 1rem;
}
// Accessibility: reduce motion for users who prefer less movement
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.001ms !important;
scroll-behavior: auto !important;
}
}