Przeglądaj źródła

WIP: reconstruct layouts

* SearchTypeahead
Yuki Takei 8 lat temu
rodzic
commit
7bd6aab354

+ 1 - 1
resource/js/components/SearchTypeahead.js

@@ -144,7 +144,7 @@ export default class SearchTypeahead extends React.Component {
       : [];
 
     return (
-      <span>
+      <span className="search-typeahead">
         <AsyncTypeahead
           {...this.props}
           ref="typeahead"

+ 34 - 29
resource/styles/scss/_search.scss

@@ -16,19 +16,42 @@
   padding: 8px;
 }
 
-.search-top, .search-sidebar {
-  .search-input-group {
-    .search-top-clear {
-      position: absolute;
-      z-index: 2;
-      right: 28px;
-      width: 24px;
-      height: 24px;
-      top: 3px;
-      color: #999;
-      padding: 0;
+.search-typeahead {
+  .search-clear {
+    position: absolute;
+    z-index: 2;
+    right: 28px;
+    width: 24px;
+    height: 24px;
+    top: 7px;
+    color: #999;
+    padding: 0;
+  }
+  .rbt-menu {
+    li a span {
+      .page-path {
+        display: inline;
+        padding: 0 4px;
+        color: inherit;
+      }
+
+      .page-list-meta {
+        font-size: .9em;
+        color: #999;
+
+        >span {
+          margin-right: .3rem;
+        }
+      }
     }
   }
+}
+
+// top and sidebar input styles
+.search-top, .search-sidebar {
+  .search-clear {
+    top: 3px;
+  }
 
   .input-group-btn {
     position: absolute;
@@ -53,24 +76,6 @@
       margin-left: 8px;
     }
   }
-  .rbt-menu {
-    li a span {
-      .page-path {
-        display: inline;
-        padding: 0 4px;
-        color: inherit;
-      }
-
-      .page-list-meta {
-        font-size: .9em;
-        color: #999;
-
-        >span {
-          margin-right: .3rem;
-        }
-      }
-    }
-  }
 }
 
 // layout