Jelajahi Sumber

add smoothing to button hover

Front 3 tahun lalu
induk
melakukan
b5c79b8c30
2 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 2 2
      Extensions/chrome/popup.css
  2. 2 1
      Extensions/firefox/popup.css

+ 2 - 2
Extensions/chrome/popup.css

@@ -33,8 +33,8 @@ button {
   border: none;
   border: none;
   border-radius: 4px;
   border-radius: 4px;
   font-weight: 500;
   font-weight: 500;
-  box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%),
-    0 1px 10px 0 rgb(0 0 0 / 12%);
+  box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);
+  transition: .4s;
 }
 }
 
 
 button:hover {
 button:hover {

+ 2 - 1
Extensions/firefox/popup.css

@@ -32,11 +32,12 @@ button {
     border-radius: 4px;
     border-radius: 4px;
     font-weight: 500;
     font-weight: 500;
     box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);
     box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);
+    transition: .4s;
 }
 }
 
 
 button:hover {
 button:hover {
     background: #444;
     background: #444;
-  }
+}
 
 
 #advancedToggle {
 #advancedToggle {
     margin-top: 1em;
     margin-top: 1em;