PluginProbe
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More / 2.1.2
Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More v2.1.2
2.4.1 2.4.0 2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.2 2.2.1 2.2.0 2.1.2 2.1.1 trunk 0.0.1 0.0.2 0.0.3 0.0.4 0.0.5 0.0.6 0.0.7 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 All 68 releases
better-payment / src / blocks / payment-form / src / styles / editor.scss

editor.scss in Better Payment – Instant Payments, Donations, Fundraising with Subscriptions & More 2.1.2, at src/blocks/payment-form/src/styles/editor.scss

173 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Editor styles for the Payment Form block.
3 *
4 * These styles are applied only in the block editor.
5 *
6 * @package Better_Payment
7 * @since 1.0.0
8 */
9
10 // Editor-specific variables
11 $editor-placeholder-bg: #f0f0f0;
12 $editor-border-color: #ddd;
13 $editor-text-color: #1e1e1e;
14 $editor-help-color: #757575;
15 $editor-icon-color: #007cba;
16 $editor-border-radius: 4px;
17
18 // Editor container styles
19 .better-payment-block {
20 .bp-radio-box input[type=radio]=radio]:checked {
21 -webkit-appearance: progress-bar;
22 }
23 .bp-radio-box input[type=radio]=radio]:focus {
24 box-shadow: none;
25 }
26 .bp-radio-box input[type=radio]=radio]:checked::before {
27 background-color: transparent !important;
28 }
29 // In the editor, add a visual border to show the block bounds
30 // border: 1px dashed $editor-border-color;
31 border-radius: $editor-border-radius;
32 padding: 20px;
33 background-color: #fff;
34 transition: border-color 0.2s ease;
35
36 &.is-selected {
37 border-color: $editor-icon-color;
38 border-style: solid;
39 }
40
41 // Inner container
42 &__inner {
43 display: flex;
44 flex-direction: column;
45 gap: 16px;
46 }
47
48 // Title styles
49 &__title {
50 margin: 0 0 12px;
51 padding: 0;
52 font-size: 1.5em;
53 font-weight: 600;
54 color: $editor-text-color;
55 line-height: 1.3;
56 }
57
58 // Content container
59 &__content {
60 display: flex;
61 flex-direction: column;
62 gap: 12px;
63 }
64
65 // Placeholder styles
66 &__placeholder {
67 display: flex;
68 align-items: center;
69 gap: 12px;
70 padding: 16px;
71 background-color: $editor-placeholder-bg;
72 border-radius: $editor-border-radius;
73 border: 1px solid $editor-border-color;
74 }
75
76 // Icon styles
77 &__icon {
78 display: flex;
79 align-items: center;
80 justify-content: center;
81 width: 40px;
82 height: 40px;
83 background-color: $editor-icon-color;
84 border-radius: 50%;
85 color: #fff;
86 flex-shrink: 0;
87
88 svg {
89 width: 20px;
90 height: 20px;
91 }
92 }
93
94 // Text styles
95 &__text {
96 margin: 0;
97 font-size: 1.1em;
98 font-weight: 500;
99 color: $editor-text-color;
100 }
101
102 // Description styles
103 &__description {
104 margin: 0;
105 font-size: 0.9em;
106 color: $editor-help-color;
107 line-height: 1.5;
108 }
109
110 // Help text (shown when block is selected)
111 &__help {
112 margin: 0;
113 padding: 12px;
114 font-size: 0.85em;
115 color: $editor-icon-color;
116 background-color: rgba(0, 124, 186, 0.05);
117 border-left: 3px solid $editor-icon-color;
118 border-radius: 0 $editor-border-radius $editor-border-radius 0;
119 }
120 }
121
122 // Inspector panel tab styles
123 .bp-inspector-tabs {
124 margin: 0;
125 padding: 0;
126
127 // Tab list container
128 .components-tab-panel__tabs {
129 display: flex;
130 margin: 0;
131 padding: 0;
132 border-bottom: 1px solid #ddd;
133 background-color: #f0f0f0;
134 }
135
136 // Individual tab buttons
137 .components-tab-panel__tabs-item {
138 flex: 1;
139 padding: 12px 16px;
140 margin: 0;
141 border: none;
142 border-radius: 0;
143 background-color: transparent;
144 font-size: 13px;
145 font-weight: 500;
146 color: #1e1e1e;
147 cursor: pointer;
148 transition: background-color 0.2s ease, color 0.2s ease;
149
150 &:hover {
151 background-color: #e0e0e0;
152 }
153
154 &:focus {
155 box-shadow: none;
156 outline: none;
157 }
158
159 &.is-active {
160 background-color: #fff;
161 color: $editor-icon-color;
162 border-bottom: 2px solid $editor-icon-color;
163 margin-bottom: -1px;
164 }
165 }
166
167 // Tab content area
168 .components-tab-panel__tab-content {
169 padding: 0;
170 }
171 }
172
173