2015-04-27 14:05:31 +00:00
|
|
|
@import 'skins/shared/color';
|
|
|
|
@import 'skins/shared/mixins/columns';
|
2015-06-10 15:16:46 +00:00
|
|
|
@import 'skins/shared/mixins/flexbox';
|
2015-04-27 14:05:31 +00:00
|
|
|
|
2015-07-02 08:22:37 +00:00
|
|
|
$infobox-width: 270px;
|
|
|
|
// temporary value used to mach with Khal Drogo Infobox
|
2015-04-27 14:05:31 +00:00
|
|
|
$infobox-margin: 15px;
|
|
|
|
$infobox-item-margin: 5px;
|
2015-06-12 13:32:25 +00:00
|
|
|
$infobox-background: mix($color-page, $color-links, 90%);
|
|
|
|
@if ($is-dark-wiki) {
|
|
|
|
$infobox-background: mix($color-page, $color-links, 85%);
|
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-06-12 13:32:25 +00:00
|
|
|
$infobox-section-header-background: mix($color-page, $color-links, 75%);
|
2015-06-10 15:16:46 +00:00
|
|
|
$infobox-debug-line-number-width: 50px;
|
2015-06-10 15:31:29 +00:00
|
|
|
$infobox-debug-error-msg-color: white;
|
|
|
|
$infobox-debug-error-msg-bg: black;
|
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;
|
|
|
|
|
|
|
|
// TODO: experimental wide infobox styles (remove or refactor)
|
|
|
|
&.wide-infobox {
|
|
|
|
@include column-count(3);
|
|
|
|
@include column-gap($infobox-item-margin * 2);
|
|
|
|
|
|
|
|
clear: both;
|
|
|
|
float: none;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.portable-infobox-item:not(.item-type-title) {
|
|
|
|
@include column-break-inside(avoid);
|
|
|
|
}
|
|
|
|
|
|
|
|
.item-type-title {
|
|
|
|
@include column-span(all);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-item-margins {
|
|
|
|
padding: $infobox-item-margin $infobox-item-margin * 4 $infobox-item-margin $infobox-item-margin * 2;
|
|
|
|
}
|
|
|
|
|
2015-05-21 09:58:33 +00:00
|
|
|
.portable-infobox-image-wrapper {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-image-caption {
|
|
|
|
color: $color-alternate-text;
|
|
|
|
font-size: 12px;
|
|
|
|
font-style: italic;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2015-07-02 08:22:37 +00:00
|
|
|
.portable-infobox-secondary-background {
|
2015-04-27 14:05:31 +00:00
|
|
|
background-color: $infobox-section-header-background;
|
|
|
|
}
|
|
|
|
|
2015-07-02 08:22:37 +00:00
|
|
|
.portable-infobox-secondary-font {
|
2015-04-27 14:05:31 +00:00
|
|
|
font-size: 12px;
|
|
|
|
font-weight: bold;
|
|
|
|
line-height: 18px;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-header,
|
|
|
|
.portable-infobox-title {
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-title {
|
|
|
|
font-size: 18px;
|
|
|
|
line-height: 28px;
|
|
|
|
}
|
|
|
|
|
2015-06-19 10:13:30 +00:00
|
|
|
.item-type-key-val:not(:last-of-type),
|
|
|
|
.item-type-group,
|
|
|
|
.item-type-comparison {
|
2015-04-27 14:05:31 +00:00
|
|
|
border-bottom: 1px solid $infobox-section-header-background;
|
|
|
|
}
|
|
|
|
|
2015-06-19 12:37:45 +00:00
|
|
|
> .portable-infobox-item:last-child {
|
2015-06-19 10:13:30 +00:00
|
|
|
border-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2015-04-27 14:05:31 +00:00
|
|
|
.portable-infobox-item-label {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-item-value {
|
2015-06-23 14:12:30 +00:00
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
2015-04-27 14:05:31 +00:00
|
|
|
padding-left: $infobox-item-margin * 2;
|
|
|
|
|
2015-05-04 10:48:57 +00:00
|
|
|
// experiment with removing margins on all children of data value
|
2015-04-27 14:05:31 +00:00
|
|
|
> * {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
list-style-position: inside;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-05-04 14:30:17 +00:00
|
|
|
.portable-infobox-comparison {
|
2015-04-27 14:05:31 +00:00
|
|
|
border-collapse: collapse;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2015-05-04 14:30:17 +00:00
|
|
|
.portable-infobox-comparison-set {
|
2015-04-27 14:05:31 +00:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2015-05-04 14:30:17 +00:00
|
|
|
.portable-infobox-comparison-set-header {
|
2015-04-27 14:05:31 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
display: block;
|
2015-06-19 10:13:30 +00:00
|
|
|
padding: 0;
|
2015-04-27 14:05:31 +00:00
|
|
|
text-align: left;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2015-05-04 14:30:17 +00:00
|
|
|
.portable-infobox-comparison-item {
|
2015-04-27 14:05:31 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
vertical-align: top;
|
|
|
|
width: $infobox-width / 2;
|
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
border-right: 1px solid $infobox-section-header-background;
|
|
|
|
}
|
|
|
|
|
|
|
|
.item-type-key-val {
|
|
|
|
border-bottom: 0;
|
|
|
|
padding-right: $infobox-item-margin * 2;
|
|
|
|
}
|
|
|
|
}
|
2015-06-21 18:01:37 +00:00
|
|
|
|
2015-06-19 13:03:11 +00:00
|
|
|
.group-layout-horizontal {
|
2015-06-11 17:03:57 +00:00
|
|
|
&.item-type-group {
|
2015-06-19 13:03:11 +00:00
|
|
|
display: table;
|
|
|
|
table-layout: fixed;
|
|
|
|
width: 100%;
|
2015-06-11 17:03:57 +00:00
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-06-11 17:03:57 +00:00
|
|
|
.item-type-header {
|
2015-06-19 13:03:11 +00:00
|
|
|
display: table-caption;
|
2015-06-11 17:03:57 +00:00
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-06-11 17:03:57 +00:00
|
|
|
.item-type-key-val {
|
2015-06-19 13:03:11 +00:00
|
|
|
border-bottom: 0;
|
|
|
|
display: table-cell;
|
|
|
|
padding: $infobox-item-margin;
|
|
|
|
text-align: center;
|
2015-06-12 10:56:28 +00:00
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-06-12 10:56:28 +00:00
|
|
|
.item-type-key-val:not(:last-of-type) {
|
2015-06-19 13:03:11 +00:00
|
|
|
border-right: 1px solid $infobox-section-header-background;
|
2015-06-11 17:03:57 +00:00
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-06-11 17:03:57 +00:00
|
|
|
.portable-infobox-item-label {
|
2015-06-19 13:03:11 +00:00
|
|
|
overflow: hidden;
|
|
|
|
vertical-align: top;
|
|
|
|
white-space: nowrap;
|
2015-06-11 17:03:57 +00:00
|
|
|
}
|
2015-06-19 13:03:11 +00:00
|
|
|
|
2015-06-11 17:03:57 +00:00
|
|
|
.portable-infobox-item-value {
|
2015-06-19 13:03:11 +00:00
|
|
|
padding-left: 0;
|
2015-06-19 12:43:40 +00:00
|
|
|
}
|
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-06-10 15:16:46 +00:00
|
|
|
.WikiaArticle {
|
|
|
|
.portable-infobox-error-info {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-debug {
|
|
|
|
background-color: $color-unified-module-background;
|
|
|
|
font-family: monospace;
|
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.error {
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-debug-line {
|
|
|
|
@include flexbox();
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-debug-line-number,
|
|
|
|
.portable-infobox-debug-line-code {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
2015-06-02 11:09:25 +00:00
|
|
|
|
2015-06-10 15:16:46 +00:00
|
|
|
.portable-infobox-debug-line-number {
|
|
|
|
@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-06-10 15:16:46 +00:00
|
|
|
.portable-infobox-debug-error-massage {
|
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-06-10 15:16:46 +00:00
|
|
|
.portable-infobox-debug-error-massage-item {
|
|
|
|
margin: $infobox-item-margin 0;
|
|
|
|
}
|
2015-06-02 11:18:41 +00:00
|
|
|
}
|
2015-06-03 15:12:43 +00:00
|
|
|
|
2015-06-12 10:38:17 +00:00
|
|
|
.portable-infobox-layout-tabular {
|
|
|
|
> .item-type-key-val,
|
2015-06-17 11:51:05 +00:00
|
|
|
.item-type-group:not(.group-layout-horizontal) .item-type-key-val {
|
2015-06-12 10:38:17 +00:00
|
|
|
@include flexbox;
|
|
|
|
@include flex-direction(row);
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
2015-06-03 15:12:43 +00:00
|
|
|
|
2015-06-12 10:38:17 +00:00
|
|
|
.portable-infobox-item-label {
|
|
|
|
@include flex-basis($infobox-width / 3);
|
2015-06-17 13:42:04 +00:00
|
|
|
margin-bottom: inherit;
|
2015-06-09 20:23:51 +00:00
|
|
|
}
|
|
|
|
|
2015-06-12 10:38:17 +00:00
|
|
|
.portable-infobox-item-value {
|
2015-06-21 18:01:37 +00:00
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.portable-infobox-item-value:not(:first-child) {
|
2015-06-21 18:05:19 +00:00
|
|
|
@include flex-basis($infobox-width * 2 / 3);
|
|
|
|
padding-left: 10px;
|
2015-06-03 15:12:43 +00:00
|
|
|
}
|
2015-06-12 10:39:32 +00:00
|
|
|
|
2015-06-18 14:47:38 +00:00
|
|
|
li {
|
|
|
|
line-height: 19px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2015-06-03 15:12:43 +00:00
|
|
|
}
|
2015-06-23 14:12:30 +00:00
|
|
|
|
|
|
|
.portable-infobox-item-value {
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 18px;
|
|
|
|
}
|
2015-04-27 14:05:31 +00:00
|
|
|
}
|
2015-06-12 10:38:17 +00:00
|
|
|
|