PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.7.0
Block Animations, Motion & Scroll Effects – Ghost Kit v3.7.0
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 / progress / styles / style.scss

style.scss in Block Animations, Motion & Scroll Effects – Ghost Kit 3.7.0, at gutenberg/blocks/progress/styles/style.scss

70 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Frontend Styles
3 */
4 @import "./variables";
5
6 .ghostkit-progress {
7 // Caption.
8 &-caption {
9 display: block;
10 margin-bottom: var(--gkt-progress--caption__margin-bottom);
11 font-size: var(--gkt-progress--caption__font-size);
12 }
13
14 // Bar count.
15 &-bar-count {
16 position: relative;
17
18 > div {
19 position: absolute;
20 right: 0;
21 bottom: 100%;
22 padding: var(--gkt-progress--count__padding-v) var(--gkt-progress--count__padding-h);
23 margin-bottom: calc(0.2em + var(--gkt-progress--count-arrow__size));
24 font-size: var(--gkt-progress--count__font-size);
25 color: var(--gkt-progress--count__color);
26 white-space: nowrap;
27 background-color: var(--gkt-progress--count__background-color);
28 border-radius: var(--gkt-progress--count__border-radius);
29 transform: translateX(50%);
30
31 &::after {
32 position: absolute;
33 top: 100%;
34 left: 50%;
35 display: block;
36 width: 0;
37 height: 0;
38 margin-left: calc(-1 * var(--gkt-progress--count-arrow__size));
39 content: "";
40 border-top: var(--gkt-progress--count-arrow__size) solid var(--gkt-progress--count__background-color);
41 border-right: var(--gkt-progress--count-arrow__size) solid transparent;
42 border-left: var(--gkt-progress--count-arrow__size) solid transparent;
43 }
44 }
45 }
46
47 // Wrapper.
48 &-wrap {
49 height: var(--gkt-progress__height);
50 overflow: hidden;
51 background-color: var(--gkt-progress__background-color);
52 border-radius: var(--gkt-progress__border-radius);
53 transition: var(--gkt-progress__transition-duration) background-color var(--gkt-progress__transition-easing);
54 }
55
56 // Bar.
57 &-bar {
58 width: var(--gkt-progress--bar__width);
59 height: 100%;
60 background-color: var(--gkt-progress--bar__background-color);
61 transition: var(--gkt-progress__transition-duration) background-color var(--gkt-progress__transition-easing);
62 }
63
64 // Striped.
65 &-bar-striped &-bar {
66 background-image: var(--gkt-progress--bar-striped__background-image);
67 background-size: var(--gkt-progress--bar-striped__background-size);
68 }
69 }
70