Skip to content

Commit 78b4979

Browse files
committed
All: Move searchform styles to base.css
These are not specific to algolia-docsearch. Ref jquery/infrastructure-puppet#33
1 parent 193e312 commit 78b4979

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

themes/jquery/css/base.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,13 @@ nav#main .searchform {
16591659
padding: 0;
16601660
border-radius: 20px;
16611661
position: relative;
1662+
text-shadow: none;
1663+
}
1664+
1665+
/* Increase invisible click area to focus search field */
1666+
.searchform label {
1667+
width: 100%;
1668+
display: block;
16621669
}
16631670

16641671
nav#main .searchform input {

themes/jquery/css/docsearch.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/* Custom DocSeach CSS to adapt the generic one * See https://community.algolia.com/docsearch/styling.html for more info */
2-
nav#main .searchform {
3-
text-shadow: none;
4-
}
52

6-
.searchform label {
7-
width: 100%;
8-
display: block;
9-
}
103

114
.algolia-autocomplete {
125
width: 99%;

themes/jquery/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<meta name="viewport" content="width=device-width">
1919

2020
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/i/favicon.ico">
21-
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/base.css?v=4">
21+
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/base.css?v=5">
2222
<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>?v=2">
2323

2424
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>

0 commit comments

Comments
 (0)