mirror of
https://github.com/kevquirk/simple.css.git
synced 2026-11-30 16:48:18 +01:00
Add class=button example and make height consistent with buttons
This commit is contained in:
@@ -1090,6 +1090,10 @@
|
||||
<button type="reset"><button type=reset></button>
|
||||
<button type="button" disabled><button disabled></button>
|
||||
</p>
|
||||
<p>
|
||||
<a href="#forms__action" class="button"><a class=button></a>
|
||||
<a href="#forms__action" class="button" aria-disabled="true"><a class=button aria-disabled=true></a>
|
||||
</p>
|
||||
</fieldset>
|
||||
<p><a href="#top">[Top]</a></p>
|
||||
</form>
|
||||
|
||||
+9
-2
@@ -669,14 +669,21 @@ dialog::backdrop {
|
||||
color: var(--bg);
|
||||
padding: 0.7rem 0.9rem;
|
||||
margin: 0.5rem 0;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.button:hover,
|
||||
.button:focus {
|
||||
.button:not([aria-disabled=true]):hover,
|
||||
.button:not([aria-disabled=true]):focus {
|
||||
filter: brightness(1.4);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.button[aria-disabled="true"] {
|
||||
cursor: not-allowed;
|
||||
background-color: var(--disabled);
|
||||
color: var(--text-light)
|
||||
}
|
||||
|
||||
.notice {
|
||||
background: var(--accent-bg);
|
||||
border: 2px solid var(--border);
|
||||
|
||||
Reference in New Issue
Block a user