Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f695ac

Browse files
authored
Merge pull request #37 from N6REJ/Green
Add Green template option to Bears Pricing Tables module
2 parents 5e0f12c + f2b30ad commit 6f695ac

File tree

4 files changed

+489
-0
lines changed

4 files changed

+489
-0
lines changed

css/global.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
width: 100%;
216216
display: flex;
217217
align-items: center;
218+
justify-content: center;
218219
flex-direction: column;
219220
}
220221

@@ -253,6 +254,8 @@
253254
justify-content: center;
254255
align-items: center;
255256
flex: 1;
257+
flex-direction: row;
258+
256259
}
257260

258261
.bears_pricing_tables .plan.featured .plan-cost {
@@ -265,11 +268,14 @@
265268
font-family: var(--bears-price-font-family);
266269
font-size: var(--bears-price-font-size);
267270
font-weight: var(--bears-price-font-weight);
271+
text-align: center;
268272
color: var(--bears-price-color);
269273
/* Price position icons */
270274
display: flex;
271275
align-items: center;
272276
justify-content: center;
277+
box-sizing: border-box;
278+
overflow: visible; /* Allows content to overflow if needed */
273279
}
274280

275281
.bears_pricing_tables .plan.featured .plan-price {
@@ -286,6 +292,7 @@
286292

287293
.bears_pricing_tables .plan.featured .plan-type {
288294
color: var(--bears-featured-subtitle-color);
295+
text-overflow: ellipsis; /* Shows ellipsis for truncated text */
289296
}
290297

291298
.bears_pricing_tables .features {

css/green.css

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
/*
2+
* Bears Pricing Tables - Green Template
3+
* Version: 2025.06.01
4+
* Created by: N6REJ
5+
6+
* URL: http://www.hallhome.us
7+
* License GPLv3.0 - http://www.gnu.org/licenses/gpl-3.0.html
8+
*/
9+
10+
/* Green Template - Template-specific styles */
11+
12+
/* Template-specific CSS Variables */
13+
.template-green .bears_pricing_tables {
14+
/* Layout & Structure */
15+
--bears-num-columns: 4;
16+
--bears-column-margin-y: 20px;
17+
--bears-column-margin-x: 10px;
18+
19+
/* Typography */
20+
--bears-title-font-family: 'Raleway', Arial, sans-serif;
21+
--bears-price-font-family: "Lato", Arial, sans-serif;
22+
--bears-title-font-weight: 400;
23+
--bears-price-font-weight: 300;
24+
--bears-title-font-size: var(--bears-h3);
25+
--bears-price-font-size: var(--bears-h1);
26+
--bears-subtitle-font-size: var(--bears-body);
27+
--bears-features-font-size: var(--bears-body);
28+
--bears-button-font-size: var(--bears-body);
29+
30+
/* Colors - Standard Elements */
31+
--bears-column-background: #fff;
32+
--bears-header-background: #fff;
33+
--bears-features-background-odd: var(--bears-column-background);
34+
--bears-features-background-even: color-mix(in srgb, var(--bears-features-background-odd) 100%, rgba(0, 0, 0, 0.0));
35+
36+
/* Colors - Text */
37+
--bears-title-color: #525252;
38+
--bears-price-color: #414141;
39+
--bears-subtitle-color: #414141;
40+
--bears-featured-subtitle-color: #414141;
41+
--bears-features-text-color: #a7a7a7;
42+
--bears-button-text-color: #ffffff;
43+
44+
/* Colors - Featured Elements */
45+
--bears-column-featured-background: #fff;
46+
--bears-header-featured-background: #fff;
47+
--bears-featured-title-color: #ffffff;
48+
--bears-featured-price-color: #414141;
49+
--bears-featured-features-text-color: var(--bears-features-text-color);
50+
--bears-featured-features-background-odd: var(--bears-column-featured-background);
51+
--bears-featured-features-background-even: color-mix(in srgb, var(--bears-featured-features-background-odd) 100%, rgba(255, 255, 255, 0.0));
52+
53+
/* Colors - Buttons */
54+
--bears-button-background-color: #2ECC71;
55+
--bears-button-hover-color: #fff;
56+
--bears-featured-button-background: #2ECC71;
57+
--bears-featured-button-text-color: #fff;
58+
59+
/* Borders - Standard */
60+
--bears-border-style: solid;
61+
--bears-border-width: 1px;
62+
--bears-border-radius: 0;
63+
--bears-border-color: #f0f0f0;
64+
--bears-features-border-color: #414141;
65+
--bears-header-border: none;
66+
67+
/* Borders - Buttons */
68+
--bears-button-border-radius: 50px;
69+
70+
/* Borders - Featured */
71+
--bears-featured-border-radius: 50px;
72+
--bears-featured-border-width: 1px;
73+
--bears-featured-border-style: var(--bears-border-style);
74+
--bears-featured-border-color: #f0f0f0;
75+
76+
/* Effects & Animation */
77+
--bears-accent-color: #333;
78+
--bears-featured-accent-color: #2ECC71;
79+
--bears-transition-speed: 0.25s;
80+
--bears-scale-amount: 1.0;
81+
--bears-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
82+
--bears-featured-box-shadow: 0 0 15px rgba(0,0,0,0.3);
83+
84+
/* Icons */
85+
--bears-header-icon-color: var(--bears-price-color);
86+
--bears-featured-header-icon-color: var(--bears-featured-price-color);
87+
--bears-features-icon-color: var(--bears-features-text-color);
88+
--bears-featured-features-icon-color: var(--bears-featured-features-text-color);
89+
--bears-header-icon-size: 24px;
90+
}
91+
92+
/* Template-specific styles */
93+
/* Add specific container styles for 1404 template */
94+
.template-green .bears_pricing_tables-container {
95+
gap: var(--bears-column-margin-x);
96+
padding: 20px 0;
97+
justify-content: space-between;
98+
}
99+
100+
/* Add padding to each column to create more space */
101+
.template-green .bears_pricing_tables {
102+
padding: 10px 0;
103+
}
104+
105+
/* Add extra space around the featured plan */
106+
.template-green .bears_pricing_tables .plan.featured {
107+
box-shadow: var(--bears-featured-box-shadow);
108+
border-radius: 0;
109+
}
110+
111+
.template-green .bears_pricing_tables .plan-title {
112+
letter-spacing: 2px;
113+
text-align: center;
114+
position: relative;
115+
margin-top: 23px;
116+
117+
}
118+
119+
.template-green .bears_pricing_tables .plan-title:hover {
120+
background: #2ecc71;
121+
}
122+
123+
.template-green .bears_pricing_tables header {
124+
padding: 0 0 20px 0;
125+
height: 150px;
126+
display: block;
127+
}
128+
129+
.template-green .bears_pricing_tables header:before {
130+
content: '';
131+
position: absolute;
132+
top: 0;
133+
left: 0;
134+
width: 100%;
135+
height: 95px;
136+
padding-bottom: 10px;
137+
z-index: 1;
138+
background: #E4E4E4;
139+
clip-path: polygon(0 0, 100% 0, 100% 70px, 0 95px);
140+
}
141+
142+
.template-green .bears_pricing_tables .plan.featured header:before,
143+
.template-green .bears_pricing_tables:hover header:before {
144+
background: var(--bears-featured-accent-color);
145+
}
146+
147+
/* Price section styling */
148+
.template-green .bears_pricing_tables .price {
149+
width: 100%;
150+
padding-top: 23px;
151+
padding-bottom: 20px;
152+
}
153+
154+
.template-green .bears_pricing_tables .plan-cost {
155+
align-items: baseline;
156+
justify-content: center;
157+
width: auto;
158+
max-width: 100%;
159+
flex-wrap: nowrap;
160+
flex-shrink: 0; /* Prevents plan-cost from shrinking */
161+
}
162+
163+
.template-green .bears_pricing_tables .plan-price {
164+
line-height: var(--bears-price-font-size);
165+
flex-shrink: 0; /* Allows price to shrink if needed */
166+
}
167+
168+
.template-green .bears_pricing_tables header .plan-title {
169+
align-items: flex-end;
170+
padding-bottom: 10px;
171+
justify-content: center;
172+
z-index: 1;
173+
height: auto;
174+
}
175+
176+
.template-green .bears_pricing_tables .plan-type {
177+
display: inline-block;
178+
white-space: nowrap;
179+
color: var(--bears-subtitle-color);
180+
flex-shrink: 0; /* Prevents type from shrinking */
181+
min-width: 0; /* Allows text to be truncated if needed */
182+
overflow: hidden; /* Enables text truncation */
183+
}
184+
185+
.template-green .bears_pricing_tables .plan-select {
186+
border-top: none;
187+
}
188+
189+
.template-green .bears_pricing_tables .plan-features {
190+
margin: 10px 0;
191+
}
192+
193+
.template-green .bears_pricing_tables .plan-features li {
194+
border: none;
195+
}
196+
197+
.template-green .bears_pricing_tables .plan-select a,
198+
.template-green .bears_pricing_tables .plan-select a.btn {
199+
background-color: #ffffff;
200+
border: 1px solid #2ecc71;
201+
color: #2ecc71;
202+
}
203+
204+
.template-green .bears_pricing_tables:hover .plan-select .btn {
205+
background: #2ECC71;
206+
color: #fff;
207+
}
208+
209+
.template-green .bears_pricing_tables:hover .plan-title,
210+
.template-green .bears_pricing_tables .featured .plan-select .btn,
211+
.template-green .bears_pricing_tables:hover .featured .plan-select .btn {
212+
color: #fff;
213+
}
214+
215+
.template-green .bears_pricing_tables .plan-features li .first-word {
216+
color: #414141;
217+
}
218+
219+
.template-green .bears_pricing_tables .plan-features li:hover {
220+
border-left: 4px solid #2ecc71;
221+
}

mod_bears_pricing_tables.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<option value="1517">10 - Rounded ( Blue Rounded - 1517)</option><!-- 1517 -->
4949
<option value="red">11 - Red version of default ( Large Accent - red)</option> <!-- 1276-red -->
5050
<option value="white">12 - White ( simple Black and White - white)</option><!-- custom -->
51+
<option value="Green">13 - Green ( simple Green and White - Green)</option><!-- custom -->
5152

5253
</field>
5354
<field name="bears_num_columns" type="radio" default="3" label="MOD_BEARS_NUMCOLUMNS" description="MOD_BEARS_NUMCOLUMNS_DESC"

0 commit comments

Comments
 (0)