2015-04-27 14:05:31 +00:00
|
|
|
@import 'skins/shared/color';
|
2015-10-26 22:25:17 +00:00
|
|
|
@import 'skins/shared/mixins/chevron';
|
2015-06-10 15:16:46 +00:00
|
|
|
@import 'skins/shared/mixins/flexbox';
|
2015-10-27 23:16:24 +00:00
|
|
|
@import 'skins/shared/mixins/transform';
|
2015-07-28 17:14:02 +00:00
|
|
|
@import 'extensions/wikia/PortableInfobox/styles/PortableInfoboxVariables';
|
2015-06-10 15:16:46 +00:00
|
|
|
|
2015-04-27 14:05:31 +00:00
|
|
|
.portable-infobox {
|
|
|
|
background-color: $infobox-background;
|
|
|
|
clear: right;
|
|
|
|
float: right;
|
|
|
|
margin: 0 0 $infobox-margin $infobox-margin;
|
|
|
|
width: $infobox-width;
|
2015-07-29 15:17:20 +00:00
|
|
|
}
|
2015-04-27 14:05:31 +00:00
|
|
|
|
2015-07-28 17:14:02 +00:00
|
|
|
// ********** Overwrite styles from article ********** //
|
|
|
|
// (placing it within portable-infobox class makes it strong enough) //
|
2015-04-27 14:05:31 +00:00
|
|
|
|
2015-07-29 15:17:20 +00:00
|
|
|
.portable-infobox {
|
2015-10-20 19:52:33 +00:00
|
|
|
|
2015-08-22 17:23:20 +00:00
|
|
|
.pi-item-spacing {
|
|
|
|
padding: $infobox-item-margin $infobox-item-margin * 2;
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-secondary-font {
|
2015-04-27 14:05:31 +00:00
|
|
|
font-size: 12px;
|
2015-07-29 15:17:20 +00:00
|
|
|
font-weight: bold;
|
2015-04-27 14:05:31 +00:00
|
|
|
line-height: 18px;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-header,
|
|
|
|
.pi-title {
|
2015-04-27 14:05:31 +00:00
|
|
|
border: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-title {
|
2015-04-27 14:05:31 +00:00
|
|
|
font-size: 18px;
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-data-label {
|
2015-07-27 14:31:00 +00:00
|
|
|
margin-bottom: inherit;
|
2015-04-27 14:05:31 +00:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2015-07-29 15:49:19 +00:00
|
|
|
// overwrite default article styles for children of data value
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-data-value {
|
2015-07-29 15:49:19 +00:00
|
|
|
> *,
|
|
|
|
li {
|
2015-04-27 14:05:31 +00:00
|
|
|
margin: 0;
|
|
|
|
}
|
2015-07-29 15:49:19 +00:00
|
|
|
|
|
|
|
ol,
|
|
|
|
ul {
|
|
|
|
list-style-position: inside;
|
|
|
|
}
|
|
|
|
|
2015-07-27 14:31:00 +00:00
|
|
|
li {
|
|
|
|
line-height: 19px;
|
|
|
|
}
|
2015-04-27 14:05:31 +00:00
|
|
|
}
|
2015-07-28 17:14:02 +00:00
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-07-29 15:17:20 +00:00
|
|
|
// ********** Common elements styling ********** //
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-07-29 15:17:20 +00:00
|
|
|
.pi-secondary-background {
|
|
|
|
background-color: $infobox-section-header-background;
|
|
|
|
}
|
|
|
|
|
2015-07-31 12:54:10 +00:00
|
|
|
.pi-border-color {
|
|
|
|
border-color: $infobox-section-header-background;
|
|
|
|
}
|
|
|
|
|
2015-07-29 15:17:20 +00:00
|
|
|
// remove border from last infobox item either <data> or <group>
|
|
|
|
.portable-infobox > .pi-item:last-child {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ********** Individual elements styling ********** //
|
|
|
|
|
|
|
|
.pi-image {
|
|
|
|
text-align: center; // center smaller image inside infobox
|
2015-07-28 17:14:02 +00:00
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-caption {
|
2015-07-28 17:14:02 +00:00
|
|
|
color: $color-alternate-text;
|
|
|
|
font-size: 12px;
|
|
|
|
font-style: italic;
|
|
|
|
text-align: left;
|
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-07-29 15:17:20 +00:00
|
|
|
.pi-data:not(:last-of-type),
|
|
|
|
.pi-group {
|
2015-07-31 12:54:10 +00:00
|
|
|
border-bottom-style: solid;
|
|
|
|
border-bottom-width: 1px;
|
2015-07-28 17:14:02 +00:00
|
|
|
}
|
|
|
|
|
2015-09-07 14:58:55 +00:00
|
|
|
.pi-data:last-of-type + .pi-group {
|
|
|
|
border-top-style: solid;
|
|
|
|
border-top-width: 1px;
|
|
|
|
}
|
|
|
|
|
2015-07-29 15:17:20 +00:00
|
|
|
.pi-data {
|
2015-07-28 17:14:02 +00:00
|
|
|
@include flexbox;
|
|
|
|
@include flex-direction(row);
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-data-label {
|
2015-07-28 17:14:02 +00:00
|
|
|
@include flex-basis($infobox-width / 3);
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-data-value {
|
2015-07-28 17:14:02 +00:00
|
|
|
font-size: 12px;
|
|
|
|
line-height: 18px;
|
2015-07-29 15:17:20 +00:00
|
|
|
padding-left: 0;
|
2015-07-28 17:14:02 +00:00
|
|
|
|
|
|
|
&:not(:first-child) {
|
|
|
|
@include flex-basis($infobox-width * 2 / 3);
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-28 09:46:41 +00:00
|
|
|
// ********** Special styles for HORIZONTAL group ********** //
|
2015-07-28 17:14:02 +00:00
|
|
|
|
2015-07-29 15:17:20 +00:00
|
|
|
.pi-horizontal-group {
|
2015-07-28 09:46:41 +00:00
|
|
|
border-spacing: 0;
|
2015-07-28 11:49:17 +00:00
|
|
|
table-layout: fixed;
|
2015-08-06 14:22:38 +00:00
|
|
|
text-align: center;
|
2015-07-28 11:49:17 +00:00
|
|
|
width: 100%;
|
2015-07-28 17:14:02 +00:00
|
|
|
|
2015-07-29 13:32:52 +00:00
|
|
|
.pi-header {
|
2015-07-28 09:46:41 +00:00
|
|
|
text-align: left;
|
2015-07-28 17:14:02 +00:00
|
|
|
}
|
|
|
|
|
2015-07-29 15:17:20 +00:00
|
|
|
.pi-horizontal-group-item {
|
2015-07-28 17:14:02 +00:00
|
|
|
vertical-align: top;
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-07-28 09:46:41 +00:00
|
|
|
&:not(:first-child) {
|
2015-07-31 12:54:10 +00:00
|
|
|
border-left-style: solid;
|
|
|
|
border-left-width: 1px;
|
2015-06-11 17:03:57 +00:00
|
|
|
}
|
2015-07-28 17:14:02 +00:00
|
|
|
}
|
|
|
|
|
2015-07-29 13:32:52 +00:00
|
|
|
.pi-data-label {
|
2015-07-28 09:46:41 +00:00
|
|
|
padding-bottom: 0;
|
2015-06-19 13:03:11 +00:00
|
|
|
}
|
2015-04-27 14:05:31 +00:00
|
|
|
}
|
2015-06-02 11:09:25 +00:00
|
|
|
|
2015-10-28 06:56:50 +00:00
|
|
|
// ********** Overwrite default infobox styles for STACKED layout type ********** //
|
|
|
|
|
|
|
|
.pi-layout-stacked {
|
|
|
|
.pi-data {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pi-data-value {
|
|
|
|
padding-left: $infobox-item-margin * 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-26 17:09:49 +00:00
|
|
|
// ********** Collapsible groups ********** //
|
|
|
|
|
2015-10-26 22:25:17 +00:00
|
|
|
.pi-collapse {
|
|
|
|
.pi-header {
|
|
|
|
@include right-chevron($infobox-chevron-size, 2px, 'up', $color-text);
|
|
|
|
padding-right: $infobox-item-margin * 3 + $infobox-chevron-size;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
display: block;
|
|
|
|
margin-top: -($infobox-chevron-size / 2) + 2;
|
|
|
|
position: absolute;
|
|
|
|
right: $infobox-item-margin * 2;
|
|
|
|
top: 50%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-26 17:09:49 +00:00
|
|
|
.pi-collapse-closed {
|
2015-10-26 22:25:17 +00:00
|
|
|
border-bottom: none;
|
|
|
|
|
|
|
|
.pi-header::after {
|
2015-10-27 23:16:24 +00:00
|
|
|
@include transform-rotate(135deg);
|
2015-10-26 22:25:17 +00:00
|
|
|
margin-top: -($infobox-chevron-size / 2);
|
|
|
|
}
|
|
|
|
|
2015-10-26 17:09:49 +00:00
|
|
|
> *:nth-child(n+2) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pi-horizontal-group {
|
|
|
|
thead,
|
|
|
|
tbody {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-20 16:40:56 +00:00
|
|
|
// ********** Image Collection ********** //
|
|
|
|
|
|
|
|
ul.pi-image-collection-tabs {
|
|
|
|
list-style: none;
|
2015-10-22 17:38:39 +00:00
|
|
|
margin: 0 -1px -1px 0;
|
2015-10-22 17:25:40 +00:00
|
|
|
overflow: hidden;
|
2015-10-22 17:38:39 +00:00
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
2015-10-20 16:40:56 +00:00
|
|
|
|
|
|
|
li {
|
2015-10-22 17:25:40 +00:00
|
|
|
border: 1px solid $infobox-section-header-background;
|
2015-10-20 16:40:56 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
2015-10-22 17:38:39 +00:00
|
|
|
margin: -1px -1px 0 0;
|
2015-10-20 16:40:56 +00:00
|
|
|
max-width: 50%;
|
2015-10-20 19:52:33 +00:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
vertical-align: bottom;
|
|
|
|
white-space: nowrap;
|
2015-10-20 16:40:56 +00:00
|
|
|
|
|
|
|
&.current {
|
|
|
|
background: $infobox-section-header-background;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.pi-image-collection-tab-content {
|
|
|
|
background-color: $infobox-background;
|
|
|
|
display: none;
|
2015-10-22 21:04:37 +00:00
|
|
|
|
|
|
|
.video-thumbnail {
|
|
|
|
display: block;
|
|
|
|
}
|
2015-10-20 16:40:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.pi-image-collection-tab-content.current {
|
|
|
|
display: inherit;
|
|
|
|
}
|
|
|
|
|
2015-07-27 14:31:00 +00:00
|
|
|
// ********** Error handling styles ********** //
|
|
|
|
|
2015-06-10 15:16:46 +00:00
|
|
|
.WikiaArticle {
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-error-info {
|
2015-06-10 15:16:46 +00:00
|
|
|
background-color: $color-error;
|
2015-06-10 15:31:29 +00:00
|
|
|
color: $infobox-debug-error-msg-color;
|
2015-06-10 15:16:46 +00:00
|
|
|
font-size: 18px;
|
|
|
|
line-height: 28px;
|
|
|
|
margin: 0;
|
|
|
|
padding: $infobox-margin * 2 $infobox-debug-line-number-width;
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-debug {
|
2015-06-10 15:16:46 +00:00
|
|
|
background-color: $color-unified-module-background;
|
|
|
|
font-family: monospace;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.error {
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-debug-line {
|
2015-06-10 15:16:46 +00:00
|
|
|
@include flexbox();
|
|
|
|
}
|
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-debug-line-number,
|
|
|
|
.pi-debug-line-code {
|
2015-06-10 15:16:46 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2015-06-02 11:09:25 +00:00
|
|
|
|
2015-07-29 11:07:58 +00:00
|
|
|
.pi-debug-line-number {
|
2015-06-10 15:16:46 +00:00
|
|
|
@include flex-basis($infobox-debug-line-number-width);
|
|
|
|
@include flex-shrink(0);
|
|
|
|
padding-left: $infobox-item-margin * 2;
|
|
|
|
}
|
2015-06-02 11:18:41 +00:00
|
|
|
|
2015-07-31 11:04:59 +00:00
|
|
|
.pi-debug-error-message {
|
2015-06-10 15:31:29 +00:00
|
|
|
background-color: $infobox-debug-error-msg-bg;
|
|
|
|
color: $infobox-debug-error-msg-color;
|
2015-06-10 15:16:46 +00:00
|
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
|
|
margin: 20px 0 10px 25px;
|
|
|
|
padding: $infobox-item-margin * 2 $infobox-item-margin * 3;
|
|
|
|
position: relative;
|
|
|
|
width: 400px;
|
|
|
|
|
|
|
|
&:before {
|
2015-06-10 15:31:29 +00:00
|
|
|
border-bottom: $infobox-margin solid $infobox-debug-error-msg-bg;
|
2015-06-10 15:16:46 +00:00
|
|
|
border-left: $infobox-margin solid transparent;
|
|
|
|
border-right: $infobox-margin solid transparent;
|
2015-06-10 15:31:29 +00:00
|
|
|
content: '';
|
2015-06-10 15:16:46 +00:00
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
left: 25px;
|
|
|
|
position: absolute;
|
|
|
|
top: -$infobox-margin;
|
|
|
|
width: 0;
|
|
|
|
}
|
2015-06-02 11:18:41 +00:00
|
|
|
|
2015-07-31 11:04:59 +00:00
|
|
|
.pi-debug-error-message-item {
|
2015-06-10 15:16:46 +00:00
|
|
|
margin: $infobox-item-margin 0;
|
|
|
|
}
|
2015-06-02 11:18:41 +00:00
|
|
|
}
|