| 1 |
.ghostkit-image-compare-image-label { |
| 2 |
position: absolute; |
| 3 |
z-index: 1; |
| 4 |
max-width: var(--gkt-image-compare--label__max-width); |
| 5 |
padding: var(--gkt-image-compare--label__padding); |
| 6 |
font-size: var(--gkt-image-compare--label__font-size); |
| 7 |
color: var(--gkt-image-compare--label__color); |
| 8 |
text-align: var(--gkt-image-compare--label__text-align); |
| 9 |
background-color: var(--gkt-image-compare--label__background-color); |
| 10 |
border-radius: var(--gkt-image-compare--label__border-radius); |
| 11 |
backdrop-filter: var(--gkt-image-compare--label__backdrop-filter); |
| 12 |
} |
| 13 |
|
| 14 |
.ghostkit-image-compare-image-before-label { |
| 15 |
left: var(--gkt-image-compare--label__offset); |
| 16 |
} |
| 17 |
|
| 18 |
.ghostkit-image-compare-image-after-label { |
| 19 |
right: var(--gkt-image-compare--label__offset); |
| 20 |
} |
| 21 |
|
| 22 |
.ghostkit-image-compare-labels-align-start .ghostkit-image-compare-image-label { |
| 23 |
top: var(--gkt-image-compare--label__offset); |
| 24 |
} |
| 25 |
|
| 26 |
.ghostkit-image-compare-labels-align-end .ghostkit-image-compare-image-label { |
| 27 |
bottom: var(--gkt-image-compare--label__offset); |
| 28 |
} |
| 29 |
|
| 30 |
.ghostkit-image-compare-labels-align-center .ghostkit-image-compare-image-label { |
| 31 |
top: 50%; |
| 32 |
transform: translateY(-50%); |
| 33 |
} |
| 34 |
|
| 35 |
// Vertical compare. |
| 36 |
.ghostkit-image-compare-vertical { |
| 37 |
.ghostkit-image-compare-image-before-label { |
| 38 |
top: var(--gkt-image-compare--label__offset); |
| 39 |
bottom: auto; |
| 40 |
left: auto; |
| 41 |
} |
| 42 |
|
| 43 |
.ghostkit-image-compare-image-after-label { |
| 44 |
top: auto; |
| 45 |
right: auto; |
| 46 |
bottom: var(--gkt-image-compare--label__offset); |
| 47 |
} |
| 48 |
|
| 49 |
&.ghostkit-image-compare-labels-align-start .ghostkit-image-compare-image-label { |
| 50 |
left: var(--gkt-image-compare--label__offset); |
| 51 |
} |
| 52 |
|
| 53 |
&.ghostkit-image-compare-labels-align-end .ghostkit-image-compare-image-label { |
| 54 |
right: var(--gkt-image-compare--label__offset); |
| 55 |
} |
| 56 |
|
| 57 |
&.ghostkit-image-compare-labels-align-center .ghostkit-image-compare-image-label { |
| 58 |
left: 50%; |
| 59 |
transform: translateX(-50%); |
| 60 |
} |
| 61 |
} |
| 62 |
|