/**********************/
/* portable infoboxes */
/**********************/
.portable-infobox {
--pi-margin: 1em;
width: 275px;
padding: 0px;
border-width: 1px;
border-style: solid;
border-collapse: separate;
border-spacing: 2px 2px;
border-radius: 0;
margin-bottom: var(--pi-margin, 1em);
margin-left: var(--pi-margin, 1em);
}
/* Override Fandom's over-specific border styles */
.page-content .portable-infobox h2,
.page-content .portable-infobox h3 {
border-width: 1px;
border-style: solid;
}
.portable-infobox .pi-data-label,
.portable-infobox {
box-sizing: content-box;
}
.portable-infobox .pi-background {}
.portable-infobox .pi-title,
.portable-infobox .pi-navigation,
.portable-infobox .pi-header {
border-width: 1px;
border-style: solid;
font-weight: bold;
text-align: center;
}
.portable-infobox .pi-navigation,
.portable-infobox .pi-item {
margin: 2px;
}
.portable-infobox section.pi-item {
margin-bottom: 2px;
}
.portable-infobox .pi-image {
border-width: 1px;
border-style: solid;
padding: 4px;
}
.portable-infobox .pi-item-spacing {
padding: 0 !important;
}
.portable-infobox .pi-data .pi-data-label,
.portable-infobox .pi-horizontal-group-item.pi-data-label {
border-width: 1px;
border-style: solid;
padding: 4px;
color: #ffffff;
text-align:right;
line-height: 1.2em;
width: 95px;
}
.portable-infobox.pi-theme-dao {
border-color: #523F35;
background: #131313;
}
.portable-infobox.pi-theme-dao .pi-background {}
.portable-infobox.pi-theme-dao .pi-title,
.portable-infobox.pi-theme-dao .pi-navigation,
.portable-infobox.pi-theme-dao .pi-header,
.portable-infobox.pi-theme-dao .pi-tab-link.current,
.portable-infobox.pi-theme-dao .pi-data .pi-data-label,
.portable-infobox.pi-theme-dao .pi-horizontal-group-item.pi-data-label {
border-color: #523F35;
background-image: url("https://images.wikia.nocookie.net/dragonage/images/6/65/SplatterBackground.jpg");
color: #ffffff;
}
.portable-infobox.pi-theme-dao .pi-image {
border-color: #523F35;
}
.portable-infobox.pi-theme-dao .pi-data-value:not(:first-child) {
padding: 0 10px 0 8px;
}
.portable-infobox.pi-theme-dao .pi-image-collection-tabs {
margin: -4px 0 0 0;
}
.portable-infobox.pi-theme-dao .pi-image-collection .pi-image {
margin-top: 1px;
}
.portable-infobox.pi-theme-dao .pi-image-collection-tab-content {
background: transparent;
}
.portable-infobox.pi-theme-dao .pi-item-spacing.pi-tab-link {
font-weight: bold;
font-size: 12px;
padding: 0.1em 0.5em !important;/* override previous !important */
}
/**********************/
/* portable infoboxes */
/**********************/
.portable-infobox {
border-width: 1px;
border-style: solid;
border-collapse: separate;
border-spacing: 2px 2px;
padding: 0px;
width: 275px;
margin-bottom: 1em;
margin-left: 1em;
}
.portable-infobox .pi-background {}
.portable-infobox .pi-title,
.portable-infobox .pi-navigation,
.portable-infobox .pi-header {
border-width: 1px;
border-style: solid;
font-weight: bold;
text-align: center;
}
.portable-infobox .pi-item, .portable-infobox .pi-navigation {
margin: 2px;
}
.portable-infobox .pi-image {
border-width: 1px;
border-style: solid;
padding: 4px;
}
.portable-infobox .pi-item-spacing {
padding: 0 !important;
}
.portable-infobox .pi-data .pi-data-label,
.portable-infobox .pi-horizontal-group-item.pi-data-label {
border-width: 1px;
border-style: solid;
padding: 4px;
color: #ffffff;
text-align:right;
line-height: 1.2em;
width: 95px;
}
.portable-infobox.pi-theme-dao {
border-color: #523F35;
background: #131313;
}
.portable-infobox.pi-theme-dao .pi-background {}
.portable-infobox.pi-theme-dao .pi-title,
.portable-infobox.pi-theme-dao .pi-navigation,
.portable-infobox.pi-theme-dao .pi-header,
.portable-infobox.pi-theme-dao .pi-data .pi-data-label,
.portable-infobox.pi-theme-dao .pi-horizontal-group-item.pi-data-label {
border-color: #523F35;
background-image: url("https://images.wikia.nocookie.net/dragonage/images/6/65/SplatterBackground.jpg");
color: #ffffff;
}
.portable-infobox.pi-theme-dao .pi-image {
border-color: #523F35;
}
.portable-infobox .pi-image-thumbnail {
width: 100%;
height: auto;
}
/* Firefox patch */
.portable-infobox .pi-data[data-source="item_id"] .pi-data-value {
word-break: break-all;
}
/* Margin patches */
.portable-infobox {
padding-right: 2px;
padding-left: 2px;
}
.portable-infobox .pi-secondary-background {
background-color: transparent;
}
.portable-infobox .pi-navigation,
.portable-infobox .pi-item {
margin-right: 0;
margin-left: 0;
}
.portable-infobox > .pi-item:not(.pi-group):last-child,
.portable-infobox > .pi-navigation:last-child {
margin-bottom: 1px;
}
.portable-infobox .pi-group .pi-navigation,
.portable-infobox .pi-group .pi-item {
margin-bottom: 0;
}
.portable-infobox.pi-background .pi-data .pi-data-value {
padding-top: 3px;
padding-bottom: 3px;
}
/* kill hyphens */
.portable-infobox .pi-data-label,
.portable-infobox .pi-data-value,
.portable-infobox .pi-caption {
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
/*********/
/* order */
/*********/
/* [[Template:Image]] */
.portable-infobox.type-image.pi-background {
background-color: transparent;
}
.portable-infobox.type-image .pi-image,
.portable-infobox.type-image {
border: none;
}
.portable-infobox.type-image .pi-caption {
font-style: normal;
line-height: 16px;
margin-top: 4px;
}
.portable-infobox.type-image .pi-title {
display: none;
}
/* Infobox card layout */
.card-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start;
}
.card-grid .card-container {
position: relative;
overflow: hidden;
margin: 0 10px 10px;
}
.card-grid .card-container:before {
content: "";
display: block;
position: absolute;
top: 1px;
right: 2px;
left: 2px;
z-index: 5;
height: 26px;
background-color: #181818;
}
.card-grid .portable-infobox.type-card {
max-height: 300px;
overflow-x: hidden;
overflow-y: scroll;
padding-top: 32px;
border-top-width: 2px;
margin: 0;
scrollbar-width: thin;
}
.card-grid .portable-infobox.type-card::-webkit-scrollbar {
width: 7px;
}
.card-grid .portable-infobox.type-card::-webkit-scrollbar-thumb {
height: 50px;
background-color: rgba(0, 0, 0, 0.5);
border: 1px solid rgba(82, 63, 53, 0.5);
border-radius: 5px;
}
.card-grid .portable-infobox.type-card::-webkit-scrollbar-track-piece:start {
background: transparent;
margin-top: 28px;
}
.card-grid .portable-infobox.type-card::-webkit-scrollbar:horizontal {
display: none;
}
.card-grid .portable-infobox.type-card .pi-title[data-source="name"] {
position: absolute;
top: 1px;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
width: calc(100% - 8px);
height: 26px;
}
/* Type: PI'd Navbox */
.portable-infobox.type-nav-infobox {
width: 270px;
box-sizing: border-box;
}
.portable-infobox.type-nav-infobox + .type-nav-infobox {
margin-top: calc(var(--pi-margin, 1em) - var(--pi-margin, 1em) - var(--pi-margin, 1em));
}
.theme-fandomdesktop-dark .portable-infobox.pi-theme-dao.type-nav-infobox {
background-color: #1C1C1C;
}
.portable-infobox.pi-theme-dao.type-nav-infobox .pi-header {
display: flex;
justify-content: center;
align-items: center;
min-height: 30px;
font-size: medium;
padding-bottom: 1px !important;
box-sizing: border-box;
}
.portable-infobox.pi-theme-dao.type-nav-infobox .pi-data .pi-data-value {
flex-grow: 1;
font-size: 14px;
text-align: center;
padding: 1px 0;
}
.portable-infobox.pi-theme-dao.type-nav-infobox .pi-navigation {
font-weight: normal;
line-height: 23px;
}
.portable-infobox.pi-theme-dao.type-nav-infobox .pi-navigation[data-item-name="below"] {
display: flex;
justify-content: center;
align-items: center;
min-height: 28px;
}
.portable-infobox.pi-theme-dao.type-nav-infobox .pi-navigation:not([data-item-name="below"]) {
background-color: #1C1C1C;
background-image: none;
border: 0;
border-bottom: 1px solid #232323;
}
.portable-infobox.pi-theme-dao.type-nav-infobox .pi-navigation:not([data-item-name="below"]):last-child {
border-bottom: 0;
}
.theme-fandomdesktop-light .portable-infobox.pi-theme-dao.type-nav-infobox .pi-navigation:not([data-item-name="below"]) {
background: transparent;
color: inherit;
}
.theme-fandomdesktop-light .portable-infobox.pi-theme-dao.type-nav-infobox .pi-navigation:not([data-item-name="below"]) a {
color: var(--theme-link-color);
text-decoration: none;
}
.theme-fandomdesktop-light .portable-infobox.pi-theme-dao.type-nav-infobox .pi-navigation:not([data-item-name="below"]) a:hover {
text-decoration: underline;
}
/** Type: PI'd Navbox — More Nav Padding (override line 49 !important) **/
.portable-infobox.pi-theme-dao.type-nav-infobox .pi-navigation[data-item-name="spacing"] {
padding: 0.25em 1em 0.5em !important;
}
/* Restore tabs */
.portable-infobox.pi-theme-dao .pi-image-collection .wds-tabs__wrapper .wds-tabs__arrow-left,
.portable-infobox.pi-theme-dao .pi-image-collection .wds-tabs__wrapper .wds-tabs__arrow-right {
display: none;
}
.portable-infobox.pi-theme-dao .pi-image-collection .wds-tabs__wrapper .wds-tabs {
justify-content: center;
flex-wrap: wrap;
-webkit-mask-image: none;
overflow-x: visible;
}
.portable-infobox.pi-theme-dao .pi-image-collection .wds-tabs__wrapper .wds-tabs__tab {
margin: 1px 1px 0;
}
.portable-infobox.pi-theme-dao .pi-image-collection .wds-tabs__wrapper .wds-tabs__tab-label {
all: unset;
display: block;
background-image: url(https://images.wikia.nocookie.net/dragonage/images/6/65/SplatterBackground.jpg);
font-size: small;
color: #FFFFFF;
padding: 2px;
border: 1px solid #523F35;
cursor: pointer;
}
.theme-fandomdesktop-light .portable-infobox.pi-theme-dao .pi-image-collection .wds-tabs__wrapper .wds-tabs__tab-label {
background: var(--theme-sticky-nav-background-color) none;
}
.portable-infobox.pi-theme-dao .pi-image-collection .wds-tabs__wrapper .wds-is-current {
box-shadow: none;
}
.portable-infobox.pi-theme-dao .pi-image-collection .wds-tabs__wrapper .wds-is-current .wds-tabs__tab-label {
background: var(--theme-page-background-color);
color: var(--theme-page-text-color);
border-bottom: 0;
}
.portable-infobox.pi-theme-dao .pi-image-collection .wds-tab__content.wds-is-current .pi-image {
margin-top: 0;
}
/* Allow long infobox titles to wrap */
.portable-infobox.pi-theme-dao .daoinfobox_title {
display: inline-block;
width: calc(100% - 43px);
padding: 0 2px;
box-sizing: border-box;
}