1 /* interwiki search results */
2 /*==========================*/
4 #mw-interwiki-results {
10 .searchresults .mw-search-createlink {
28 background-color: #f2f4f7;
32 list-style-type: none;
45 * html .interwiki-result { /* IE6 */
48 *:first-child + html .iw-resultset { /* IE7 */
52 /* padding each .iw-resultset section seperately.
53 This allows us greater flexibility in the design.
54 For example changing the background color on the
60 padding: 0.25em 0.85em;
63 /* definition titles appear inline,
64 to resemble a traditional dictionary definition */
65 .iw-resultset--definition .iw-result__title {
70 .iw-resultset > div:first-child {
74 .iw-resultset > div:last-child {
75 padding-bottom: 0.85em;
79 font-size: 16px; /* rem fallback */
83 .iw-result__title a.extiw {
87 .iw-result__content:after { /* clearfix */
101 display: inline-block;
104 vertical-align: middle;
105 margin-right: 0.25em;
106 background: url( images/special.search/definition-icon.svg ) no-repeat 0 0;
107 background-size: 100% 100%;
110 @interwikiContentTypes: definition, travel, quotation, book, course, news, textbook, image;
114 .generate-iwIcons( @i:1 ) when ( @i =< length( @interwikiContentTypes ) ) {
115 @iwIcon: extract( @interwikiContentTypes, @i );
117 .iw-result__icon--@{iwIcon} {
118 /* stylelint-disable-next-line function-url-quotes */
119 background-image: url( 'images/special.search/@{iwIcon}-icon.png' );
120 /* stylelint-disable-next-line function-url-quotes */
121 background-image: url( 'images/special.search/@{iwIcon}-icon.svg' );
124 .generate-iwIcons( @i + 1 );
127 /* image search result */
128 .iw-result__mini-gallery {
133 box-sizing: border-box;
137 /* second and third images are small */
138 .iw-result__mini-gallery:nth-child( 2 ),
139 .iw-result__mini-gallery:nth-child( 3 ) { /* stylelint-disable-line indentation */
144 .iw-result__mini-gallery__image {
149 background-size: cover;
150 background-repeat: no-repeat;
151 background-position: center center;
154 .iw-result__mini-gallery__image > .iw-result__mini-gallery__caption { /* image gallery text */
161 text-shadow: 0 0 10px rgba( 0, 0, 0, 0.4 ); /* improves legibility on white background*/
164 background-color: rgba( 0, 0, 0, 0.5 );
167 .iw-result__mini-gallery__image:hover > .iw-result__mini-gallery__caption {
171 /* different types of interwiki result boxes */
173 .iw-resultset--quotation .iw-result__content {
174 border-left: 4px solid #afb1b5;
179 .iw-resultset--quotation .iw-result__title {
182 .iw-result--quotation .iw-result__title:before {
184 display: inline-block;
186 .iw-result--quotation .iw-result__footer {
191 span the interwiki results across the bottom of the page.
194 .mw-search-nonefound ~ #mw-search-interwiki {
198 .mw-search-nonefound ~ #mw-search-interwiki .iw-resultset {
206 /* stylelint-disable declaration-no-important */
207 @media only screen and ( max-width: 768px ) {
208 #mw-interwiki-results {
213 max-width: none !important;
216 width: 100% !important;
217 margin-left: 0 !important;
218 margin-right: 0 !important;
219 max-width: none !important;
223 /* stylelint-enable declaration-no-important */