2017-01-23 14:59:47 +00:00
|
|
|
@import 'mediawiki.mixins';
|
2017-02-20 14:42:10 +00:00
|
|
|
@import 'mediawiki.ui/variables';
|
2016-07-07 12:35:17 +00:00
|
|
|
|
2014-08-07 11:38:34 +00:00
|
|
|
/* Search */
|
|
|
|
#p-search {
|
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
margin-left: 0.5em;
|
|
|
|
|
|
|
|
h3 {
|
2016-07-07 12:35:17 +00:00
|
|
|
.mixin-screen-reader-text;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
form,
|
|
|
|
input {
|
|
|
|
margin: 0;
|
|
|
|
margin-top: 0.4em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
div#simpleSearch {
|
|
|
|
display: block;
|
2014-08-15 23:33:42 +00:00
|
|
|
width: 12.6em;
|
2015-10-31 12:43:08 +00:00
|
|
|
width: 20vw; /* responsive width */
|
|
|
|
min-width: 5em;
|
|
|
|
max-width: 20em;
|
2014-08-15 23:33:42 +00:00
|
|
|
padding-right: 1.4em;
|
2014-08-07 11:38:34 +00:00
|
|
|
height: 1.4em;
|
|
|
|
margin-top: 0.65em;
|
|
|
|
position: relative;
|
|
|
|
min-height: 1px; /* Gotta trigger hasLayout for IE7 */
|
|
|
|
border: solid 1px #aaa;
|
2017-01-23 14:59:47 +00:00
|
|
|
color: #000;
|
|
|
|
background-color: #fff;
|
|
|
|
.background-image( 'images/search-fade.png' );
|
2014-08-07 11:38:34 +00:00
|
|
|
background-position: top left;
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
|
|
|
|
// Styles for both the search input and the button
|
|
|
|
input {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
2017-01-23 14:59:47 +00:00
|
|
|
color: #000;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// The search input
|
|
|
|
#searchInput {
|
2014-08-15 23:33:42 +00:00
|
|
|
width: 100%;
|
2014-08-07 11:38:34 +00:00
|
|
|
padding: 0.2em 0 0.2em 0.2em;
|
|
|
|
font-size: 13px;
|
|
|
|
direction: ltr;
|
|
|
|
|
|
|
|
&:focus {
|
2017-02-18 00:33:55 +00:00
|
|
|
outline: 0;
|
2014-08-07 11:38:34 +00:00
|
|
|
}
|
|
|
|
|
2017-02-20 14:42:10 +00:00
|
|
|
/* stylelint-disable indentation */
|
|
|
|
.mixin-placeholder( {
|
|
|
|
color: @colorGray7;
|
|
|
|
opacity: 1;
|
|
|
|
} );
|
|
|
|
/* stylelint-enable indentation */
|
2014-08-07 11:38:34 +00:00
|
|
|
|
|
|
|
// Undo the styles Webkit browsers apply to type=search fields,
|
|
|
|
// we provide our own
|
|
|
|
-webkit-appearance: textfield;
|
|
|
|
|
|
|
|
&::-webkit-search-decoration,
|
|
|
|
&::-webkit-search-cancel-button,
|
|
|
|
&::-webkit-search-results-button,
|
|
|
|
&::-webkit-search-results-decoration {
|
|
|
|
-webkit-appearance: textfield;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// The buttons. They are displayed in the same position, and if both are
|
|
|
|
// present the fulltext search one obscures the 'Go' one.
|
|
|
|
#searchButton,
|
|
|
|
#mw-searchButton {
|
2014-08-15 23:33:42 +00:00
|
|
|
position: absolute;
|
2014-08-07 11:38:34 +00:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2014-08-15 23:33:42 +00:00
|
|
|
width: 1.65em;
|
2014-08-07 11:38:34 +00:00
|
|
|
height: 100%;
|
|
|
|
cursor: pointer;
|
|
|
|
/* Hide button text and replace it with the image. */
|
2014-08-15 23:33:42 +00:00
|
|
|
text-indent: -99999px;
|
2014-08-07 11:38:34 +00:00
|
|
|
/* Needed to make IE6 respect the text-indent. */
|
|
|
|
line-height: 1;
|
|
|
|
/* Opera 12 on RTL flips the text in a funny way without this. */
|
|
|
|
/* @noflip */
|
|
|
|
direction: ltr;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
2016-09-18 14:09:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#searchButton {
|
2014-08-07 11:38:34 +00:00
|
|
|
.background-image-svg('images/search-ltr.svg', 'images/search-ltr.png');
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mw-searchButton {
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
}
|