soft border-radius for search typeahead suggestions
authorRigel Kent <sendmemail@rigelk.eu>
Thu, 18 Jun 2020 10:10:20 +0000 (12:10 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Thu, 18 Jun 2020 10:10:20 +0000 (12:10 +0200)
client/src/app/header/search-typeahead.component.scss

index 4b56fd93a75145a90abade6e6a3b904ee9bc1093..c21323f56d22ce1e3caaa4b5bf09b4a265e48fb9 100644 (file)
 #typeahead-instructions,
 li.suggestion {
   border: 1px solid pvar(--mainBackgroundColor);
-  border-bottom-right-radius: 3px;
-  border-bottom-left-radius: 3px;
   background: pvar(--mainBackgroundColor);
   transition: .3s ease;
   transition-property: box-shadow;
+
+  // soft border-radius for the last suggestion and the link inside
+  &:last-of-type {
+    &, & ::ng-deep a {
+      border-bottom-right-radius: 3px;
+      border-bottom-left-radius: 3px;
+    }
+  }
 }
 
 #typeahead-help,