1 /* interwiki search results */
2 /*==========================*/
4 #mw-interwiki-results {
23 background-color: #f2f4f7;
27 list-style-type: none;
40 * html .interwiki-result { /* IE6 */
43 *:first-child + html .iw-resultset { /* IE7 */
47 /* padding each .iw-resultset section seperately.
48 This allows us greater flexibility in the design.
49 For example changing the background color on the
55 padding: 0.25em 0.85em;
58 /* definition titles appear inline,
59 to resemble a traditional dictionary definition */
60 .iw-resultset--definition .iw-result__title {
65 .iw-resultset > div:first-child {
69 .iw-resultset > div:last-child {
70 padding-bottom: 0.85em;
74 font-size: 16px; /* rem fallback */
78 .iw-result__title a.extiw {
83 .iw-result__content:after { /* clearfix */
97 display: inline-block;
100 vertical-align: middle;
101 margin-right: 0.25em;
102 background: url( images/special.search/definition-icon.svg ) no-repeat 0 0;
103 background-size: 100% 100%;
106 @interwikiContentTypes: definition, travel, quotation, book, course, news, textbook, image;
110 .generate-iwIcons( @i:1 ) when ( @i =< length( @interwikiContentTypes ) ) {
111 @iwIcon: extract( @interwikiContentTypes, @i );
113 .iw-result__icon--@{iwIcon} {
114 /* stylelint-disable-next-line function-url-quotes */
115 background-image: url( 'images/special.search/@{iwIcon}-icon.png' );
116 /* stylelint-disable-next-line function-url-quotes */
117 background-image: url( 'images/special.search/@{iwIcon}-icon.svg' );
120 .generate-iwIcons( @i + 1 );
123 /* image search result */
124 .iw-result__mini-gallery {
129 box-sizing: border-box;
133 /* second and third images are small */
134 .iw-result__mini-gallery:nth-child( 2 ),
135 .iw-result__mini-gallery:nth-child( 3 ) { /* stylelint-disable-line indentation */
140 .iw-result__mini-gallery__image {
145 background-size: cover;
146 background-repeat: no-repeat;
147 background-position: center center;
150 .iw-result__mini-gallery__image > .iw-result__mini-gallery__caption { /* image gallery text */
157 text-shadow: 0 0 10px rgba( 0, 0, 0, 0.4 ); /* improves legibility on white background*/
160 background-color: rgba( 0, 0, 0, 0.5 );
163 .iw-result__mini-gallery__image:hover > .iw-result__mini-gallery__caption {
167 /* different types of interwiki result boxes */
169 .iw-resultset--quotation .iw-result__content {
170 border-left: 4px solid #afb1b5;
175 .iw-resultset--quotation .iw-result__title {
178 .iw-result--quotation .iw-result__title:before {
180 display: inline-block;
182 .iw-result--quotation .iw-result__footer {
187 span the interwiki results across the bottom of the page.
190 .mw-search-nonefound ~ #mw-search-interwiki {
194 .mw-search-nonefound ~ #mw-search-interwiki .iw-resultset {
202 @media only screen and ( max-width: 768px ) {
203 #mw-interwiki-results {
207 max-width: none !important;
210 width: 45% !important;
211 margin-left: 0.5em !important;
212 margin-right: 0.5em !important;
217 @media only screen and ( max-width: 600px ) {
219 width: 100% !important;
220 margin-left: 0 !important;
221 margin-right: 0 !important;
222 max-width: none !important;
226 /* Evil temporary hax for cawiki */