All checks were successful
Create Release Package / build-release (push) Successful in 1m19s
- Create PricingTier enum for short/mid/long-term pricing - Add Season class for seasonal pricing with date ranges - Implement Calculator for price calculations with breakdown - Add pricing meta box to Room post type - Create Seasons admin page for managing seasonal pricing - Add Pricing settings tab with tier thresholds - Support weekend surcharges and configurable weekend days - Add price column to room list admin Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
326 lines
4.5 KiB
CSS
326 lines
4.5 KiB
CSS
/**
|
|
* WP BnB Admin Styles
|
|
*
|
|
* @package Magdev\WpBnb
|
|
*/
|
|
|
|
/* Dashboard */
|
|
.wp-bnb-dashboard {
|
|
background: #fff;
|
|
border: 1px solid #c3c4c7;
|
|
border-radius: 4px;
|
|
padding: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* License Status Badge */
|
|
.wp-bnb-license-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.wp-bnb-license-status .dashicons {
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
/* License Message */
|
|
#wp-bnb-license-message {
|
|
margin: 15px 0;
|
|
padding: 12px 15px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#wp-bnb-license-message.success {
|
|
background: #d4edda;
|
|
border: 1px solid #c3e6cb;
|
|
color: #155724;
|
|
}
|
|
|
|
#wp-bnb-license-message.error {
|
|
background: #f8d7da;
|
|
border: 1px solid #f5c6cb;
|
|
color: #721c24;
|
|
}
|
|
|
|
/* Spinner */
|
|
#wp-bnb-license-spinner {
|
|
float: none;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
/* Settings Tabs */
|
|
.nav-tab-wrapper {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.tab-content {
|
|
background: #fff;
|
|
border: 1px solid #c3c4c7;
|
|
border-top: none;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Form Tables */
|
|
.form-table th {
|
|
width: 200px;
|
|
}
|
|
|
|
/* Submit Buttons */
|
|
.submit {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.submit .button {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Room Gallery */
|
|
.bnb-gallery-container {
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.bnb-gallery-images {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.bnb-gallery-image {
|
|
position: relative;
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 1px solid #c3c4c7;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
cursor: move;
|
|
}
|
|
|
|
.bnb-gallery-image img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.bnb-gallery-image .bnb-remove-image {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
width: 20px;
|
|
height: 20px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 50%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
line-height: 18px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.bnb-gallery-image:hover .bnb-remove-image {
|
|
opacity: 1;
|
|
}
|
|
|
|
.bnb-gallery-image .bnb-remove-image:hover {
|
|
background: #d63638;
|
|
}
|
|
|
|
/* Status Badge */
|
|
.bnb-status-badge {
|
|
display: inline-block;
|
|
padding: 3px 8px;
|
|
border-radius: 3px;
|
|
color: #fff;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* Room Details Meta Box */
|
|
#bnb_room_details .form-table td label {
|
|
display: inline-block;
|
|
min-width: 100px;
|
|
}
|
|
|
|
/* Building Details Meta Box */
|
|
#bnb_building_details p {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
#bnb_building_details label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
#bnb_building_details input {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Admin Columns */
|
|
.column-city,
|
|
.column-country,
|
|
.column-room_number,
|
|
.column-capacity,
|
|
.column-status {
|
|
width: 100px;
|
|
}
|
|
|
|
.column-building {
|
|
width: 150px;
|
|
}
|
|
|
|
.column-rooms {
|
|
width: 80px;
|
|
}
|
|
|
|
/* Dashicons in columns */
|
|
.column-capacity .dashicons {
|
|
color: #646970;
|
|
font-size: 16px;
|
|
vertical-align: middle;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
/* Price column */
|
|
.column-price {
|
|
width: 120px;
|
|
}
|
|
|
|
.bnb-no-price {
|
|
color: #646970;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Pricing Meta Box */
|
|
.bnb-pricing-table h4 {
|
|
margin: 0 0 10px 0;
|
|
padding: 0;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #1d2327;
|
|
}
|
|
|
|
.bnb-pricing-table tr:first-child th,
|
|
.bnb-pricing-table tr:first-child td {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.bnb-price-input-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.bnb-price-input-wrapper input {
|
|
width: 100px !important;
|
|
}
|
|
|
|
.bnb-price-unit {
|
|
color: #646970;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Seasons Page */
|
|
.bnb-seasons-description {
|
|
background: #fff;
|
|
border: 1px solid #c3c4c7;
|
|
border-left: 4px solid #72aee6;
|
|
padding: 12px 15px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.bnb-seasons-description p {
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.bnb-no-seasons {
|
|
background: #fff;
|
|
border: 1px solid #c3c4c7;
|
|
border-radius: 4px;
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.bnb-no-seasons p {
|
|
margin: 15px 0;
|
|
}
|
|
|
|
.bnb-no-seasons .button {
|
|
margin: 0 5px;
|
|
}
|
|
|
|
/* Season List Columns */
|
|
.column-name {
|
|
width: 25%;
|
|
}
|
|
|
|
.column-dates {
|
|
width: 20%;
|
|
}
|
|
|
|
.column-modifier {
|
|
width: 20%;
|
|
}
|
|
|
|
.column-priority {
|
|
width: 10%;
|
|
}
|
|
|
|
.column-status {
|
|
width: 10%;
|
|
}
|
|
|
|
.bnb-modifier-visual {
|
|
font-size: 12px;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
.bnb-status-active {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: #00a32a;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.bnb-status-active::before {
|
|
content: "\f147";
|
|
font-family: dashicons;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
.bnb-status-inactive {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
color: #646970;
|
|
}
|
|
|
|
.bnb-status-inactive::before {
|
|
content: "\f460";
|
|
font-family: dashicons;
|
|
margin-right: 3px;
|
|
}
|
|
|
|
/* Season Form */
|
|
.bnb-season-form {
|
|
max-width: 800px;
|
|
}
|
|
|
|
.bnb-season-form .form-table th {
|
|
width: 180px;
|
|
}
|
|
|
|
.bnb-season-form input[type="text"].small-text {
|
|
width: 80px;
|
|
}
|