Files
wp-bnb/assets/css/admin.css
magdev f24a347bb1
All checks were successful
Create Release Package / build-release (push) Successful in 1m6s
Add core data structures for Buildings and Rooms (v0.1.0)
Phase 1 implementation includes:
- Custom Post Type: Buildings with address, contact, and details meta
- Custom Post Type: Rooms with building relationship and gallery
- Custom Taxonomy: Room Types (hierarchical)
- Custom Taxonomy: Amenities (non-hierarchical with icons)
- Admin columns, filters, and status badges
- Gallery meta box with media library integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 13:45:06 +01:00

194 lines
2.8 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;
}