Skip to content

Commit

Permalink
Merge pull request #1545 from roots/remove-custom-search-template
Browse files Browse the repository at this point in the history
Use Sass to style search form, remove search template
  • Loading branch information
retlehs committed Oct 10, 2015
2 parents 2be91c1 + 9a14571 commit 2fa9cd6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 24 deletions.
15 changes: 15 additions & 0 deletions assets/styles/components/_forms.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Search form
.search-form {
@extend .form-inline;
}
.search-form label {
font-weight: normal;
@extend .form-group;
}
.search-form .search-field {
@extend .form-control;
}
.search-form .search-submit {
@extend .btn;
@extend .btn-default;
}
1 change: 0 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
* @link https://github.com/roots/sage/pull/1042
*/
$sage_includes = [
'lib/utils.php', // Utility functions
'lib/init.php', // Initial theme setup and constants
'lib/wrapper.php', // Theme wrapper class
'lib/config.php', // Configuration
Expand Down
2 changes: 1 addition & 1 deletion lib/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function setup() {

// Add HTML5 markup for captions
// http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery']);
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);

// Tell the TinyMCE editor to use a custom stylesheet
add_editor_style(Assets\asset_path('styles/editor-style.css'));
Expand Down
13 changes: 0 additions & 13 deletions lib/utils.php

This file was deleted.

9 changes: 0 additions & 9 deletions templates/searchform.php

This file was deleted.

0 comments on commit 2fa9cd6

Please sign in to comment.