=== modified file 'css/scratch.css'
--- css/scratch.css 2016-01-27 10:34:32 +0000
+++ css/scratch.css 2016-02-05 17:57:30 +0000
@@ -310,8 +310,6 @@
*/
.loop-results {
margin-left: 0;
-
- border-top: 1px dotted #aea79f;
}
.loop-results li {
font-size: 13px;
@@ -328,6 +326,12 @@
.loop-results li.loop-error {
width: auto;
}
+
+.loop-error {
+ font-size: .825rem;
+ color: #888;
+}
+
/* END loop results */
#loop-examples .loop-results li a:first-child,
@@ -404,6 +408,48 @@
#form-filter-search input[type='submit']:hover {
background: url('../img/button-form-filter-search.png') 0 0 no-repeat transparent;
}
+
+
+.search-section {
+ margin-bottom: 3rem;
+}
+
+.search-results {
+ border-top: 0;
+}
+
+.search-result {
+ margin-bottom: 1rem;
+ padding-bottom: 1rem;
+}
+
+.search-result-title {
+ margin-bottom: .25rem;
+}
+
+.search-result-link {
+ display: block;
+ margin-bottom: .5rem;
+ font-size: .825rem;
+}
+
+.search-result-last-updated {
+ display: block;
+ margin-bottom: .5rem;
+ font-size: .825rem;
+ color: #888;
+}
+
+
+.search-result-link a:hover {
+ text-decoration: none;
+}
+
+.search-result-subtitle {
+ margin-bottom: 2rem;
+}
+
+
/* END search styles */
/*
@@ -837,7 +883,7 @@
}
.cookie-policy .link-cta {
- background-image: url(../img/icons/close-orange.svg);
+ background-image: url(https://assets.ubuntu.com/v1/3f057022-close-orange.svg);
background-repeat: no-repeat;
color: #fff;
float: right;
=== modified file 'loop-search-downloads.php'
--- loop-search-downloads.php 2014-10-21 16:38:46 +0000
+++ loop-search-downloads.php 2016-02-05 17:57:30 +0000
@@ -1,24 +1,22 @@
+
+Results in Downloads:
-
-have_posts()) : while ($query->have_posts()) : $query->the_post();
// Get post attachments
$args = array();
$args['post_type'] = 'attachment';
$args['post_parent'] = $post->ID;
$attachments = get_posts($args);
+?>
+ID != get_post_thumbnail_id($post->ID)) :
?>
- -
+
-
- Sorry, no results have been found
+ Sorry, no results in Downloads have been found.
-
\ No newline at end of file
+
=== modified file 'loop-search-examples.php'
--- loop-search-examples.php 2014-10-21 16:38:46 +0000
+++ loop-search-examples.php 2016-02-05 17:57:30 +0000
@@ -1,36 +1,31 @@
+Results in Examples:
+
-
-have_posts()) : while ($query->have_posts()) : $query->the_post();
// Get post attachments
$args = array();
$args['post_type'] = 'attachment';
$args['post_parent'] = $post->ID;
$attachments = get_posts($args);
-echo 'HELLO';
foreach ($attachments as $attachment) :
?>
- -
+
post_excerpt; ?>
-
+
- - Sorry, no results have been found
+ Sorry, no results in examples have been found.
-
\ No newline at end of file
+
=== modified file 'loop-search-guidelines.php'
--- loop-search-guidelines.php 2014-10-21 16:38:46 +0000
+++ loop-search-guidelines.php 2016-02-05 17:57:30 +0000
@@ -1,23 +1,21 @@
+Results in Guidelines:
-
-have_posts()) : while ($query->have_posts()) : $query->the_post();
-?>
- - ›
+
+if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>
+
+
- - Sorry, no results have been found
+ Sorry, no results in guidelines have been found.
-
\ No newline at end of file
=== modified file 'template-search.php'
--- template-search.php 2014-10-21 16:38:46 +0000
+++ template-search.php 2016-02-05 17:57:30 +0000
@@ -4,30 +4,37 @@
*/
$template_body_id = 'search';
$template_body_class = 'search';
+$args = array();
+if (!empty($search)) {
+ $args['s'] = $search;
+}
?>
-
+
-
Your search:
-
-
-
-
Guidelines
-
-
-
-
-
-
Examples
-
-
-
-
-
-
Downloads
-
-
-
+
Your search for: ""
+
+
+
+
+
+
+
+
+
+