Updated search result & button styling
authorAdam Dullage <redacted>
Sat, 20 Aug 2022 14:02:58 +0000 (15:02 +0100)
committerAdam Dullage <redacted>
Sat, 20 Aug 2022 14:02:58 +0000 (15:02 +0100)
flatnotes/src/colours.scss
flatnotes/src/components/SearchResults.vue
flatnotes/src/global.scss

index 1c2b2a7a6e54b457a3e8c014f8ea00d8fe553b6b..ae96a09e6a162abf0256508a8f4392b57726d53f 100644 (file)
@@ -4,6 +4,6 @@ $drop-shadow: #0000000a;
 $muted-text: #6c757d;
 $very-muted-text: #d8dbdd;
 $text: #222222;
-$button-background: #00000008;
-$input-highlight: #bbcdff;
+$button-background: #6ca7ff15;
+$input-highlight: #6ca7ff;
 $logo-key-colour: #f9a76b;
index 23f835a5bb030acc31d1dc166bf332ae86e65688..3c1d13cc891cc5660f3c321fda79176d2f4e9d70 100644 (file)
 
     <!-- Search Results Loaded -->
     <div v-else>
-      <div v-for="result in searchResults" :key="result.title" class="mb-4">
-        <p class="font-weight-bold mb-0">
-          <a
+      <div
+        v-for="result in searchResults"
+        :key="result.title"
+        class="bttn result mb-3"
+      >
+        <a :href="result.href" @click.prevent="openNote(result.href)">
+          <p
+            class="font-weight-bold mb-0"
             v-html="result.titleHighlightsOrTitle"
-            :href="result.href"
-            @click.prevent="openNote(result.href)"
-          ></a>
-        </p>
-        <p class="result-contents" v-html="result.contentHighlights"></p>
+          ></p>
+          <p class="result-contents" v-html="result.contentHighlights"></p>
+        </a>
       </div>
     </div>
   </div>
 <style lang="scss" scoped>
 @import "../colours";
 
-a {
-  &:hover {
-    filter: opacity(70%);
-  }
+.result p {
+  margin: 0;
 }
 
 .result-contents {
index e6ee3178d6086467194324a82ffcce0274660d40..bd6da326d9c51817bf3a1f79233c007ce51d0b46 100644 (file)
@@ -22,6 +22,7 @@ a {
   &:hover {
     text-decoration: none;
     color: inherit;
+    cursor: pointer;
   }
 }
 
git clone https://git.99rst.org/PROJECT