PluginProbe
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News / 4.0.8
Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News v4.0.8
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 2.3.5 2.3.6 2.4.0 2.4.1 2.4.10 2.4.11 2.4.12 2.4.13 2.4.14 2.4.15 2.4.16 2.4.17 2.4.18 2.4.19 2.4.2 2.4.20 2.4.21 All 88 releases
post-carousel / src / components / color / editor.scss

editor.scss in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at src/components/color/editor.scss

201 lines 4.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Color controls. */
2 .sp-smart-post-color-picker {
3 display: flex;
4 justify-content: space-between;
5 align-items: center;
6 height: 24px;
7 .sp-smart-post-component-title {
8 margin-bottom: 0 !important;
9 font-weight: 400;
10 }
11 .sp-smart-post-color-picker-right-area {
12 display: flex;
13 justify-content: center;
14 align-items: center;
15 gap: 10px;
16 }
17 p {
18 margin-bottom: 0;
19 }
20 .components-dropdown,
21 button.components-button {
22 padding: 0;
23 height: 30px;
24 :focus:not(:disabled) {
25 box-shadow: none;
26 outline: none;
27 }
28 span.component-color-indicator {
29 width: 24px;
30 height: 24px;
31 }
32 }
33 &-palette {
34 display: flex;
35 // margin-left: 15px;
36 flex-wrap: wrap;
37 gap: 8px;
38 margin-bottom: 8px;
39 margin-top: 4px;
40 li {
41 border-radius: 100%;
42 height: 28px;
43 width: 28px;
44 margin: 0;
45 button {
46 width: 100%;
47 padding: 0;
48 &:focus:not(:disabled) {
49 box-shadow: none;
50 outline: none;
51 }
52 }
53 }
54 }
55 }
56
57 .sp-smart-post-color-picker-palette li {
58 box-shadow: 0 0 2px #000;
59 &.active {
60 outline-offset: 2px;
61 outline: 2px solid #aaa;
62 }
63 }
64
65 .sp-default-color-pallet.sp-default-theme-color {
66 margin-top: 1.3rem;
67 }
68 .sp-default-color-pallet-header {
69 margin-top: 8px;
70 align-items: center;
71 }
72 .sp-default-smart-color {
73 margin: 0;
74 }
75 .sp-smart-post-color-picker-right-area {
76 .sp-color-picker-btn + span {
77 display: none;
78 }
79 }
80 .sp-smart-post-picker-pallet-wrapper {
81 width: 320px;
82 padding: 16px;
83 position: relative;
84
85 .components-color-picker {
86 width: 100% !important;
87
88 .react-colorful {
89 width: 100% !important;
90
91 .react-colorful__hue,
92 .react-colorful__alpha,
93 .react-colorful__saturation {
94 width: 100% !important;
95 }
96 .react-colorful__saturation {
97 height: 120px !important;
98 }
99
100 .react-colorful__saturation {
101 .react-colorful__interactive {
102 width: calc(100% - 8px);
103 margin-left: calc(4px);
104 }
105 }
106 .react-colorful__alpha {
107 .react-colorful__pointer.react-colorful__alpha-pointer {
108 box-shadow: rgba(0, 0, 0, 0.60) 0px 0px 4px 0px;
109 }
110 }
111 .react-colorful__hue {
112 .react-colorful__pointer.react-colorful__hue-pointer {
113 box-shadow: rgba(0, 0, 0, 0.60) 0px 0px 4px 0px;
114 }
115 }
116 }
117 }
118 .components-color-picker > div:last-child {
119 position: relative;
120
121 .components-input-control__backdrop,
122 .components-select-control__input {
123 border: 1px solid #ddd;
124 }
125 & > .components-flex:first-child {
126 padding-left: 8px;
127 padding-right: 0;
128 }
129 & > .components-flex:last-child:not(:has( .components-flex.components-h-stack )) {
130 padding: 0;
131 margin-top: -32px;
132 margin-left: 74px;
133 width: 175px;
134
135 .components-base-control__field > .components-input-base {
136 height: 32px;
137
138 .components-input-control__container {
139 width: 175px;
140 }
141 }
142 }
143 & > .components-flex:last-child:has( .components-flex.components-h-stack ) {
144 padding: 0;
145 flex-direction: row;
146 width: 184px;
147 margin-top: -32px;
148 margin-left: 69px;
149 column-gap: 4px;
150
151 .components-flex.components-h-stack {
152 flex-direction: row-reverse;
153 width: 42px;
154 .components-base-control {
155 height: 32px;
156 // &.components-range-control {
157 // .components-range-control__track,
158 // .components-range-control__thumb-wrapper span {
159 // background-color: #f05d31;
160 // }
161 // }
162 .components-truncate.components-text {
163 color: var( --sp-smart-primary-2-400 );
164 // position: absolute;
165 // top: 36px;
166 }
167 .components-input-control__prefix {
168 position: absolute;
169 top: 32px;
170 left: 50%;
171 transform: translateX(-50%);
172 .components-input-control-prefix-wrapper {
173 padding-inline-start: 0;
174 }
175 }
176 .components-range-control__thumb-wrapper span::before {
177 background-color: var( --sp-smart-primary-2-400 );
178 }
179 }
180 .components-base-control__field > .components-input-base {
181 height: 32px;
182 }
183 .components-range-control {
184 display: none;
185 }
186 .components-input-control__container input {
187 padding: 0;
188 text-align: center;
189 }
190 }
191 }
192 }
193 }
194
195 .sp-is-pro {
196 .sp-smart-post-color-picker-right-area {
197 opacity: .6;
198 pointer-events: none;
199 }
200 }
201