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 / button / styles / style.scss

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

108 lines 2.9 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-button-wrapper-inner {
7 display: flex;
8 flex-wrap: wrap;
9 row-gap: var(--gkt-button__gap-vertical);
10 column-gap: var(--gkt-button__gap);
11 align-items: var(--gkt-button__align-items);
12 justify-content: var(--gkt-button__justify-content);
13
14 // why we need this https://wordpress.org/support/topic/buttons-alignment-issues/
15 clear: both;
16 }
17
18 .ghostkit-button {
19 display: inline-flex;
20 align-items: center;
21 justify-content: center;
22 padding: var(--gkt-button__padding-v) var(--gkt-button__padding-h);
23 margin: 0;
24 font-size: var(--gkt-button__font-size);
25 line-height: var(--gkt-button__line-height);
26 color: var(--gkt-button__color);
27 text-align: center;
28 text-decoration: none !important;
29 white-space: nowrap;
30 cursor: pointer;
31 background-color: var(--gkt-button__background-color);
32 border: var(--gkt-button__border-width) solid var(--gkt-button__border-color);
33 border-radius: var(--gkt-button__border-radius);
34 outline: var(--gkt-button__outline);
35 box-shadow: var(--gkt-button__box-shadow);
36 transition: var(--gkt-button__transition-duration) background-color var(--gkt-button__transition-easing), var(--gkt-button__transition-duration) color var(--gkt-button__transition-easing), var(--gkt-button__transition-duration) border-color var(--gkt-button__transition-easing), var(--gkt-button__transition-duration) opacity var(--gkt-button__transition-easing), var(--gkt-button__transition-duration) box-shadow var(--gkt-button__transition-easing);
37
38 &:hover {
39 color: var(--gkt-button-hover__color);
40 background-color: var(--gkt-button-hover__background-color);
41 border: var(--gkt-button-hover__border-width) solid var(--gkt-button-hover__border-color);
42 box-shadow: var(--gkt-button-hover__box-shadow);
43 }
44
45 &:focus,
46 &:active {
47 color: var(--gkt-button-focus__color);
48 background-color: var(--gkt-button-focus__background-color);
49 border: var(--gkt-button-focus__border-width) solid var(--gkt-button-focus__border-color);
50 box-shadow: var(--gkt-button-focus__box-shadow);
51 }
52
53 // Icon.
54 &-icon-left {
55 margin-right: var(--gkt-button--icon__offset);
56 }
57
58 &-icon-right {
59 order: 2;
60 margin-left: var(--gkt-button--icon__offset);
61 }
62
63 &-icon-only {
64 padding: var(--gkt-button-icon-only__padding-v) var(--gkt-button-icon-only__padding-h);
65
66 .ghostkit-button-icon {
67 margin: 0;
68 }
69 }
70
71 // Sizes.
72 &-xs {
73 font-size: var(--gkt-button-xs__font-size);
74 }
75
76 &-sm {
77 font-size: var(--gkt-button-sm__font-size);
78 }
79
80 &-lg {
81 font-size: var(--gkt-button-lg__font-size);
82 }
83
84 &-xl {
85 font-size: var(--gkt-button-xl__font-size);
86 }
87
88 // Align.
89 &-wrapper-align-left {
90 --gkt-button__justify-content: flex-start;
91 }
92
93 &-wrapper-align-right {
94 --gkt-button__justify-content: flex-end;
95 }
96
97 &-wrapper-align-center {
98 --gkt-button__justify-content: center;
99 }
100
101 // Gaps.
102 @each $name, $size in $grid-gaps {
103 &-wrapper-gap-#{$name} {
104 --gkt-button__gap: #{$size};
105 }
106 }
107 }
108