spee.ch/client/scss/_asset-display.scss

135 lines
2.2 KiB
SCSS
Raw Normal View History

2018-11-10 20:59:53 +01:00
.asset-main {
display: flex;
flex-direction: column;
align-items: center;
}
2019-01-26 01:37:07 +01:00
.asset-document {
max-width: 1000px;
2019-01-26 01:37:07 +01:00
padding: $thin-padding;
height: fit-content;
2019-02-04 06:50:31 +01:00
box-sizing: border-box;
2019-01-26 01:37:07 +01:00
}
2018-06-09 02:23:11 +02:00
.asset-display {
2019-01-26 01:37:07 +01:00
height: fit-content;
width: fit-content;
2018-06-09 02:23:11 +02:00
}
.asset-title {
max-width: 1000px;
2018-11-10 20:59:53 +01:00
padding-bottom: $thin-padding;
text-align: center;
}
2018-06-09 02:23:11 +02:00
.asset-image, .asset-video {
max-height: 75vh;
max-width: 85vw;
object-fit: contain;
object-position: center;
background: black;
2018-06-09 02:23:11 +02:00
}
2018-10-25 21:23:05 +02:00
2018-11-09 01:44:59 +01:00
/*below must die if this is intended to be shareable component! it also probably doesn't need to be*/
2018-10-11 21:51:34 +02:00
.visible-content {
margin: 0;
2018-10-22 00:13:37 +02:00
padding-bottom: 30px;
2018-10-23 23:01:28 +02:00
position: relative;
2018-10-25 21:23:05 +02:00
width: 100%;
2018-10-25 20:57:54 +02:00
&.closed {
box-shadow: none;
2018-10-25 20:57:54 +02:00
2018-10-23 23:01:28 +02:00
&:after {
box-shadow: none;
}
}
2018-10-25 20:57:54 +02:00
2018-10-23 23:01:28 +02:00
&:after {
2018-10-25 21:23:05 +02:00
box-shadow: 0px 2px 3px 2px $shadow-color;
2018-10-23 23:01:28 +02:00
content: '';
height: 0;
position: absolute;
2018-10-25 21:23:05 +02:00
top: 100%;
width: 100%;
2018-10-23 23:01:28 +02:00
z-index: 100;
}
2018-10-11 21:51:34 +02:00
}
2018-11-10 20:59:53 +01:00
2018-11-09 19:55:53 +01:00
.vertical-split, .visible-content {
flex : 1 0 auto;
display : flex;
flex-direction : column;
justify-content: space-between;
align-items : center;
};
.collapse-content {
flex-grow: 0;
@media (max-width: $break-point-tablet) {
max-width: 100%;
width: 100%;
}
}
.collapse-content.closed{
display: none;
}
.collapse-button {
background: none;
border: none;
display: block;
margin: 15px auto 0;
width: 25px;
height: 25px;
text-align: center;
padding: 0px;
@media (max-width: $break-point-tablet) {
padding: 0;
}
svg {
stroke: $primary-color;
&.plus-icon {
transform: rotate(0);
transition: all 0.4s ease;
}
}
&:hover {
.plus-icon {
transform: rotate(-180deg);
}
}
}
2018-11-09 01:44:59 +01:00
.asset-info {
$asset-info-width: 1000px;
max-width: $asset-info-width;
2018-11-10 20:59:53 +01:00
margin: $primary-padding;
2019-01-26 01:37:07 +01:00
width: 100%;
2018-10-22 22:26:19 +02:00
@media (min-width: $break-point-tablet) {
padding: $primary-padding;
}
2018-11-09 01:44:59 +01:00
@media (max-width: $break-point-tablet) {
padding: $tertiary-padding;
}
2018-11-10 20:59:53 +01:00
@media (max-width: $break-point-mobile) {
margin: $tertiary-padding;
}
}
.asset-footer {
2019-01-26 01:37:07 +01:00
border-top: $subtle-border;
2018-11-10 20:59:53 +01:00
padding-top: $primary-padding;
margin-top: $primary-padding;
2018-11-09 01:44:59 +01:00
color: $grey;
text-align: center;
2018-11-10 20:59:53 +01:00
}