PortableInfobox/styles/PortableInfoboxEuropaTheme.scss

188 lines
3.8 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;
2016-03-09 09:22:40 +00:00
$tabber-lightness-condition: 30;
$tab-font-size: 14px;
$title-font-size: 20px;
$title-line-height: 24px;
2016-03-09 09:22:40 +00:00
$white: #fff;
// color mixes
// 5% color, 5% black/white, 90% background
$background-color: mix(mix($color-buttons, $black, $background-color-mix * 5), $color-page, $background-color-mix);
2016-03-09 09:22:40 +00:00
$horizontal-group-stripe-background: mix($black, $color-page, $background-color-mix * 2);
$tabber-background-color: mix($color-buttons, $color-page, $background-color-mix * 3);
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:47:03 +00:00
$horizontal-group-stripe-background: mix($white, $color-page, $background-color-mix * 2);
2016-03-08 14:26:38 +00:00
}
2016-03-08 14:47:03 +00:00
@if lightness($color-buttons) < $tabber-lightness-condition {
$tabber-background-color: mix($color-buttons, $white, $background-color-mix * 3);
2016-03-08 14:26:38 +00:00
}
.pi-theme-europa {
&.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: inherit;
font-style: normal;
2016-03-08 14:26:38 +00:00
}
.pi-collapse .pi-header::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;
2016-03-15 16:18:37 +00:00
list-style-type: disc;
padding-bottom: $list-item-spacing;
}
li:last-child {
padding-bottom: 0;
}
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-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;
}
2016-03-08 14:26:38 +00:00
}