iwmlib/lib/card/test/example/_theme/css/subcard.css

417 lines
8.7 KiB
CSS
Raw Normal View History

/* Color */
/* Font Properties */
/* Spacing */
/* Borders */
/* Shadows */
/*
$context: "../../../../../..";
$white: #FEFEFE;
$shady-white: rgb(240, 240, 240);
$gray: #CCC;
$dark: #333;
$black: #222;
$small-edge-radius: 3px;
$big-edge-radius: 10px;
$small-pad: 16px;
$big-pad: 32px;
$tuebingen-red: #e73230;
$increased-letter-spacing: 0.1em;
$font-color: $black;
$text-font-size: 26px;
$medium-font-size: 28px;
$large-font-size: 32px;
$regular-font-size: 1.451rem;
$subtitle-font-size: $medium-font-size;
$title-font-size: $subtitle-font-size * 1.641;
/* Font Weights */
/*
$strong-font-weight: 700;
$medium-font-weight: 500;
$light-font-weight: 300;
*/
/**
The subcards.scss is responsible for all css of the subcards.
Historically, it was always used for the preview-cards on the info-card
and the article page of the corresponding subcard.
Discuss: Personally I would prefer a strict separation from front page
and article page. But there may be advantages, when the unit 'subcard'
has a stylesheet on it's own.
- SO
Structure:
1. Shared (Preview and Expanded)
2. Preview Subcards
3. Expanded Subcards
*/
.info-card {
/*
1. Shared Properties
*/
/*
2. Preview Properties
*/
/*
3. Article Properties
*/
/*
Colors for the card topics.
*/
/* Remap the colors to the 'bundled' groups. */
}
.info-card .subcard {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
color: #191919;
position: relative;
border-radius: 3px;
}
.info-card .subcard-content {
position: relative;
}
.info-card .titlebar {
min-height: 84px;
background: -webkit-gradient(linear, left bottom, left top, color-stop(-100%, #333333), color-stop(200%, #6f6f6e));
background: linear-gradient(to top, #333333 -100%, #6f6f6e 200%);
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
border-radius: inherit;
}
.info-card .titlebar h2 {
color: #f2f2f2;
font-size: 26px;
text-transform: uppercase;
letter-spacing: 2px;
line-height: 1.3em;
text-align: center;
margin: 0;
padding: 10px;
}
.info-card .subcards-container .subcard-wrapper {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.info-card .subcards-container .subcard {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
z-index: 1;
-webkit-box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.info-card .subcards-container .titlebar {
min-height: 27%;
}
.info-card .subcards-container .subcard-content {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
overflow: hidden;
}
.info-card .subcards-container .wrapper {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
overflow: hidden;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.info-card .subcards-container .wrapper .preview {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
background-color: #f2f2f2;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: 100%;
height: 100%;
}
.info-card .subcards-container .wrapper .preview p {
font-style: italic;
color: #6f6f6e;
font-weight: 500;
text-align: center;
padding: 40px;
}
.info-card .subcards-container .wrapper .preview img {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
}
.info-card .subcards-container .icon {
border-radius: 3px 0 0 0;
}
.info-card .subcards-container .subcard.visited .icon.info:before {
content: "check";
}
.info-card .subcards-container figure {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
border: none;
}
.info-card .mainview > .subcard {
background-color: rgba(25, 25, 25, 0.8);
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.info-card .mainview > .subcard .column.content {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.info-card .mainview > .subcard .column.content.wide {
-webkit-box-flex: 1;
-ms-flex: 1 0 55%;
flex: 1 0 55%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.info-card .mainview > .subcard .column.content.narrow {
-webkit-box-flex: 1;
-ms-flex: 1 0 35%;
flex: 1 0 35%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.info-card .mainview > .subcard article {
background-color: #f2f2f2;
max-height: 100%;
}
.info-card .mainview > .subcard article p {
line-height: 1.4em;
}
.info-card .mainview > .subcard article p:last-child {
margin-bottom: 0;
}
.info-card .mainview > .subcard article p:not(:last-child) {
margin-bottom: 0.5em;
}
.info-card .mainview > .subcard article h2 {
font-size: 36px;
}
.info-card .mainview > .subcard article h2:not(:first-child) {
margin-top: 0.5em;
}
.info-card .mainview > .subcard article .column:not(.zoomable-wrapper) {
margin: 30px;
}
.info-card .mainview > .subcard article a {
margin: -0px -5px -20px -5px;
padding: 0px 5px 10px 5px;
}
.info-card .mainview > .subcard .subcard-content {
overflow: hidden;
background-color: #f2f2f2;
-webkit-box-shadow: 1px 3px 8px rgba(0, 0, 0, 0.5);
box-shadow: 1px 3px 8px rgba(0, 0, 0, 0.5);
}
.info-card .mainview > .subcard .subcard-content.dynamic-height {
overflow: visible;
}
.info-card .mainview > .subcard .subcard-content:not(.dynamic-height) {
height: 100%;
}
.info-card .mainview > .subcard .zoomable-wrapper {
padding: 0;
margin: 0;
padding-top: 30px;
padding-bottom: 60px;
-ms-flex-item-align: center;
-ms-grid-row-align: center;
align-self: center;
-webkit-box-flex: 0;
-ms-flex: 0;
flex: 0;
}
.info-card .mainview > .subcard .imggroup {
padding: 0;
margin: 0;
padding-top: 30px;
padding-bottom: 60px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: space-evenly;
-ms-flex-pack: space-evenly;
justify-content: space-evenly;
}
.info-card > .zoomable-wrapper figcaption,
.info-card .mainview > .subcard figcaption {
width: 100%;
position: absolute;
text-align: center;
}
.info-card > .zoomable-wrapper figcaption.zoomcap,
.info-card .mainview > .subcard figcaption.zoomcap {
font-size: 8px;
display: none;
top: calc(100% + 10px);
padding: 10px;
background-color: #f2f2f2;
-webkit-box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
color: #191919;
z-index: -1;
}
.info-card > .zoomable-wrapper figcaption.cap,
.info-card .mainview > .subcard figcaption.cap {
bottom: -40px;
}
.info-card .subcard.leben_des_kunstwerks .titlebar {
border-bottom: 10px solid #80b1d3;
z-index: 10;
position: relative;
}
.info-card .subcard.licht_und_farbe .titlebar {
border-bottom: 10px solid #80b1d3;
z-index: 10;
position: relative;
}
.info-card .subcard.extra_info .titlebar {
border-bottom: 10px solid #80b1d3;
z-index: 10;
position: relative;
}
.info-card .subcard.artist .titlebar {
border-bottom: 10px solid #fdb462;
z-index: 10;
position: relative;
}
.info-card .subcard.komposition .titlebar {
border-bottom: 10px solid #80b1d3;
z-index: 10;
position: relative;
}
.info-card .subcard.details .titlebar {
border-bottom: 10px solid #bc80bd;
z-index: 10;
position: relative;
}
.info-card .subcard.thema .titlebar {
border-bottom: 10px solid #fb8072;
z-index: 10;
position: relative;
}
.info-card.debug .mainview > .subcard a {
background-color: rgba(102, 51, 153, 0.239);
}
.info-card.debug article {
background-color: rgba(0, 255, 0, 0.5);
}
.info-card.debug .subcard .view-button {
background-color: rgba(0, 255, 0, 0.5) !important;
}