User:Ursuul/degrassi.css

/** * @Name:          Degrassi.css * @Description:   Applies aesthetic themes to all Portable Infoboxes * @For Europa?:   No * @Author:         Ursuul  */ /* All Infoboxes */ /** Overall Aesthetics & Positioning */ .portable-infobox { padding: 7px; border: 1px solid #D9D9D9; border-radius: 5px; color: #000000; }

.portable-infobox.pi-background { background-color: #FFFFFF; }/**/

/** Font Positining & Sizes **/ .portable-infobox .pi-secondary-font, .portable-infobox .pi-font { font-size: smaller; }

.portable-infobox .pi-data-value, .portable-infobox .pi-data-label { padding-bottom: 3px; }

.portable-infobox .pi-item-spacing { padding: 0; }

.pi-data-value:not(:first-child) { padding-left: 0; }

.portable-infobox .pi-border-color { border: 0; }/**/

/** Header, Title, & Image Sizes & Positioning **/ .portable-infobox .pi-title { margin-bottom: 3px; padding: 0; font-size: 15.5px; font-weight: bold; text-align: center; line-height: 1.1; }

.portable-infobox .pi-image-thumbnail { margin-bottom: 3px; max-width: 100%; width: auto; height: auto; }

.portable-infobox .pi-header { margin-bottom: 3px; padding: 0; font-size: 13px; font-weight: bold; text-align: center; line-height: 1.3; }/**/

/** Navigation Tags **/ .portable-infobox .pi-navigation { text-align: center; font-size: 10px; }

.portable-infobox .pi-navigation.pi-secondary-background { background-color: transparent; }/**/

/* Theme — Episode */ .portable-infobox.pi-theme-episode .pi-title + .pi-data .pi-data-value:only-child { text-align: center; font-weight: bold; font-style: italic; font-size: 10px; }

.portable-infobox.pi-theme-episode .pi-title { font-size: 14px; line-height: 1.3; }

.portable-infobox.pi-theme-episode .pi-header { margin-bottom: 4px; padding: 0 0 0 5px; font-size: 12px; text-align: left; }

.portable-infobox.pi-theme-episode .pi-data { display: flex; align-items: center; justify-content: center; }

.portable-infobox.pi-theme-episode .pi-data-label { padding: 0 15px 10px 0; }

.portable-infobox.pi-theme-episode .pi-data-value { padding-bottom: 10px; line-height: 1.2; }/**/

/* Themes — Friendship & Relationship */ .portable-infobox.pi-theme-relationship .pi-data-label, .portable-infobox.pi-theme-friendship .pi-data-label { -ms-flex-preferred-size: 60px; -webkit-flex-basis: 60px; -moz-flex-basis: 60px; flex-basis: 60px; }

.portable-infobox.pi-theme-friendship .pi-data-label, .portable-infobox.pi-theme-friendship .pi-data-value { line-height: 1.5; }/**/

/* Theme — Actor */ .portable-infobox.pi-theme-actor { border: 1px solid #AAAAAA; border-radius: 0; }

.portable-infobox.pi-theme-actor section:last-child .pi-data:last-child { display: flex; align-items: center; }/**/

/* Theme — Conflict */ .portable-infobox.pi-theme-conflict .pi-data-value:not(:first-child) { -ms-flex-preferred-size: auto; -webkit-flex-basis: auto; -moz-flex-basis: auto; flex-basis: auto; }

.portable-infobox.pi-theme-conflict .pi-data.pi-item-spacing { padding-top: 1px; }/**/

/* Themes — Season & Class */ .portable-infobox.pi-theme-season .pi-data { display: flex; align-items: center; }

.portable-infobox.pi-theme-season .pi-data-label { -ms-flex-preferred-size: 70px; -webkit-flex-basis: 70px; -moz-flex-basis: 70px; flex-basis: 70px; }

.portable-infobox.pi-theme-season .pi-data.pi-item-spacing { padding-bottom: 5px; padding-top: 0; }

.portable-infobox.pi-theme-season .pi-image-thumbnail, .portable-infobox.pi-theme-class .pi-image-thumbnail { margin-bottom: 0; }

.portable-infobox.pi-theme-class .pi-navigation { font-size: 11px; }

.portable-infobox.pi-theme-class .pi-header { padding: 2px 0 2px 0; }

.portable-infobox.pi-theme-class .pi-title { margin-bottom: 4px; }/**/

/* Theme — Odd Man Out (JHSeason) */ .portable-infobox.pi-theme-oddmanout { border: 1px solid #000000; border-radius: 0; padding: 10px; }

.portable-infobox.pi-theme-oddmanout .pi-secondary-font, .portable-infobox.pi-theme-oddmanout .pi-font { font-size: 10px; }

.portable-infobox.pi-theme-oddmanout .pi-horizontal-group-item.pi-item-spacing, .portable-infobox.pi-theme-oddmanout .pi-item.pi-item-spacing { padding-bottom: 8px; }

.portable-infobox.pi-theme-oddmanout .pi-horizontal-group .pi-horizontal-group-item:not(:first-child) { border-left-width: 0; }

.portable-infobox.pi-theme-oddmanout .pi-data { display: flex; align-items: center; }

.portable-infobox.pi-theme-oddmanout .pi-data-label { -ms-flex-preferred-size: 50px; -webkit-flex-basis: 50px; -moz-flex-basis: 50px; flex-basis: 50px; font-weight: normal; }

.portable-infobox.pi-theme-oddmanout .pi-data-value:not(.pi-horizontal-group-item) { -ms-flex-preferred-size: auto; -webkit-flex-basis: auto; -moz-flex-basis: auto; flex-basis: auto; flex-grow: 2; text-align: right; }

.portable-infobox.pi-theme-oddmanout .pi-navigation { padding-bottom: 5px; font-weight: normal; }/**/