56 lines
964 B
SCSS
56 lines
964 B
SCSS
:host {
|
|
display: block;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.embla {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.embla__container {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
user-select: none;
|
|
-webkit-touch-callout: none;
|
|
-khtml-user-select: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
:host([direction='vertical']) .embla__container {
|
|
flex-direction: column;
|
|
}
|
|
:host([direction='horizontal']) .embla__container {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.embla__viewport {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
|
|
// Center vertically in the viewport.
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
.embla__viewport.is-draggable {
|
|
cursor: move;
|
|
cursor: grab;
|
|
}
|
|
.embla__viewport.is-dragging {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
:host([direction='vertical']) ::slotted(.embla__slide) {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
:host([direction='horizontal']) ::slotted(.embla__slide) {
|
|
margin-right: 5px;
|
|
}
|