diff --git a/README.md b/README.md index 3fa4de2..95c647e 100644 --- a/README.md +++ b/README.md @@ -18,24 +18,37 @@ The easiest way to use 98.css is to import it from [unpkg](https://unpkg.com/). ```html - - 98.css example - - - - - -
-
-
- My First VB4 Program + + 98.css example + + + + + +
+
+
My First VB4 Program
+
+
+

Hello, world!

-
-

Hello, world!

-
-
- + + + + + + + + + + + + ``` diff --git a/docs/index.html.ejs b/docs/index.html.ejs index 9568d56..d78f9c8 100644 --- a/docs/index.html.ejs +++ b/docs/index.html.ejs @@ -167,6 +167,19 @@

<%- example(`I am focused`) %> + +

+ Images and elements with [role=img] inside the button will get disabled state when the button is disabled. +

+ + <%- example(` + + + `) %>
@@ -987,5 +1000,20 @@ subscribing to more fun things on my twitter. 👋

+ + + + + + + + + + + diff --git a/docs/mail-icon.png b/docs/mail-icon.png new file mode 100644 index 0000000..484c3b0 Binary files /dev/null and b/docs/mail-icon.png differ diff --git a/style.css b/style.css index 12cf871..fb9076c 100644 --- a/style.css +++ b/style.css @@ -200,6 +200,11 @@ input[type="reset"]:disabled, text-shadow: 1px 1px 0 var(--button-highlight); } +button:disabled img, +button:disabled [role="img"] { + filter: url("#disabled-filter-98css"); +} + .window { box-shadow: var(--border-window-outer), var(--border-window-inner); background: var(--surface); @@ -885,3 +890,10 @@ table > tbody > tr > * { padding: 0 var(--grouped-element-spacing); height: 14px; } + +#filters-98css { + position: absolute; + pointer-events: none; + top: 0; + left: 0; +} \ No newline at end of file