MediaWiki:Themes.css

/*Part 1*/ .portable-infobox { border: 1px solid #56c4c5; -moz-border-radius: 20px; -webkit-border-radius: 20px; border-radius: 20px; font-weight: normal !important; color: white !important; width: 270px; } .portable-infobox .pi-item-spacing { padding: 4px 8px; } .portable-infobox .pi-image-collection-tab-content { background: none; } .portable-infobox .pi-title { background-image: -webkit-linear-gradient(left, #56c5ee, #56c4c5, #56c5ee); color: white; font-weight: normal; text-align: center; } .portable-infobox .pi-navigation { background-image: -webkit-linear-gradient(left, #56c5ee, #56c4c5, #56c5ee); border-bottom: 1px solid #56c4c5; color: white; font-weight: normal; text-align: center; } .portable-infobox .pi-header{ background-image: -webkit-linear-gradient(left, #56c5ee, #56c4c5, #56c5ee); border-top: 1px solid #56c4c5; border-bottom: 1px solid #56c4c5; color: white; font-weight: normal; text-align: center; } .portable-infobox .pi-title { font-size: 20px; padding: 10px 0 0 0; } .portable-infobox .pi-header, .portable-infobox .pi-navigation { font-size: 12px; font-weight: normal; line-height: 50px; } .portable-infobox .pi-section-navigation { display: flex; justify-content: center; } .portable-infobox .pi-section-navigation::before, .portable-infobox .pi-section-navigation::after { display: none; } .portable-infobox .pi-section-tab { flex: 1 0 auto; margin: 0; } .portable-infobox .pi-section-tab.pi-section-active { box-shadow: none; } .portable-infobox .pi-section-label { width: 100%; height: auto; padding: 4px 8px; box-sizing: border-box; justify-content: center; background: rgb(0, 0, 0, 0.5); color: #999999; font-size: 12px; line-height: 25px; font-weight: initial; text-transform: initial; margin: 0; } .portable-infobox .pi-section-tab:hover .pi-section-label, .portable-infobox .pi-section-tab.pi-section-active .pi-section-label { background: rgb(0, 0, 0, 0.5); border: none !important; color: white; transition: all 0.5s; } .portable-infobox .pi-image-collection-tabs { display: flex; justify-content: center; margin: 0; } .portable-infobox .pi-image-collection-tabs li { background: #f8f8f8; border: none; box-sizing: border-box; color: #999999; font-size: 12px; line-height: 25px; flex: 1 0 auto; margin: 0; } .portable-infobox .pi-image-collection-tabs li.current, .portable-infobox .pi-image-collection-tabs li:hover { background: rgba(243, 196, 60, 0.25); color: black; font-weight: normal; transition: all 0.5s; } .portable-infobox .pi-image-thumbnail { height: auto; width: 100%; border-bottom: 1px solid #56c4c5; } .portable-infobox .pi-data-label { color: inherit; } .portable-infobox .pi-data, .portable-infobox .pi-group { border: none; } .portable-infobox .pi-caption { order: 1; text-align: center; } .portable-infobox.pi-theme-episode .pi-title { padding: 20px; border-bottom: 1px solid #56c4c5; } .portable-infobox.pi-theme-group { width: 320px; } .portable-infobox.pi-theme-author .pi-image-thumbnail { border: none; } /*Part 2*/ .portable-infobox .pi-title, .portable-infobox .pi-header { display: flex; justify-content: center ; } /* centers portable infobox title and image caption */ .portable-infobox .pi-title, .portable-infobox .pi-caption { text-align: center; } /* enlarges images to fit infobox */ .portable-infobox .pi-image-thumbnail { width: 100%; height: auto; } .portable-infobox { color: var(--text-color); float: right; clear: right; border-radius: 12px 12px 0 0; border: solid var(--a-bg-color) 1px; overflow: hidden; -moz-box-shadow: 0 0 8px #56c4c5; -webkit-box-shadow: 0 0 8px #56c5ee; box-shadow:0 0 7px #56c4c5; margin:0 5px 10px 20px; } .theme-fandomdesktop-dark .portable-infobox { background-color: rgba(45,43,46,0.4); } .theme-fandomdesktop-light .portable-infobox { background-color: rgba(45,43,46,0.4); } .pi-data-value li { line-height: 15px; padding-bottom: 3px; } .pi-title { border-radius: 5px 5px 1px 1px; font-size: 20px !important; background-color: var(--a-bg-color); color: #fff; } .pi-header { font-size: 16px !important; background-color: var(--a-bg-color); color: #fff; } .portable-infobox .pi-data-label { flex-basis: 100px; text-shadow: none; } .portable-infobox .pi-item-spacing { padding: 5px 10px; } .portable-infobox .pi-header { padding: 5px 5px; text-align: center; color: #fff; text-shadow: 0 0 5px #56c4c5, 0 0 5px #56c4c5, 0 0 5px #56c4c5; } .portable-infobox:first-of-type .pi-image-thumbnail { height: auto; width: 100%; } .portable-infobox .pi-caption { font-size: 10px; } .pi-theme-character .pi-item-spacing { border-bottom: 1px solid #4d2167; } /* Center tabs in infoboxes https://community.fandom.com/f/p/4400000000003176261*/ .portable-infobox .wds-tabs__tab:first-child { margin-left: auto; } .portable-infobox .wds-tabs__tab:last-child { margin-right: auto; } /*Part 3*/ /* Prettier alignment of infoboxes on Project:Staff and Help:Global Discussions moderators */ .profilecards { display: flex; flex-flow: row wrap; justify-content: center; align-content: space-between; } .profilecards .portable-infobox { display:flex; flex-direction:column; max-width:270px; } .profilecards .portable-infobox [data-item-name="biography"], .profilecards .portable-infobox [data-source="description"] { height:100%; } .profilecards .portable-infobox h2, .profilecards .portable-infobox .pi-data{ overflow:visible; } .pi-theme-VolunteerCard [data-source="extimage"] { justify-content: center; } .pi-theme-VolunteerCard [data-source="extimage"] img { height:100px; width:auto; } .profilecards-test .portable-infobox.pi-theme-VolunteerCard { display: grid; grid-template: "a" 105px "b" auto "c" 80px / auto; position: relative; } .profilecards-test.cca .portable-infobox.pi-theme-VolunteerCard, .profilecards-test.ivt .portable-infobox.pi-theme-VolunteerCard { grid-template: "a" 105px "b" auto "c" 40px / auto; } .profilecards-test .portable-infobox.pi-theme-VolunteerCard .pi-data-label~.pi-data-value { padding-left: 0px; } .profilecards-test .pi-theme-VolunteerCard .pi-data-label { white-space:nowrap; } .profilecards-test .portable-infobox.pi-theme-VolunteerCard .pi-data[data-source="extimage"] { position: absolute; left: -9px; top: -9px; } .profilecards-test .portable-infobox.pi-theme-VolunteerCard .pi-data[data-source="extimage"] img { border-radius: 50%; max-width: 100px; max-height: 100px; } .profilecards-test .portable-infobox.pi-theme-VolunteerCard .pi-title[data-source="name"] { margin: 30px 0; padding-left: 100px; font-size: 14.5px; }