search bar shadow on focus
authorRigel Kent <sendmemail@rigelk.eu>
Thu, 12 Dec 2019 09:42:46 +0000 (10:42 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Fri, 13 Dec 2019 08:13:43 +0000 (09:13 +0100)
client/src/app/header/header.component.scss

index cea415d9b229001eaeeb91da515d2179caa21a2a..736035b72ba776b6a60bef4b6c31aa0f7cec6c54 100644 (file)
@@ -8,6 +8,16 @@
   padding-right: 40px; // For the search icon
   font-size: 14px;
 
+  transition: box-shadow .3s ease;
+
+  /* light border style */
+  border: 1px solid var(--mainBackgroundColor);
+  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px;
+
+  &:focus {
+    box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px;
+  }
+
   &::placeholder {
     color: var(--inputPlaceholderColor);
   }