1 /* Interwiki search results */
2 /* ======================== */
4 @import 'mediawiki.skin.variables.less';
6 /* stylelint-disable selector-class-pattern */
8 .mw-searchresults-has-iw {
15 box-sizing: border-box;
20 word-break: break-word;
25 /* Matching regular search title */
29 .iw-result__content::after {
44 .iw-result__header a {
45 vertical-align: middle;
46 color: @color-emphasized;
50 /* Matching main search result font-size */
54 .iw-result__footer a {
55 vertical-align: middle;
58 .iw-result__header .oo-ui-iconElement-icon {
62 /* Image search result */
63 .iw-result__mini-gallery {
68 box-sizing: border-box;
72 .iw-resultset:nth-child( 1 ) {
74 border-top: @border-subtle;
79 /* Second and third images are small */
80 .iw-result__mini-gallery:nth-child( 2 ),
81 .iw-result__mini-gallery:nth-child( 3 ) {
86 .iw-result__mini-gallery__image {
91 background-size: 100% auto;
92 background-size: cover;
93 background-repeat: no-repeat;
94 background-position: center center;
97 /* Image gallery text */
98 .iw-result__mini-gallery__image > .iw-result__mini-gallery__caption {
104 color: @color-inverted;
107 background-color: @background-color-backdrop-dark;
110 .iw-result__mini-gallery__image:hover > .iw-result__mini-gallery__caption {
115 @media only screen and ( min-width: @min-width-breakpoint-tablet ) {
116 #mw-interwiki-results {
117 display: inline-block;
118 width: ~'calc( 100% / 12 * 4 )';
119 margin-left: ~'calc( 100% / 12 )';
122 .iw-resultset:nth-child( 1 ) {
124 // Fallback is graceful enough.
130 @media only screen and ( min-width: 1440px ) {
131 #mw-interwiki-results {
132 margin-right: ~'calc( 100% / 12 )';
133 width: ~'calc( 100% / 12 * 3 )';
137 .mw-searchresults-has-iw {
144 .mw-searchresults-has-iw.mw-searchresults-has-offset {
146 @media only screen and ( max-width: @max-width-breakpoint-mobile ) {
147 #mw-interwiki-results {