]> _ Git - fluidbook-html5.git/commitdiff
wait #8021 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 25 Feb 2026 13:39:11 +0000 (14:39 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 25 Feb 2026 13:39:11 +0000 (14:39 +0100)
style/fluidbook.less
style/mixins.less
style/search.less [new file with mode: 0644]

index 456b5157070a71fcddef3cd82c5caa88c7224c48..871d3c4a7532a6f2b38b0a11e0defb38c63264d7 100644 (file)
@@ -687,61 +687,7 @@ body, html {
   }
 }
 
-/* Search */
-
-@keyframes pulse {
-  0% {
-    transform: scale(0.8);
-  }
-
-  100% {
-    transform: scale(1);
-  }
-}
-
-#searchHighlights, .searchHighlights {
-  position: absolute;
-  top: 0px;
-  left: 0px;
-  z-index: 6;
-  pointer-events: none;
-  opacity: 0.3;
-
-  .highlight {
-    position: absolute;
-    border-width: 2px;
-    border-radius: 2px;
-    border-style: solid;
-
-    transform-origin: 0 0;
-
-    //&.robust {
-    //  border-radius: 50% 50%;
-    //  animation: pulse 1s infinite alternate linear;
-    //  transform-origin: 50% 50%;
-    //}
-
-    &[data-color="0"], &[data-color="5"], &[data-color="10"] {
-      .highlight-area(#00ff00);
-    }
-
-    &[data-color="1"], &[data-color="6"], &[data-color="11"] {
-      .highlight-area(#ffff00);
-    }
-
-    &[data-color="2"], &[data-color="7"], &[data-color="12"] {
-      .highlight-area(#00ffff);
-    }
-
-    &[data-color="3"], &[data-color="8"], &[data-color="13"] {
-      .highlight-area(#ff00ff);
-    }
-
-    &[data-color="4"], &[data-color="9"], &[data-color="14"] {
-      .highlight-area(#ff0000);
-    }
-  }
-}
+@import "search";
 
 @import "shadow";
 
index 3be76a07c4037d302e300af7b2f7ecf174878296..64db2f3e20c98bc8f152af8f0b5328612340810c 100644 (file)
@@ -8,13 +8,6 @@
   display: none;
 }
 
-.highlight-area(@color) {
-  border-color: @color;
-  background-color: @color;
-  &.robust {
-    border: 0;
-  }
-}
 
 .page-transition(@factor) {
   .prop-transition(all, @factor);
diff --git a/style/search.less b/style/search.less
new file mode 100644 (file)
index 0000000..e56e99b
--- /dev/null
@@ -0,0 +1,64 @@
+/* Search */
+
+@keyframes pulse {
+  0% {
+    transform: scale(0.8);
+  }
+
+  100% {
+    transform: scale(1);
+  }
+}
+
+
+.highlight-area(@color) {
+  border-color: @color;
+  background-color: @color;
+  &.robust {
+    border: 0;
+  }
+}
+
+#searchHighlights, .searchHighlights {
+  position: absolute;
+  top: 0px;
+  left: 0px;
+  z-index: 6;
+  pointer-events: none;
+  opacity: 0.3;
+
+  .highlight {
+    position: absolute;
+    border-width: 2px;
+    border-radius: 2px;
+    border-style: solid;
+
+    transform-origin: 0 0;
+
+    //&.robust {
+    //  border-radius: 50% 50%;
+    //  animation: pulse 1s infinite alternate linear;
+    //  transform-origin: 50% 50%;
+    //}
+
+    &[data-color="0"], &[data-color="5"], &[data-color="10"] {
+      .highlight-area(@search-highlight-0);
+    }
+
+    &[data-color="1"], &[data-color="6"], &[data-color="11"] {
+      .highlight-area(@search-highlight-1);
+    }
+
+    &[data-color="2"], &[data-color="7"], &[data-color="12"] {
+      .highlight-area(@search-highlight-2);
+    }
+
+    &[data-color="3"], &[data-color="8"], &[data-color="13"] {
+      .highlight-area(@search-highlight-3);
+    }
+
+    &[data-color="4"], &[data-color="9"], &[data-color="14"] {
+      .highlight-area(@search-highlight-4);
+    }
+  }
+}
\ No newline at end of file