Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Dropdown search and a-z
- Adding search to multi-level dropdown mobile menu
- fixing aria label on a-z template
  • Loading branch information
bcd04001 committed Sep 17, 2018
1 parent 0569313 commit 42ed949
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 4 deletions.
4 changes: 3 additions & 1 deletion content-az.php
Expand Up @@ -69,7 +69,9 @@ $pattern = '#[A-Za-z|~`!@\#$%^&*()_+=|\\}\][{\'/;\-":?>.<]#';
}
}
echo '</nav>';

?>
<input id="azFilterInput" type="text" class="form-control" aria-label="search site A to Z" placeholder="Type here to filter this list" />
<?php
// Generate AZ List
//if( !preg_match($pattern, $exclude, $matches) ){
$letters = array();
Expand Down
6 changes: 6 additions & 0 deletions inc/nav-drop-multi.php
Expand Up @@ -72,6 +72,12 @@
);
}
?>

<div class="visible-xs-block">
<div class="navbar-form navbar-right">
<?php get_search_form(); ?>
</div>
</div>
</div>
</nav>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion prepros-6.config
Expand Up @@ -351,7 +351,7 @@
}
],
"projectView": {
"selectedView": "file-tree"
"selectedView": "log"
},
"fileWatcher": {
"enabled": true,
Expand Down
9 changes: 9 additions & 0 deletions sass/_content.scss
Expand Up @@ -281,3 +281,12 @@ a.btn {
min-width:100px
}
}

/*--------------------------------------------------------------
10.9 A-Z Search
--------------------------------------------------------------*/

#azFilterInput {
margin-top:10px;
width: 250px;
}
13 changes: 13 additions & 0 deletions sass/_nav.scss
Expand Up @@ -230,4 +230,17 @@ $nav-z: 9999;

}
}
}

#drop-multi {
.visible-xs-block {
.search {
width:200px;
display: inline-block;
}

.btn-default {
margin-top: -3px;
}
}
}
14 changes: 14 additions & 0 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion style.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion style.scss
Expand Up @@ -29,4 +29,4 @@ $icon-font-path: "../../global/bootstrap-3.3.4/fonts/bootstrap/" !default;
@import "sass/_cal.scss";
@import "sass/_in-page-menus.scss";
@import "sass/_footer.scss";
@import "sass/_page-builder.scss";
@import "sass/_page-builder.scss";

0 comments on commit 42ed949

Please sign in to comment.