MediaWiki:Gadget-Infobox.css: Difference between revisions
ReinDevildom (talk | contribs) Created page with ".portable-infobox { --pi-background: var(--theme-page-background-color); --pi-secondary-background: var(--theme-accent-color); --pi-secondary-background--label: var(--theme-accent-label-color); border-radius: 5px; border-style: unset; border: 1px solid var(--pi-border); color: var(--theme-page-text-color); width: 270px; } .pi-theme-charnav .pi-navigation { font-size: 14px; } →Assume that there is already a title: .portable-infobox .pi-header[data-item-nam..." |
slight style change so the infobox pops out more |
||
| (18 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
/* Default stuff */ | |||
.pi-title, .pi-secondary-background { | |||
background: var(--pi-secondary-background); | |||
color: var(--pi-secondary-background--label); | |||
} | |||
/* Custom stuff */ | |||
.portable-infobox { | .portable-infobox { | ||
--pi-background: var(--theme-page-background-color); | --pi-background: var(--theme-page-background-color); | ||
| Line 6: | 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 18: | 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 74: | 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 83: | 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 107: | 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 116: | 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 129: | Line 166: | ||
} | } | ||
/* Fix tabs in infobox */ | /* Fix tabs in infobox (delete) */ | ||
.portable-infobox .wds-tabs { | .portable-infobox .wds-tabs { | ||
width: 100%; | width: 100%; | ||
| Line 165: | Line 202: | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* end wds tabs */ | |||
.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; | |||
z-index: 2; | |||
opacity: 100; | |||
} | |||
.pi-type-item .pi-item.pi-image img { | |||
position: relative; | |||
z-index: 2; | |||
opacity: 100; | |||
} | |||
.pi-type-item .pi-item.pi-image:before { | |||
content: ' '; | |||
display: block; | |||
position: absolute; | |||
z-index: 0; | |||
left: 0; | |||
top: 0; | |||
width: 100%; | |||
height: 100%; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
/*background-size: cover;*/ | |||
} | |||
/* | |||
.pi-type-item .pi-item.pi-image:after { | |||
content: ' '; | |||
display: block; | |||
position: absolute; | |||
z-index: 1; | |||
left: 0; | |||
top: 0; | |||
width: 100%; | |||
height: 100%; | |||
opacity: 0.1; | |||
background-repeat: no-repeat; | |||
background-position: center; | |||
background-size: cover; | |||
} | |||
*/ | |||
.pi-theme-1 .pi-item.pi-image:before { | |||
background-image: url("filepath://Item_Frame_1-Star.png"); | |||
} | |||
.pi-theme-2 .pi-item.pi-image:before { | |||
background-image: url("filepath://Item_Frame_2-Star.png"); | |||
} | |||
.pi-theme-3 .pi-item.pi-image:before { | |||
background-image: url("filepath://Item_Frame_3-Star.png"); | |||
} | |||
.pi-theme-4 .pi-item.pi-image:before { | |||
background-image: url("filepath://Item_Frame_4-Star.png"); | |||
} | |||
.pi-theme-5 .pi-item.pi-image:before { | |||
background-image: url("filepath://Item_Frame_5-Star.png"); | |||
} | |||
/* | |||
.pi-theme-4 .pi-item.pi-image:after { | |||
background-image: url('SOMETHING-HERE'); | |||
} | |||
*/ | |||