2021-01-05 14:46:09 +01:00
|
|
|
@import "../../../css/static/properties";
|
|
|
|
@import "../../../css/static/mixin";
|
|
|
|
|
|
|
|
.container {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: stretch;
|
|
|
|
|
2021-01-05 18:13:57 +01:00
|
|
|
flex-shrink: 0;
|
2021-03-30 11:20:27 +02:00
|
|
|
user-select: none;
|
2021-01-05 18:13:57 +01:00
|
|
|
|
2021-01-05 14:46:09 +01:00
|
|
|
.withBackground {
|
|
|
|
background-color: var(--hostbanner-background);
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
-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);
|
|
|
|
padding-bottom: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.containerImage {
|
|
|
|
height: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
min-height: 0;
|
|
|
|
|
|
|
|
text-align: center;
|
2021-04-24 11:32:56 +02:00
|
|
|
|
|
|
|
&.clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2021-01-05 14:46:09 +01:00
|
|
|
|
|
|
|
/* We're disabling the transition since it only works on appearing not on disappearing */
|
|
|
|
/* @include transition(height 0.5s ease-in-out); */
|
|
|
|
|
|
|
|
&.state-error {
|
|
|
|
> img {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.state-loaded {
|
|
|
|
height: 9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mode-original {
|
|
|
|
/* do not adjust */
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mode-resize {
|
|
|
|
display: flex;
|
2021-04-25 11:35:16 +02:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-around;
|
2021-01-05 14:46:09 +01:00
|
|
|
|
|
|
|
> img {
|
2021-04-24 11:32:56 +02:00
|
|
|
object-fit: contain;
|
|
|
|
max-height: 100%;
|
|
|
|
|
2021-04-25 11:35:16 +02:00
|
|
|
/* "Normal" third more */
|
|
|
|
//max-width: 100%;
|
|
|
|
|
|
|
|
/* better adoptable mode */
|
|
|
|
width: min-content;
|
2021-01-05 14:46:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mode-resize-ratio {
|
|
|
|
display: flex;
|
2021-04-25 11:35:16 +02:00
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2021-01-05 14:46:09 +01:00
|
|
|
|
|
|
|
> img {
|
|
|
|
object-fit: contain;
|
|
|
|
|
2021-04-25 11:35:16 +02:00
|
|
|
max-height: 100%;
|
|
|
|
max-width: 100%;
|
2021-01-05 14:46:09 +01:00
|
|
|
|
2021-04-25 11:35:16 +02:00
|
|
|
min-width: 100%;
|
|
|
|
min-height: 100%;
|
2021-01-05 14:46:09 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|