diff --git a/core/themes/bartik/bartik.libraries.yml b/core/themes/bartik/bartik.libraries.yml index 009a67f..6b1ff3e 100644 --- a/core/themes/bartik/bartik.libraries.yml +++ b/core/themes/bartik/bartik.libraries.yml @@ -26,7 +26,7 @@ global-styling: css/components/pager.css: {} css/components/panel.css: {} css/components/primary-menu.css: {} - css/components/search.css: {} + css/components/search-form.css: {} css/components/search-results.css: {} css/components/secondary-menu.css: {} css/components/shortcut.css: {} diff --git a/core/themes/bartik/css/components/search-form.css b/core/themes/bartik/css/components/search-form.css new file mode 100644 index 0000000..fe15c4a --- /dev/null +++ b/core/themes/bartik/css/components/search-form.css @@ -0,0 +1,38 @@ +/** + * @file + * The visual styles for Bartik's search form(s). + */ +.search-form .form-search { + box-sizing: border-box; + padding: 4px; + float: left; /* LTR */ + font-size: 1em; + margin-right: 5px; /* LTR */ +} +.search-form .form-search::-webkit-search-decoration { + display: none; +} +[dir="rtl"] .search-form .form-search { + float: right; + margin-left: 5px; + margin-right: 0; +} +.search-form .form-submit { + margin-left: 0; + margin-right: 0; + height: 31px; + width: 34px; + padding: 0; + cursor: pointer; + text-indent: -9999px; + border-color: #e4e4e4 #d2d2d2 #b4b4b4; + background: #f0f0f0 url(../../../../misc/icons/505050/loupe.svg) no-repeat center; + overflow: hidden; +} +.search-form .form-submit:hover, +.search-form .form-submit:focus { + background: #dedede url(../../../../misc/icons/424242/loupe.svg) no-repeat center; +} +.search-form .form-item-keys label { + display: block; +} diff --git a/core/themes/bartik/css/components/search.css b/core/themes/bartik/css/components/search.css index 54650be..146d189 100644 --- a/core/themes/bartik/css/components/search.css +++ b/core/themes/bartik/css/components/search.css @@ -1,27 +1,35 @@ /* --------------- Search Form ---------------- */ -.search-block-form .content { +#block-search-form { + padding-bottom: 7px; +} +#block-search-form .content { margin-top: 0; } -.search-form input[type="search"] { +#search-form input[type="search"], +#block-search-form input[type="search"] { box-sizing: border-box; padding: 4px; -webkit-appearance: textfield; } -.search-form input[type="search"]::-webkit-search-decoration { +#search-form input[type="search"]::-webkit-search-decoration, +#block-search-form input[type="search"]::-webkit-search-decoration { display: none; } -.search-form #edit-keys { +#search-form input#edit-keys, +#block-search-form .form-item-search-block-form input { float: left; /* LTR */ font-size: 1em; margin-right: 5px; /* LTR */ } -[dir="rtl"] .search-form #edit-keys { +[dir="rtl"] #search-form input#edit-keys, +[dir="rtl"] #block-search-form .form-item-search-block-form input { float: right; margin-left: 5px; margin-right: 0; } -.search-form .form-submit { +#search-block-form input.form-submit, +#search-form input.form-submit { margin-left: 0; margin-right: 0; height: 25px; @@ -33,10 +41,12 @@ background: #f0f0f0 url(../../../../misc/icons/505050/loupe.svg) no-repeat center; overflow: hidden; } -.search-form .form-submit:hover, -.search-form .form-submit:focus { +#search-block-form input.form-submit:hover, +#search-block-form input.form-submit:focus, +#search-form input.form-submit:hover, +#search-form input.form-submit:focus { background: #dedede url(../../../../misc/icons/424242/loupe.svg) no-repeat center; } -.search-form .form-item-keys label { +#search-form .form-item-keys label { display: block; }