|
1 | | -# mod_bears_pricing_tables |
| 1 | +# Bear's pricing tables module |
2 | 2 | Responsive pricing tables for Joomla |
| 3 | + |
| 4 | +## Template Designer's Guide - CSS Variables |
| 5 | + |
| 6 | +This guide lists all CSS variables used in the Bears Pricing Tables module and explains their function. |
| 7 | + |
| 8 | +### Global Variables (from global.css) |
| 9 | +These variables are defined in global.css and provide default values that can be overridden by specific templates: |
| 10 | + |
| 11 | +#### Typography Base Sizes |
| 12 | +| Variable | Function | |
| 13 | +|----------|----------| |
| 14 | +| `--bears-h1` | Base size for h1 elements (2.5rem) | |
| 15 | +| `--bears-h2` | Base size for h2 elements (2rem) | |
| 16 | +| `--bears-h3` | Base size for h3 elements (1.75rem) | |
| 17 | +| `--bears-h4` | Base size for h4 elements (1.5rem) | |
| 18 | +| `--bears-body` | Base size for body text (1rem) | |
| 19 | + |
| 20 | +### Icon Variables (from icons.css) |
| 21 | +These variables are defined in icons.css and control the appearance of icons in different columns: |
| 22 | + |
| 23 | +#### Column-Specific Icon Styling |
| 24 | +| Variable | Function | |
| 25 | +|----------|----------| |
| 26 | +| `--bears-header-icon-color-1` | Icon color for column 1 (defaults to `--bears-header-icon-color`) | |
| 27 | +| `--bears-header-icon-size-1` | Icon size for column 1 (defaults to `--bears-header-icon-size`) | |
| 28 | +| `--bears-header-icon-color-2` | Icon color for column 2 (defaults to `--bears-header-icon-color`) | |
| 29 | +| `--bears-header-icon-size-2` | Icon size for column 2 (defaults to `--bears-header-icon-size`) | |
| 30 | +| `--bears-header-icon-color-3` | Icon color for column 3 (defaults to `--bears-header-icon-color`) | |
| 31 | +| `--bears-header-icon-size-3` | Icon size for column 3 (defaults to `--bears-header-icon-size`) | |
| 32 | +| `--bears-header-icon-color-4` | Icon color for column 4 (defaults to `--bears-header-icon-color`) | |
| 33 | +| `--bears-header-icon-size-4` | Icon size for column 4 (defaults to `--bears-header-icon-size`) | |
| 34 | +| `--bears-header-icon-color-5` | Icon color for column 5 (defaults to `--bears-header-icon-color`) | |
| 35 | +| `--bears-header-icon-size-5` | Icon size for column 5 (defaults to `--bears-header-icon-size`) | |
| 36 | + |
| 37 | +### Common Template Variables |
| 38 | +These variables are used across all templates but may have different values in each template: |
| 39 | + |
| 40 | +#### Layout & Structure |
| 41 | +| Variable | Function | |
| 42 | +|----------|----------| |
| 43 | +| `--bears-num-columns` | Defines the number of pricing columns to display | |
| 44 | +| `--bears-column-margin-y` | Sets the vertical margin between pricing columns | |
| 45 | +| `--bears-column-margin-x` | Sets the horizontal margin between pricing columns | |
| 46 | + |
| 47 | +#### Typography |
| 48 | +| Variable | Function | |
| 49 | +|----------|----------| |
| 50 | +| `--bears-title-font-family` | Font family for pricing plan titles | |
| 51 | +| `--bears-price-font-family` | Font family for pricing amounts | |
| 52 | +| `--bears-title-font-weight` | Font weight for pricing plan titles | |
| 53 | +| `--bears-price-font-weight` | Font weight for pricing amounts | |
| 54 | +| `--bears-title-font-size` | Font size for pricing plan titles (references `--bears-h4`) | |
| 55 | +| `--bears-price-font-size` | Font size for pricing amounts (references `--bears-h1`) | |
| 56 | +| `--bears-subtitle-font-size` | Font size for subtitles (references `--bears-h4`) | |
| 57 | +| `--bears-features-font-size` | Font size for feature list items (references `--bears-body`) | |
| 58 | +| `--bears-button-font-size` | Font size for buttons (references `--bears-body`) | |
| 59 | + |
| 60 | +#### Colors - Standard Elements |
| 61 | +| Variable | Function | |
| 62 | +|----------|----------| |
| 63 | +| `--bears-column-background` | Background color for pricing columns | |
| 64 | +| `--bears-header-background` | Background color for column headers | |
| 65 | +| `--bears-features-background-odd` | Background color for odd-numbered feature rows | |
| 66 | +| `--bears-features-background-even` | Background color for even-numbered feature rows | |
| 67 | +| `--bears-featured-features-background-odd` | Background color for odd-numbered feature rows in featured columns | |
| 68 | +| `--bears-featured-features-background-even` | Background color for even-numbered feature rows in featured columns | |
| 69 | + |
| 70 | +#### Colors - Text |
| 71 | +| Variable | Function | |
| 72 | +|----------|----------| |
| 73 | +| `--bears-title-color` | Text color for pricing plan titles | |
| 74 | +| `--bears-price-color` | Text color for pricing amounts | |
| 75 | +| `--bears-subtitle-color` | Text color for subtitles (references `--bears-price-color`) | |
| 76 | +| `--bears-features-text-color` | Text color for feature list items | |
| 77 | +| `--bears-button-text-color` | Text color for buttons | |
| 78 | + |
| 79 | +#### Colors - Featured Elements |
| 80 | +| Variable | Function | |
| 81 | +|----------|----------| |
| 82 | +| `--bears-column-featured-background` | Background color for featured pricing columns | |
| 83 | +| `--bears-header-featured-background` | Background color for featured column headers | |
| 84 | +| `--bears-featured-title-color` | Text color for featured pricing plan titles | |
| 85 | +| `--bears-featured-price-color` | Text color for featured pricing amounts | |
| 86 | +| `--bears-featured-subtitle-color` | Text color for subtitles in featured columns | |
| 87 | +| `--bears-featured-features-text-color` | Text color for featured column feature list items | |
| 88 | + |
| 89 | +#### Colors - Buttons |
| 90 | +| Variable | Function | |
| 91 | +|----------|----------| |
| 92 | +| `--bears-button-background-color` | Background color for buttons | |
| 93 | +| `--bears-button-hover-color` | Background color for buttons on hover | |
| 94 | +| `--bears-featured-button-background` | Background color for buttons in featured columns | |
| 95 | +| `--bears-featured-button-text-color` | Text color for buttons in featured columns | |
| 96 | + |
| 97 | +#### Borders - Standard |
| 98 | +| Variable | Function | |
| 99 | +|----------|----------| |
| 100 | +| `--bears-border-style` | Border style for pricing columns | |
| 101 | +| `--bears-border-width` | Border width for pricing columns | |
| 102 | +| `--bears-border-radius` | Border radius for pricing columns | |
| 103 | +| `--bears-border-color` | Border color for pricing columns | |
| 104 | +| `--bears-header-border` | Border style for column headers | |
| 105 | + |
| 106 | +#### Borders - Buttons |
| 107 | +| Variable | Function | |
| 108 | +|----------|----------| |
| 109 | +| `--bears-button-border-radius` | Border radius for buttons | |
| 110 | + |
| 111 | +#### Borders - Featured |
| 112 | +| Variable | Function | |
| 113 | +|----------|----------| |
| 114 | +| `--bears-featured-border-radius` | Border radius for featured pricing columns | |
| 115 | +| `--bears-featured-border-width` | Border width for featured pricing columns | |
| 116 | +| `--bears-featured-border-style` | Border style for featured pricing columns (references `--bears-border-style`) | |
| 117 | +| `--bears-featured-border-color` | Border color for featured pricing columns | |
| 118 | + |
| 119 | +#### Effects & Animation |
| 120 | +| Variable | Function | |
| 121 | +|----------|----------| |
| 122 | +| `--bears-accent-color` | Accent color for highlighting elements | |
| 123 | +| `--bears-featured-accent-color` | Accent color for highlighting elements in featured columns | |
| 124 | +| `--bears-transition-speed` | Duration of transition animations | |
| 125 | +| `--bears-scale-amount` | Scale factor for hover effects | |
| 126 | +| `--bears-box-shadow` | Box shadow for pricing columns | |
| 127 | +| `--bears-featured-box-shadow` | Box shadow for featured pricing columns | |
| 128 | + |
| 129 | +#### Icons |
| 130 | +| Variable | Function | |
| 131 | +|----------|----------| |
| 132 | +| `--bears-header-icon-color` | Color for icons in column headers | |
| 133 | +| `--bears-featured-header-icon-color` | Color for icons in featured column headers | |
| 134 | +| `--bears-features-icon-color` | Color for icons in feature list items (references `--bears-features-text-color`) | |
| 135 | +| `--bears-featured-features-icon-color` | Color for icons in featured column feature list items (references `--bears-featured-features-text-color`) | |
| 136 | +| `--bears-header-icon-size` | Size for icons in column headers | |
0 commit comments