1
0
mirror of https://github.com/jdan/98.css.git synced 2025-08-30 09:09:56 +02:00

Added documentation w/ example

This commit is contained in:
Vincent Langlois
2024-01-22 18:09:46 -05:00
parent 723995d5d2
commit bc9ccf5490

View File

@@ -141,10 +141,18 @@
They are given 12px of horizontal padding by default.
</p>
<%- example(`<button class="default">Click me</button>
<%- example(`<button>Click me</button>
<input type="submit" />
<input type="reset" /> `)%>
<p>
You can add the class <code>default</code> to any button to apply additional styling,
useful when communicating to the user what default action would happen in the active window if
the <kbd>Enter</kbd> key was pressed on Windows 98.
</p>
<%- example(`<button class="default">OK</button>`)%>
<p>
When buttons are clicked, the raised borders become sunken.
The following button is simulated to be in the pressed (active) state.