PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.11
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.11
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / pricing-switcher / style.css

style.css in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.11, at blocks/pricing-switcher/style.css

158 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* Pricing Switcher — bkpsw- */
2 .bkpsw-wrap {
3 display: flex;
4 justify-content: center;
5 padding: 20px 0;
6 width: 100%;
7 }
8 .bkpsw-switch {
9 display: inline-flex;
10 align-items: center;
11 padding: 4px;
12 gap: 4px;
13 background: var(--bkpsw-bg, #f3f3f7);
14 border-radius: var(--bkpsw-radius, 40px);
15 }
16 .bkpsw-btn {
17 padding: 8px 24px;
18 border-radius: calc( var(--bkpsw-radius, 40px) - 4px );
19 background: transparent;
20 color: var(--bkpsw-inactive-text, #555);
21 border: none;
22 cursor: pointer;
23 font-family: var(--bkpsw-lb-font-family, inherit);
24 font-size: var(--bkpsw-lb-font-size-d, 14px);
25 font-weight: var(--bkpsw-lb-font-weight, 600);
26 font-style: var(--bkpsw-lb-font-style, normal);
27 text-decoration: var(--bkpsw-lb-text-decoration, none);
28 text-transform: var(--bkpsw-lb-text-transform, none);
29 line-height: var(--bkpsw-lb-line-height-d, 1.4);
30 letter-spacing: var(--bkpsw-lb-letter-spacing-d, normal);
31 word-spacing: var(--bkpsw-lb-word-spacing-d, normal);
32 transition: background 0.25s, color 0.25s;
33 }
34 .bkpsw-btn.bkpsw-active {
35 background: var(--bkpsw-accent, #6c3fb5);
36 color: var(--bkpsw-active-text, #fff);
37 }
38
39 /* Badge */
40 .bkpsw-badge {
41 margin-left: 6px;
42 background: #f59e0b;
43 color: #fff;
44 border-radius: 20px;
45 padding: 2px 7px;
46 vertical-align: middle;
47 display: inline-block;
48 font-family: var(--bkpsw-bd-font-family, inherit);
49 font-size: var(--bkpsw-bd-font-size-d, 11px);
50 font-weight: var(--bkpsw-bd-font-weight, 700);
51 font-style: var(--bkpsw-bd-font-style, normal);
52 text-decoration: var(--bkpsw-bd-text-decoration, none);
53 text-transform: var(--bkpsw-bd-text-transform, none);
54 line-height: var(--bkpsw-bd-line-height-d, normal);
55 letter-spacing: var(--bkpsw-bd-letter-spacing-d, normal);
56 word-spacing: var(--bkpsw-bd-word-spacing-d, normal);
57 }
58
59 /* ---- Slider style ---- */
60 .bkpsw-style-slider .bkpsw-switch {
61 position: relative;
62 }
63 .bkpsw-style-slider .bkpsw-btn {
64 position: relative;
65 z-index: 1;
66 }
67
68 /* ---- Toggle style ---- */
69 .bkpsw-style-toggle .bkpsw-switch {
70 gap: 10px;
71 background: transparent !important;
72 padding: 0;
73 }
74 .bkpsw-style-toggle .bkpsw-btn {
75 background: transparent !important;
76 color: var(--bkpsw-inactive-text, #555);
77 border: none !important;
78 padding: 0 4px;
79 }
80 .bkpsw-style-toggle .bkpsw-btn.bkpsw-active {
81 color: var(--bkpsw-accent, #6c3fb5);
82 background: transparent !important;
83 }
84 .bkpsw-style-toggle .bkpsw-switch::before {
85 content: '';
86 display: inline-block;
87 width: 48px;
88 height: 26px;
89 background: var(--bkpsw-accent, #6c3fb5);
90 border-radius: 13px;
91 vertical-align: middle;
92 transition: background 0.25s;
93 cursor: pointer;
94 flex-shrink: 0;
95 }
96 .bkpsw-style-toggle .bkpsw-switch::after {
97 content: '';
98 position: absolute;
99 left: calc( 50% - 24px + 2px );
100 top: 50%;
101 transform: translateY(-50%);
102 width: 22px;
103 height: 22px;
104 background: #fff;
105 border-radius: 50%;
106 transition: left 0.25s;
107 pointer-events: none;
108 }
109 .bkpsw-yearly-active .bkpsw-style-toggle .bkpsw-switch::after {
110 left: calc( 50% - 24px + 26px );
111 }
112
113 /* ---- Pricing table visibility integration ---- */
114 .wp-block-blockenberg-pricing-table .bkpsw-monthly,
115 .wp-block-blockenberg-pricing-table .bkpsw-yearly {
116 display: none;
117 }
118 /* When page is in monthly mode */
119 body.bkpsw-page-monthly .wp-block-blockenberg-pricing-table .bkpsw-monthly,
120 .bkpsw-monthly-active ~ .wp-block-blockenberg-pricing-table .bkpsw-monthly {
121 display: '';
122 }
123 /* When page is in yearly mode */
124 body.bkpsw-page-yearly .wp-block-blockenberg-pricing-table .bkpsw-yearly,
125 .bkpsw-yearly-active ~ .wp-block-blockenberg-pricing-table .bkpsw-yearly {
126 display: '';
127 }
128
129 @media (max-width: 1024px) {
130 .bkpsw-btn {
131 font-size: var(--bkpsw-lb-font-size-t, 14px);
132 line-height: var(--bkpsw-lb-line-height-t, 1.4);
133 letter-spacing: var(--bkpsw-lb-letter-spacing-t, normal);
134 word-spacing: var(--bkpsw-lb-word-spacing-t, normal);
135 }
136 .bkpsw-badge {
137 font-size: var(--bkpsw-bd-font-size-t, 11px);
138 line-height: var(--bkpsw-bd-line-height-t, normal);
139 letter-spacing: var(--bkpsw-bd-letter-spacing-t, normal);
140 word-spacing: var(--bkpsw-bd-word-spacing-t, normal);
141 }
142 }
143
144 @media (max-width: 767px) {
145 .bkpsw-btn {
146 font-size: var(--bkpsw-lb-font-size-m, 14px);
147 line-height: var(--bkpsw-lb-line-height-m, 1.4);
148 letter-spacing: var(--bkpsw-lb-letter-spacing-m, normal);
149 word-spacing: var(--bkpsw-lb-word-spacing-m, normal);
150 }
151 .bkpsw-badge {
152 font-size: var(--bkpsw-bd-font-size-m, 11px);
153 line-height: var(--bkpsw-bd-line-height-m, normal);
154 letter-spacing: var(--bkpsw-bd-letter-spacing-m, normal);
155 word-spacing: var(--bkpsw-bd-word-spacing-m, normal);
156 }
157 }
158