You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

102 lines
2.0 KiB

@import "normalize";
$poster-width: 300px;
$padding: 20px;
$image-size: $poster-width - $padding * 2;
.preview {
overflow: hidden;
background: #fff;
&.mode-template {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 20px;
box-sizing: border-box;
.preview {
&__main {
padding: 20px;
background: #fff;
box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}
&__image-wrapper {
display: flex;
justify-content: center;
align-items: center;
}
&__image {
width: 100%;
height: auto;
}
&__info {
width: 100%;
margin-top: 10px;
overflow: hidden;
}
&__footer {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 30px;
}
&__title {
}
&__description {
width: 100%;
font-size: 14px;
line-height: 1.5;
color: #aaa;
overflow: hidden;
}
&__circle-image {
$circle-image-size: $poster-width * 0.2;
width: $circle-image-size;
height: $circle-image-size;
border-radius: 100%;
background: #fff;
}
&__footer-info {
border-radius: 100%;
margin: 0 10px;
}
&__app-name {
margin: 0;
margin-bottom: 5px;
}
&__tip {
font-size: 12px;
color: #aaa;
}
&__qr-code {
$size: $poster-width * 0.2;
width: $size;
height: $size;
}
}
}
&.mode-custom {
position: relative;
background-repeat: no-repeat;
background-size: contain;
.background {
position: absolute;
top: 0;
left: 0;
max-width: 100%;
max-height:100%;
&.distribution {
width: 100%;
height: 100%;
}
}
.preview {
&__qr-code {
width: 100%;
height: 100%;
}
}
}
}