MediaWiki:Minerva.less/infobox.less: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary Tags: Mobile edit Mobile web edit |
(Remove some unused classes) |
||
Line 74: | Line 74: | ||
.infobox-image { |
.infobox-image { |
||
text-align: center; |
text-align: center; |
||
// for inventory icon in infobox item |
|||
&.inventory-image { |
|||
height: 32px; // functions as min-height |
|||
} |
|||
} |
} |
||
Line 99: | Line 94: | ||
padding: 0; |
padding: 0; |
||
} |
} |
||
} |
|||
// (dirty trick) Hide a silly bug in switch infoboxes: |
|||
// switching between versions where there is a Quantity box followed by text will cause the text to be duplicated on switch |
|||
// This currently only occurs where the text consists of "? (edit)" links, so hiding consecutive edit links works to hide this |
|||
// This should ideally be fixed for real though, instead of just hiding it. |
|||
.skill-info a[href$="?action=edit"] + a[href$="?action=edit"] { |
|||
display: none; |
|||
} |
} |
||
Line 112: | Line 99: | ||
margin-top: 0.5em; |
margin-top: 0.5em; |
||
text-align: center; |
text-align: center; |
||
} |
|||
.infobox-bottom-links { |
|||
display: none; |
|||
} |
} |
||
Line 135: | Line 118: | ||
margin: 0 0 1em 0; |
margin: 0 0 1em 0; |
||
} |
} |
||
} |
|||
} |
|||
// [[Template:Multi Infobox]] styles |
|||
.multi-infobox { |
|||
margin-top: 0.5em; |
|||
margin-bottom: 2.5em; |
|||
.tabber { |
|||
margin: 0; |
|||
.tabbernav { |
|||
text-align: center; |
|||
margin-left: 0; |
|||
} |
|||
// extra specific to override base style |
|||
.mw-body & .tabbertab { |
|||
padding: 5px; |
|||
} |
|||
} |
|||
table.infobox { |
|||
margin: 0; |
|||
} |
|||
.infobox-buttons { |
|||
margin-top: 0; |
|||
} |
} |
||
} |
} |
||
Line 173: | Line 128: | ||
} |
} |
||
} |
} |
||
/* |
|||
The following styles were used as a temporary fix for TabberNeue. |
|||
We're currently using old Tabber because TabberNeue breaks if a tab |
|||
dynamically changes size, such as multi-infobox. |
|||
*/ |
|||
/* |
|||
.multi-infobox { |
|||
margin-top: 0.5em; |
|||
margin-bottom: 2.5em; |
|||
.tabber__header { |
|||
text-align: center; |
|||
margin-left: 0; |
|||
justify-content: center; |
|||
} |
|||
.tabber__panel { |
|||
margin: 0; |
|||
padding: 0; |
|||
} |
|||
.tabber__panel.tabber__panel--active { |
|||
width: 100%; |
|||
} |
|||
.infobox-buttons { |
|||
margin-top: 0; |
|||
} |
|||
}*/ |