PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.9.0
GenerateBlocks v1.9.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / components / unit-control / editor.scss
generateblocks / src / components / unit-control Last commit date
editor.scss 2 years ago index.js 2 years ago unit-dropdown.js 2 years ago unit-list.js 2 years ago
editor.scss
109 lines
1 .gblocks-unit-control {
2 &__disabled {
3 .gblocks-unit-control__input > .components-base-control {
4 opacity: 0.5;
5 }
6 }
7
8 &__override-action {
9 display: flex;
10 align-items: center;
11
12 button.components-button {
13 width: 20px;
14 height: 20px;
15 min-width: 20px;
16 padding: 0;
17 justify-content: center !important;
18
19 &.is-primary:focus:not(.disabled) {
20 box-shadow: 0 0 0;
21 }
22
23 svg {
24 width: 15px;
25 margin: 0 !important;
26 }
27 }
28 }
29
30 &__input {
31 display: flex;
32 align-items: flex-start;
33 position: relative;
34
35 .components-base-control:first-child {
36 flex-grow: 1;
37 }
38
39 .components-base-control,
40 .components-base-control__field {
41 margin-bottom: 0;
42 }
43
44 &--action {
45 position: absolute;
46 right: 5px;
47 top: 0;
48 bottom: 0;
49 display: flex;
50 gap: 3px;
51 }
52
53 .gblocks-unit-control-units {
54 display: flex;
55 justify-content: center;
56 align-items: center;
57
58 button {
59 width: auto;
60 min-width: 20px;
61 height: 20px;
62 font-size: 10px;
63 padding: 0 3px;
64 display: flex;
65 justify-content: center;
66 align-items: center;
67 border: 1px solid rgba(0,0,0,0.1);
68
69 &:disabled {
70 pointer-events: none;
71 }
72
73 &:hover, &.is-opened {
74 border-color: currentColor;
75 }
76
77 &.is-opened {
78 background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));
79 color: var(--wp-components-color-accent-inverted, #fff);
80 }
81 }
82 }
83 }
84 }
85
86 .gblocks-unit-control-popover .components-menu-group > div[role="group"]="group""] {
87 display: grid;
88 grid-template-columns: repeat(4, 1fr);
89
90 button {
91 min-height: auto;
92 display: flex;
93 justify-content: center;
94
95 .components-menu-item__item {
96 min-width: auto;
97 font-size: 11px;
98 margin: 0;
99 }
100 }
101 }
102
103 .rtl {
104 .gblocks-unit-control__input--action {
105 left: 5px;
106 right: auto;
107 }
108 }
109