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

182 lines
3.1 KiB
SCSS
Raw Normal View History

2018-06-09 02:23:11 +02:00
.asset-display {
display: flex;
2018-07-20 18:58:18 +02:00
flex: 1 0 auto;
flex-direction: column;
2018-07-20 18:58:18 +02:00
justify-content: center;
2018-10-21 21:52:10 +02:00
background: #F6F6F6;
2018-10-11 21:51:34 +02:00
width: 100%;
position: relative;
2018-10-11 21:51:34 +02:00
&:after {
content: '';
position: absolute;
2018-10-25 20:59:08 +02:00
box-shadow: inset 0 1px 2px 2px $shadow-color;
2018-10-11 21:51:34 +02:00
width: 100%;
height: 1px;
background: transparent;
left: 0;
top: auto;
bottom: 0;
}
2018-06-09 02:23:11 +02:00
}
.asset-title {
margin-top: 40px;
font-weight: normal;
font-size: 26px;
color: #2E2F31;
letter-spacing: 0;
text-align: center;
line-height: 32px;
@media (max-width: $break-point-tablet) {
padding: 0 20px;
}
}
2018-06-09 02:23:11 +02:00
.asset-image, .asset-video {
margin: 60px auto;
max-width: 60vh;
2018-06-09 02:23:11 +02:00
max-height: 100%;
object-fit: contain;
object-position: center;
2018-10-25 20:57:54 +02:00
2018-10-22 22:26:19 +02:00
@media (max-width: $break-point-small) {
max-width: calc(100% - 30px);
}
2018-06-09 02:23:11 +02:00
}
.asset-video {
2018-07-20 18:58:18 +02:00
border: 1px solid #d0d0d0;
margin: 16px;
padding: 6px;
}
2018-10-11 21:51:34 +02:00
.visible-content {
width: 100%;
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 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
&:before{
content: '';
width: 100%;
height: 100px;
position: absolute;
z-index: 100;
2018-10-25 20:59:08 +02:00
box-shadow: inset 2px 3px 3px 2px $shadow-color;
2018-10-23 23:01:28 +02:00
}
2018-10-25 20:57:54 +02:00
2018-10-23 23:01:28 +02:00
&:after {
content: '';
width: 100%;
height: 0;
top: 100%;
position: absolute;
z-index: 100;
2018-10-25 20:59:08 +02:00
box-shadow: 0px 2px 3px 2px $shadow-color;
2018-10-23 23:01:28 +02:00
}
2018-10-11 21:51:34 +02:00
}
.asset-information-wrap {
max-width: 800px;
2018-10-25 20:57:54 +02:00
2018-10-22 22:26:19 +02:00
@media (max-width: $break-point-tablet) {
max-width: 100%;
margin: 0px auto;
width: calc(100% - 80px);
}
@media (max-width: $break-point-phone) {
width: calc(100% - 30px);
}
.horizontal-split {
justify-content: center;
2018-10-25 20:57:54 +02:00
.column {
padding-top: 40px;
2018-10-25 20:57:54 +02:00
&:first-child {
padding-right: 40px;
margin-right: -1px;
border-right: 1px solid $grey-alt;
2018-10-25 20:57:54 +02:00
2018-10-22 22:26:19 +02:00
@media (max-width: $break-point-tablet) {
2018-10-22 21:51:27 +02:00
order: 2;
border: none;
padding: 0;
margin: 0;
}
}
2018-10-25 20:57:54 +02:00
&:last-child {
padding-left: 60px;
border-left: 1px solid $grey-alt;
2018-10-25 20:57:54 +02:00
2018-10-22 22:26:19 +02:00
@media (max-width: $break-point-tablet) {
2018-10-22 21:51:27 +02:00
border: none;
padding: 40px 0 0 0;
margin: 0;
}
}
}
}
p.asset-description {
white-space: pre-line;
font-size: 14px;
color: #2E2F31;
letter-spacing: 0;
line-height: 18px;
2018-10-11 22:36:16 +02:00
width: 360px;
padding-bottom: 80px;
2018-10-25 20:57:54 +02:00
2018-10-22 22:26:19 +02:00
@media (max-width: $break-point-tablet) {
2018-10-22 23:25:55 +02:00
padding: 0;
2018-10-22 21:51:27 +02:00
width: 100%;
max-width: 600px;
2018-10-22 23:25:55 +02:00
margin: 22px 0 60px;
}
}
2018-10-25 20:59:08 +02:00
.asset-information {
width: 320px;
2018-10-25 20:57:54 +02:00
2018-10-22 22:26:19 +02:00
@media (max-width: $break-point-tablet) {
min-width: 100%;
2018-10-22 21:51:27 +02:00
width: 100%;
2018-10-22 23:25:55 +02:00
padding-bottom: 30px;
border-bottom: 1px solid $grey-alt;
2018-10-22 21:51:27 +02:00
}
}
}
.asset-footer {
padding-top: 30px;
border-top: 1px solid $grey-alt;
padding-bottom: 80px;
2018-10-25 20:57:54 +02:00
2018-10-22 22:26:19 +02:00
@media (max-width: $break-point-tablet) {
padding-top: 22px;
padding-bottom: 0;
}
2018-10-23 23:26:49 +02:00
.claim-address {
2018-10-25 20:57:54 +02:00
2018-10-23 23:26:49 +02:00
.link--brand {
font-size: 14px;
2018-10-23 23:26:49 +02:00
font-weight: 300;
line-height: 18px;
}
}
}