Style the search bar when disabled
authorGuillaume Grossetie <ggrossetie@gmail.com>
Tue, 15 Feb 2022 13:44:19 +0000 (14:44 +0100)
committerDan Allen <dan@opendevise.com>
Thu, 17 Feb 2022 09:28:02 +0000 (09:28 +0000)
src/css/header.css

index db9ee52..e320b0a 100644 (file)
@@ -61,6 +61,17 @@ body {
   padding: 0 0.25em;
 }
 
+#search-input:disabled {
+  background-color: #dbdbdb;
+  /* disable cursor */
+  cursor: not-allowed;
+  pointer-events: all !important;
+}
+
+#search-input:disabled::placeholder {
+  color: #4c4c4c;
+}
+
 .navbar-burger {
   background: none;
   border: none;