From cec582c84777437066ca8c4c23d6fe5267c8c2a2 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 5 Feb 2022 17:14:07 -0800 Subject: [PATCH] Add icon-button --- index.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/index.html b/index.html index cc6c76f..41cede6 100644 --- a/index.html +++ b/index.html @@ -82,6 +82,22 @@ animation: spin 1s infinite; } + .icon-button { + display: inline; + height: 24px; + width: 24px; + margin: 0; + padding: 0; + border: 0; + background: none; + } + + .icon-button:hover, + .icon-button:focus { + cursor: pointer; + animation: spin 0.2s linear 1; + } + /* Dividers */ @keyframes shiftRight { @@ -138,6 +154,16 @@

Some p text next to an inline-spinner:

+ +

Inline refresh icon button with rotation on hover or focus: + +

-- 2.47.3