PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.0.0
GenerateBlocks v2.0.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 / dimensions / editor.scss
generateblocks / src / components / dimensions Last commit date
editor.scss 2 years ago index.js 2 years ago labels.js 2 years ago
editor.scss
122 lines
1 .components-gblocks-dimensions-control {
2 & > .components-base-control__field {
3 display: flex;
4 flex-wrap: wrap;
5 }
6
7 &__inputs {
8 flex-basis: 100%;
9 display: grid;
10 grid-template-areas:
11 "top right "
12 "left bottom";
13 gap: 10px;
14
15 & > div {
16 .components-base-control {
17 margin-bottom: 0;
18
19 &__field {
20 margin-bottom: 0;
21 }
22 }
23
24 &:nth-child(3) {
25 grid-area: left;
26 }
27
28 &:nth-child(4) {
29 grid-area: bottom;
30 }
31 }
32
33 &.style-circle {
34 grid-template-areas:
35 ". top top ."
36 "left left right right"
37 ". bottom bottom .";
38 gap: 5px;
39
40 & > div {
41 position: relative;
42
43 &:nth-child(1) {
44 grid-area: top;
45 display: flex;
46 flex-direction: column-reverse;
47
48 .gblocks-dimensions-control__label {
49 text-align: center;
50 padding-bottom: 5px;
51 }
52 }
53
54 &:nth-child(2) {
55 grid-area: left;
56
57 .gblocks-dimensions-control__label {
58 position: absolute;
59 bottom: calc(100% + 5px);
60 left: 0;
61 }
62 }
63
64 &:nth-child(3) {
65 grid-area: right;
66
67 .gblocks-dimensions-control__label {
68 position: absolute;
69 bottom: calc(100% + 5px);
70 right: 0;
71 }
72 }
73
74 &:nth-child(4) {
75 grid-area: bottom;
76 display: flex;
77 flex-direction: column;
78
79 .gblocks-dimensions-control__label {
80 text-align: center;
81 padding-top: 5px;
82 }
83 }
84 }
85 }
86 }
87 }
88
89 .gblocks-dimensions-control__label {
90 font-size: 10px;
91 opacity: 0.5;
92 line-height: 1;
93 }
94
95 .components-gblocks-dimensions-control_sync {
96 &.components-button {
97 padding: 0;
98 text-align: center;
99 width: 15px;
100 height: 15px;
101 margin-inline-start: 5px;
102
103 svg {
104 width: 18px;
105 height: 18px;
106 fill: currentColor;
107 }
108 }
109 }
110
111 .rtl {
112 .components-gblocks-dimensions-control__inputs.style-circle {
113 & > div:nth-child(2) {
114 grid-area: right;
115 }
116
117 & > div:nth-child(3) {
118 grid-area: left;
119 }
120 }
121 }
122