PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.3.3
Block Animations, Motion & Scroll Effects – Ghost Kit v3.3.3
3.7.2 3.7.1 3.7.0 3.6.1 trunk 1.6.3 2.25.0 3.3.0 3.3.1 3.3.2 3.3.3 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.5.0 3.5.1 3.6.0
ghostkit / gutenberg / blocks / image-compare / styles / _labels.scss

_labels.scss in Block Animations, Motion & Scroll Effects – Ghost Kit 3.3.3, at gutenberg/blocks/image-compare/styles/_labels.scss

62 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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