Files
wc-tier-and-package-prices/assets/css/admin.css
magdev 6733ca5f98 Release version 1.2.1 - Critical bugfixes for v1.2.0
Fixed two critical bugs introduced in v1.2.0:

1. Admin UI table structure mismatch - CSS still had flexbox styling from
   old template structure, breaking new table layout. Updated admin.css to
   properly style table rows with standard table cell padding.

2. Frontend pricing display not showing - Template was checking global
   enable settings before display. Removed those checks so pricing shows
   if configured on product AND display setting is enabled.

Files changed:
- wc-tier-and-package-prices.php - Version bump to 1.2.1
- composer.json - Version bump to 1.2.1
- CLAUDE.md - Updated version and documented fixes
- CHANGELOG.md - Added detailed v1.2.1 entry with root cause analysis
- assets/css/admin.css - Fixed table styling (removed flexbox)
- templates/frontend/pricing-table.twig - Removed global enable checks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-29 20:28:28 +01:00

91 lines
1.7 KiB
CSS

/**
* Admin styles for WooCommerce Tier and Package Prices
*/
.wc-tpp-tier-pricing,
.wc-tpp-package-pricing {
border-top: 1px solid #eee;
padding-top: 15px;
margin-top: 15px;
}
.wc-tpp-tier-pricing > p:first-child,
.wc-tpp-package-pricing > p:first-child {
font-weight: 600;
margin-bottom: 10px;
}
.wc-tpp-tier-pricing .description,
.wc-tpp-package-pricing .description {
display: block;
margin-top: 5px;
font-style: italic;
color: #666;
}
/* Table styling */
.wc-tpp-tiers-table,
.wc-tpp-packages-table {
margin-top: 15px;
margin-bottom: 15px;
}
.wc-tpp-tiers-table th,
.wc-tpp-packages-table th {
font-weight: 600;
text-align: left;
}
/* Table row styling - rows are now <tr> elements in a table */
.wc-tpp-tier-row,
.wc-tpp-package-row {
/* No special styling needed - standard table row */
}
.wc-tpp-tier-row td,
.wc-tpp-package-row td {
padding: 8px;
vertical-align: middle;
}
/* Ensure WooCommerce input classes work properly in table cells */
.wc-tpp-tier-row input,
.wc-tpp-package-row input {
margin: 0;
}
.wc-tpp-remove-tier,
.wc-tpp-remove-package {
color: #b32d2e;
border-color: #b32d2e;
}
.wc-tpp-remove-tier:hover,
.wc-tpp-remove-package:hover {
background: #b32d2e;
color: #fff;
}
.wc-tpp-add-tier,
.wc-tpp-add-package {
margin-top: 10px;
}
.wc-tpp-tiers-container,
.wc-tpp-packages-container {
margin-bottom: 15px;
}
.wc-tpp-tiers-container:empty::before,
.wc-tpp-packages-container:empty::before {
content: "No items added yet. Click 'Add' button to create pricing rules.";
display: block;
padding: 20px;
background: #f0f0f1;
border: 1px dashed #ccc;
border-radius: 4px;
text-align: center;
color: #666;
font-style: italic;
}