PortableInfobox/styles/PortableInfoboxEuropaTheme.scss

220 lines
4.2 KiB
SCSS
Raw Normal View History

2016-03-08 14:26:38 +00:00
@import 'skins/shared/color';
@import 'skins/shared/mixins/flexbox';
2016-03-08 14:47:03 +00:00
$background-color-mix: 10%;
2016-03-09 09:22:40 +00:00
$black: #000;
$collapsible-chevron-size: 9px;
$collapsible-chevron-negative-margin: -7px;
$infobox-data-spacing: 10px;
$infobox-header-spacing: 9px;
$infobox-side-spacing: 14px;
$infobox-width: 300px;
2016-03-08 14:47:03 +00:00
$header-font-size: 16px;
$header-line-height: 20px;
2016-03-08 14:26:38 +00:00
$horizontal-group-label-spacing: 6px;
2016-03-08 14:47:03 +00:00
$label-width: 88px;
$list-item-line-height: 18px;
$list-item-spacing: 8px;
$tab-font-size: 14px;
$title-font-size: 20px;
$title-line-height: 24px;
2016-03-09 09:22:40 +00:00
$white: #fff;
// color mixes
2016-03-18 16:08:15 +00:00
// 5% button color, 5% black/white, 90% background
$background-color: mix(mix($color-buttons, $black, $background-color-mix * 5), $color-page, $background-color-mix);
2016-03-18 15:16:24 +00:00
$tabber-background-color: mix($color-buttons, $background-color, $background-color-mix * 4);
2016-03-08 14:26:38 +00:00
@if $is-dark-wiki {
$background-color: mix(mix($color-buttons, $white, $background-color-mix * 5), $color-page, $background-color-mix);
2016-03-08 14:26:38 +00:00
}
$horizontal-group-stripe-background: mix($color-buttons, $background-color, $background-color-mix);
2016-03-08 14:26:38 +00:00
$caption-color-text: mix($color-text, $white, $background-color-mix * 7);
@if $is-dark-wiki {
$caption-color-text: mix($color-text, $black, $background-color-mix * 7);
}
2016-03-29 09:47:22 +00:00
.pi-europa {
2016-03-08 14:26:38 +00:00
&.portable-infobox {
color: $color-text;
width: $infobox-width;
}
&.pi-background {
2016-03-08 14:47:03 +00:00
background-color: $background-color;
2016-03-08 14:26:38 +00:00
}
&.pi-layout-stacked {
.pi-data-label {
padding-bottom: $horizontal-group-label-spacing;
padding-right: 0;
2016-03-08 14:26:38 +00:00
}
}
.pi-caption {
color: $caption-color-text;
font-style: normal;
line-height: $list-item-line-height;
2016-03-08 14:26:38 +00:00
}
.pi-collapse .pi-header::after,
.pi-header.collapsible::after {
border-color: $color-button-text;
height: $collapsible-chevron-size;
right: $infobox-side-spacing;
width: $collapsible-chevron-size;
2016-03-08 14:26:38 +00:00
}
.pi-collapse-closed .pi-header::after {
margin-top: $collapsible-chevron-negative-margin;
2016-03-08 14:26:38 +00:00
}
.pi-data-label {
2016-03-08 14:47:03 +00:00
@include flex-basis($label-width);
color: inherit;
2016-03-09 13:22:07 +00:00
padding-right: $infobox-side-spacing;
2016-03-08 14:26:38 +00:00
}
.pi-data-value {
2016-03-09 13:22:07 +00:00
padding-left: 0;
li {
line-height: $list-item-line-height;
padding-bottom: $list-item-spacing;
&:last-child {
padding-bottom: 0;
}
}
ul {
list-style-type: disc;
}
ol {
margin-left: $infobox-side-spacing;
}
ol, ul {
list-style-position: outside;
margin-left: $infobox-side-spacing;
}
2016-03-08 14:26:38 +00:00
}
.pi-data,
.pi-group {
border-bottom: 0;
2016-03-08 14:26:38 +00:00
}
.pi-header {
font-size: $header-font-size;
2016-03-08 14:26:38 +00:00
}
.pi-header,
.pi-image-collection-tabs {
line-height: $header-line-height;
2016-03-09 11:41:49 +00:00
}
.pi-header,
2016-03-08 14:26:38 +00:00
.pi-tab-link {
padding: $infobox-header-spacing $infobox-side-spacing;
2016-03-08 14:26:38 +00:00
}
.pi-header,
.pi-title {
background-color: $color-buttons;
color: $color-button-text;
text-align: center;
a {
color: $white;
text-decoration: underline;
}
2016-03-08 14:26:38 +00:00
}
.pi-horizontal-group {
text-align: left;
.pi-horizontal-group-item {
2016-03-08 14:47:03 +00:00
border-left: 0;
2016-03-08 14:26:38 +00:00
}
.pi-data-label {
padding: $infobox-data-spacing $infobox-side-spacing $horizontal-group-label-spacing;
2016-03-08 14:26:38 +00:00
}
.pi-data-value {
2016-03-08 14:47:03 +00:00
padding-left: $infobox-side-spacing;
padding-top: 0;
}
}
.pi-horizontal-group-item:nth-child(even) {
background-color: $horizontal-group-stripe-background;
}
.pi-horizontal-group-no-labels .pi-data-value {
padding-top: $infobox-data-spacing;
2016-03-08 14:47:03 +00:00
}
.pi-image-collection-tabs {
background-color: $background-color;
margin: 0;
text-align: left;
.current {
background-color: $tabber-background-color;
2016-03-08 14:26:38 +00:00
}
}
.pi-image-collection-tab-content {
background-color: inherit;
}
.pi-item-spacing {
padding: $infobox-data-spacing $infobox-side-spacing;
&.pi-caption {
padding-bottom: $infobox-side-spacing;
}
}
.pi-navigation {
background-color: inherit;
color: inherit;
font-weight: inherit;
}
.pi-tab-link {
border: 0;
font-size: $tab-font-size;
margin: 0;
}
.pi-title {
font-size: $title-font-size;
font-weight: bold;
line-height: $title-line-height;
padding-top: $infobox-side-spacing;
}
.pi-smart-data {
border-left: 0;
text-align: left;
2017-01-11 13:19:25 +00:00
&.pi-smart-even-in-row {
background-color: $horizontal-group-stripe-background;
}
.pi-data-label {
padding: 0 0 $horizontal-group-label-spacing;
}
.pi-data-value {
padding: 0;
}
}
2016-03-08 14:26:38 +00:00
}