Yuki Takei hace 7 años
padre
commit
6c051d316e
Se han modificado 1 ficheros con 12 adiciones y 5 borrados
  1. 12 5
      src/client/styles/scss/_search.scss

+ 12 - 5
src/client/styles/scss/_search.scss

@@ -30,6 +30,7 @@
   }
   }
   .rbt-menu {
   .rbt-menu {
     margin-top: 3px;
     margin-top: 3px;
+
     li a span {
     li a span {
       .page-path {
       .page-path {
         display: inline;
         display: inline;
@@ -100,11 +101,6 @@
       width: 300px;
       width: 300px;
     }
     }
   }
   }
-  .rbt-menu {
-    margin-top: 33px;   // DIRTY HACK
-                        //   note: 'transform: translate3d(0px, XXpx, 0px)' calculation has failed on .search-top
-                        //         since upgrade react-bootstrap-typeahead to v3.3.2 -- 2019.02.05 Yuki Takei
-  }
 }
 }
 .search-sidebar {
 .search-sidebar {
   .search-form, .form-group, .rbt-input.form-control, .input-group {
   .search-form, .form-group, .rbt-input.form-control, .input-group {
@@ -115,6 +111,17 @@
   }
   }
 }
 }
 
 
+@mixin search-typeahead-rbtmenu-mt($margin-top) {
+  .search-typeahead .rbt-menu {
+    margin-top: $margin-top;    // DIRTY HACK
+                                //   note: 'transform: translate3d(0px, XXpx, 0px)' calculation has failed
+                                //         since upgrade react-bootstrap-typeahead to v3.3.2 -- 2019.02.05 Yuki Takei
+  }
+}
+#search-top, #renamePage, #duplicatePage, .search-page-input {
+  @include search-typeahead-rbtmenu-mt(36px);
+}
+
 .search-result {
 .search-result {
 
 
   .search-result-list {
   .search-result-list {