MediaWiki:Gadget-Infobox.css: Difference between revisions
No edit summary |
slight style change so the infobox pops out more |
||
| (13 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
/* Default stuff */ | /* Default stuff */ | ||
.pi-secondary-background { | .pi-title, .pi-secondary-background { | ||
background: var(--pi-secondary-background); | background: var(--pi-secondary-background); | ||
color: var(--pi-secondary-background--label); | color: var(--pi-secondary-background--label); | ||
| Line 6: | Line 6: | ||
/* Custom stuff */ | /* Custom stuff */ | ||
.portable-infobox { | .portable-infobox { | ||
--pi-background: var(--theme-page-background-color); | --pi-background: var(--theme-page-background-color); | ||
| Line 14: | Line 13: | ||
border-radius: 5px; | border-radius: 5px; | ||
border-style: unset; | border-style: unset; | ||
border: | border: 3px solid var(--pi-border); | ||
color: var(--theme-page-text-color); | color: var(--theme-page-text-color); | ||
border-radius: 10px !important; | |||
overflow: hidden; | |||
} | |||
.skin-vector-legacy .portable-infobox { | |||
width: 270px; | width: 270px; | ||
} | |||
.skin-minerva .portable-infobox { | |||
margin-bottom: 1em; | |||
} | } | ||
| Line 26: | Line 34: | ||
.portable-infobox .pi-header[data-item-name=secondary_title] { | .portable-infobox .pi-header[data-item-name=secondary_title] { | ||
padding-top: 0; | padding-top: 0; | ||
} | |||
.skin-minerva .portable-infobox .pi-secondary-background { | |||
text-align: center; | |||
} | } | ||
| Line 82: | Line 94: | ||
} | } | ||
.portable-infobox.type-anima .pi-anima-id { | /* remove/replace automatically set margin for li tabs */ | ||
.portable-infobox ul.pi-section-navigation li.pi-section-tab, | |||
.portable-infobox ul.pi-media-collection-tabs li.pi-tab-link { | |||
margin: 3px; | |||
border-radius: 15px; | |||
min-width: max(20%, 100px); | |||
} | |||
.portable-infobox.pi-type-anima .pi-anima-id { | |||
margin-left: 5px !important; | margin-left: 5px !important; | ||
background-color: #fefaf2 !important; | background-color: #fefaf2 !important; | ||
| Line 91: | Line 111: | ||
} | } | ||
.portable-infobox { | .portable-infobox.pi-type-anima .pi-title { | ||
text-align: left; | |||
} | } | ||
.skin-minerva .portable-infobox.pi-type-anima .pi-title { | |||
.portable-infobox.type-anima .pi-title { | padding-bottom: 9px; | ||
} | } | ||
.portable-infobox.type-anima .pi-title-text { | .portable-infobox.pi-type-anima .pi-title-text { | ||
padding: 2px 0 0 5px; | padding: 2px 0 0 5px; | ||
font-size: 20px; | font-size: 20px; | ||
| Line 110: | Line 128: | ||
padding-top: 10px !important; | padding-top: 10px !important; | ||
text-transform: none; | text-transform: none; | ||
border-bottom: 1px solid var(--theme-border-color); | |||
} | } | ||
| Line 119: | Line 138: | ||
.portable-infobox .pi-horizontal-group { | .portable-infobox .pi-horizontal-group { | ||
border-top: 1px solid var(--pi-border); | border-top: 1px solid var(--pi-border); | ||
} | |||
.portable-infobox ul.pi-section-navigation, | |||
.portable-infobox ul.pi-media-collection-tabs { | |||
padding-left: 0; | |||
padding-inline: 0; | |||
margin: 0; | |||
padding: 2px 0; | |||
background-color: var(--theme-color-7); | |||
border-bottom: 1px solid var(--theme-border-color); | |||
} | |||
.portable-infobox .pi-section-tab:not(.pi-section-active), | |||
.portable-infobox .pi-tab-link:not(.current) { | |||
background-color: color-mix(in srgb, var(--theme-accent-color) 25%); | |||
} | } | ||
| Line 132: | Line 166: | ||
} | } | ||
/* Fix tabs in infobox */ | /* Fix tabs in infobox (delete) */ | ||
.portable-infobox .wds-tabs { | .portable-infobox .wds-tabs { | ||
width: 100%; | width: 100%; | ||
| Line 169: | Line 203: | ||
} | } | ||
/* | /* end wds tabs */ | ||
.type-item .pi-item.pi-image { | |||
.pi-section-navigation .pi-section-tab, .pi-media-collection .pi-tab-link { | |||
max-width: 100%; | |||
} | |||
/* HNA Infobox Styling */ | |||
.pi-type-item .pi-item.pi-image { | |||
position: relative; | position: relative; | ||
z-index: 2; | z-index: 2; | ||
| Line 176: | Line 216: | ||
} | } | ||
.type-item .pi-item.pi-image img { | .pi-type-item .pi-item.pi-image img { | ||
position: relative; | position: relative; | ||
z-index: 2; | z-index: 2; | ||
| Line 182: | Line 222: | ||
} | } | ||
.type-item .pi-item.pi-image:before { | .pi-type-item .pi-item.pi-image:before { | ||
content: ' '; | content: ' '; | ||
display: block; | display: block; | ||
| Line 196: | Line 236: | ||
} | } | ||
/* | /* | ||
.type-item .pi-item.pi-image:after { | .pi-type-item .pi-item.pi-image:after { | ||
content: ' '; | content: ' '; | ||
display: block; | display: block; | ||
| Line 212: | Line 252: | ||
*/ | */ | ||
.pi-theme-1 .pi-item.pi-image:before { | .pi-theme-1 .pi-item.pi-image:before { | ||
background-image: url( | background-image: url("filepath://Item_Frame_1-Star.png"); | ||
} | } | ||
.pi-theme-2 .pi-item.pi-image:before { | .pi-theme-2 .pi-item.pi-image:before { | ||
background-image: url( | background-image: url("filepath://Item_Frame_2-Star.png"); | ||
} | } | ||
.pi-theme-3 .pi-item.pi-image:before { | .pi-theme-3 .pi-item.pi-image:before { | ||
background-image: url( | background-image: url("filepath://Item_Frame_3-Star.png"); | ||
} | } | ||
.pi-theme-4 .pi-item.pi-image:before { | .pi-theme-4 .pi-item.pi-image:before { | ||
background-image: url( | background-image: url("filepath://Item_Frame_4-Star.png"); | ||
} | } | ||
.pi-theme-5 .pi-item.pi-image:before { | .pi-theme-5 .pi-item.pi-image:before { | ||
background-image: url( | background-image: url("filepath://Item_Frame_5-Star.png"); | ||
} | } | ||
/* | /* | ||