2020-04-09 23:09:59 +02:00
|
|
|
@import "mixin";
|
2019-08-21 10:00:01 +02:00
|
|
|
|
2019-08-30 23:06:39 +02:00
|
|
|
.hostbanner {
|
2019-08-21 10:00:01 +02:00
|
|
|
.container-hostbanner {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
height: 1000px; /* allocate some height to be truncated by the flex :) */
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: stretch;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:not(.no-background) {
|
|
|
|
background-color: #2e2e2e;
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
border-top-right-radius: 5px;
|
2019-12-21 19:29:34 +01:00
|
|
|
-moz-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25);
|
|
|
|
-webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25);
|
|
|
|
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25);
|
2019-08-21 10:00:01 +02:00
|
|
|
padding-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
|
|
|
padding-bottom: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@include transition(height 0.5s ease-in-out);
|
|
|
|
|
|
|
|
.hostbanner-image-container {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
2020-05-18 17:23:48 +02:00
|
|
|
min-height: 0;
|
2019-08-21 10:00:01 +02:00
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&.hostbanner-mode-0 {
|
|
|
|
/* do not adjust */
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hostbanner-mode-1 {
|
|
|
|
/* do adjust and ignore ration */
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
> img {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.hostbanner-mode-2 {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
|
|
> img {
|
|
|
|
object-fit: contain;
|
|
|
|
max-height: 100%;
|
|
|
|
|
|
|
|
/* "Normal" third more */
|
|
|
|
//max-width: 100%;
|
|
|
|
|
|
|
|
/* better adoptable mode */
|
|
|
|
width: min-content;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|