initial theming for search results
authorAndrew Engelbrecht <andrew@fsf.org>
Tue, 30 Jul 2019 20:46:31 +0000 (16:46 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Tue, 30 Jul 2019 20:46:31 +0000 (16:46 -0400)
css/style.css
templates/search-result.html.twig

index 3b6f95e27ab7d8a1a4764259f24a8cd6fabe9513..7fd8c917b15f3c9d1666cf61ce37ba136b1893ca 100644 (file)
@@ -567,6 +567,61 @@ a { transition: 0.3s; }
 }
 
 
 }
 
 
+/* Search Results */
+
+
+@media screen and (max-width: 600px) {
+  .path-search .region-content ol {
+    width: 300px;
+  }
+}
+@media screen and (min-width: 601px) and (max-width 1000px) {
+  .path-search .region-content ol {
+    width: 560px;
+  }
+}
+@media screen and (min-width: 1001px) {
+  .path-search .region-content ol {
+    width: 900px;
+  }
+}
+
+.path-search .region-content ol {
+  margin: 0 auto;
+  padding-left: 0;
+  overflow: auto;
+}
+
+.path-search .region-content li {
+  width: 280px;
+  height: 280px;
+  margin: 0px auto;
+  padding: 10px;
+
+  float: left;
+
+  list-style: none;
+  overflow: hidden;
+}
+
+.path-search .region-content li h3 {
+  text-align: center;
+}
+
+.path-search .region-content li .search-image {
+  width: 100px;
+  height: 100px;
+
+  margin: 0 auto;
+
+  display: flex;
+  align-items: center;
+}
+
+.path-search .region-content li img {
+}
+
+
 /* Footer */
 
 
 /* Footer */
 
 
index 9809a166fbe8d56efe91a0f80342a2be246c9819..31ae4712f8ed892e8fba4947486481391a1d0394 100644 (file)
@@ -64,7 +64,9 @@
 </h3>
 {{ title_suffix }}
 {% if node.field_image.0 %}
 </h3>
 {{ title_suffix }}
 {% if node.field_image.0 %}
-  <img src="{{ node.field_image.0.entity.uri.value | image_style('thumbnail') }}">
+  <div class="search-image">
+    <img src="{{ node.field_image.0.entity.uri.value | image_style('thumbnail') }}">
+  </div>
 {% endif %}
 {% if snippet %}
   <p{{ content_attributes }}>{{ snippet }}</p>
 {% endif %}
 {% if snippet %}
   <p{{ content_attributes }}>{{ snippet }}</p>