PluginProbe
Block Animations, Motion & Scroll Effects – Ghost Kit / 3.4.1
Block Animations, Motion & Scroll Effects – Ghost Kit v3.4.1
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 / tabs / styles / editor.scss

editor.scss in Block Animations, Motion & Scroll Effects – Ghost Kit 3.4.1, at gutenberg/blocks/tabs/styles/editor.scss

133 lines 3.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Editor Styles
3 */
4 @import "./variables";
5 @import "./pills";
6 @import "./radio";
7
8 .ghostkit-tabs-buttons {
9 display: flex;
10 flex-wrap: wrap;
11 gap: var(--gkt-tabs--buttons__gap);
12 margin-bottom: var(--gkt-tabs--buttons__offset);
13 border-bottom: var(--gkt-tabs--button__border-width) solid var(--gkt-tabs--button__border-color);
14
15 // Align.
16 &-align-start {
17 justify-content: flex-start;
18 }
19
20 &-align-center {
21 justify-content: center;
22 }
23
24 &-align-end {
25 justify-content: flex-end;
26 }
27
28 &-align-stretch > .ghostkit-tabs-buttons-item {
29 flex-basis: 0;
30 flex-grow: 1;
31 text-align: center;
32 }
33
34 .edit-post-visual-editor,
35 .edit-post-visual-editor p,
36 .editor-rich-text__tinymce.mce-content-body {
37 line-height: inherit;
38 }
39
40 // Item.
41 &-item {
42 position: relative;
43 display: block;
44 padding: var(--gkt-tabs--button__padding-v) var(--gkt-tabs--button__padding-h);
45 margin-bottom: calc(-1 * var(--gkt-tabs--button__border-width));
46 font-weight: var(--gkt-tabs--button__font-weight);
47 color: inherit;
48 text-decoration: none;
49 cursor: pointer;
50 background-color: transparent;
51 border: var(--gkt-tabs--button__border-width) solid transparent;
52 border-top-left-radius: var(--gkt-tabs--button__border-radius);
53 border-top-right-radius: var(--gkt-tabs--button__border-radius);
54 box-shadow: none;
55 opacity: var(--gkt-tabs--button__opacity);
56 transition: var(--gkt-tabs__transition-duration) border-color var(--gkt-tabs__transition-easing), var(--gkt-tabs__transition-duration) background-color var(--gkt-tabs__transition-easing), var(--gkt-tabs__transition-duration) opacity var(--gkt-tabs__transition-easing);
57
58 &:hover,
59 &:focus {
60 opacity: var(--gkt-tabs--button-active__opacity);
61 }
62
63 // apply on first tab only to prevent placeholder color change.
64 &-active {
65 background-color: var(--gkt-tabs--button-active__background-color);
66 border-color: var(--gkt-tabs--button__border-color);
67 border-bottom-color: var(--gkt-tabs--button-active__background-color);
68 opacity: var(--gkt-tabs--button-active__opacity);
69 }
70
71 // show remove button on hover.
72 &:not(:hover) > .ghostkit-component-remove-button {
73 opacity: 0;
74 }
75 }
76
77 // Add new tab button.
78 > .components-button {
79 height: auto;
80 padding: var(--gkt-tabs--button__padding-v) var(--gkt-tabs--button__padding-h);
81 }
82 }
83
84 .ghostkit-tabs-content .ghostkit-tab {
85 display: none;
86 }
87 .ghostkit-tabs-content .ghostkit-tab-active {
88 display: block;
89 }
90
91 // Vertical tabs.
92 @include media-breakpoint-up(md) {
93 .ghostkit-tabs-buttons-vertical {
94 display: flex;
95
96 .ghostkit-tabs-buttons {
97 @include make-col(3, 10);
98
99 flex-direction: column;
100 margin-bottom: 0;
101 border-right: var(--gkt-tabs--button__border-width) solid var(--gkt-tabs--button__border-color);
102 border-bottom: none;
103
104 &-item {
105 display: block;
106 margin-right: calc(-1 * var(--gkt-tabs--button__border-width));
107 margin-bottom: 0;
108 border-top-left-radius: var(--gkt-tabs--button__border-radius);
109 border-top-right-radius: 0;
110 border-bottom-left-radius: var(--gkt-tabs--button__border-radius);
111
112 &:hover,
113 &:focus {
114 opacity: var(--gkt-tabs--button-active__opacity);
115 }
116
117 &-active {
118 background-color: var(--gkt-tabs--button-active__background-color);
119 border-color: var(--gkt-tabs--button__border-color);
120 border-right-color: var(--gkt-tabs--button-active__background-color);
121 opacity: var(--gkt-tabs--button-active__opacity);
122 }
123 }
124 }
125
126 .ghostkit-tabs-content {
127 @include make-col(7, 10);
128
129 padding-left: var(--gkt-tabs--buttons__offset);
130 }
131 }
132 }
133