196 lines
No EOL
4.4 KiB
CSS
196 lines
No EOL
4.4 KiB
CSS
/*
|
|
* HVAC Trainer Dashboard Styles
|
|
*
|
|
* Styles specific to the template-hvac-dashboard.php template.
|
|
*/
|
|
/* General Page Styles */
|
|
body.page-template-template-hvac-dashboard {
|
|
background-color: #f0f4f8; /* Light blue background - Adjust color as needed */
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.5em; /* Example size */
|
|
margin-bottom: 1em;
|
|
color: #333; /* Adjust color as needed */
|
|
}
|
|
|
|
|
|
/* Header */
|
|
.hvac-dashboard-header {
|
|
margin-bottom: 2em;
|
|
padding-bottom: 1em;
|
|
border-bottom: 1px solid #eee; /* Consider using theme variable for border color */
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap; /* Allow wrapping on smaller screens */
|
|
}
|
|
|
|
.hvac-dashboard-nav a {
|
|
margin-left: 0.5em; /* Add some space between nav buttons */
|
|
}
|
|
|
|
/* Stats Section */
|
|
.hvac-dashboard-stats {
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
/* Use flexbox for 5 columns */
|
|
.hvac-stats-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px; /* Adjust gap as needed */
|
|
margin-left: -10px; /* Counteract column padding */
|
|
margin-right: -10px; /* Counteract column padding */
|
|
}
|
|
|
|
.hvac-stats-grid > .ast-col {
|
|
flex: 1 1 calc(20% - 20px); /* 5 columns minus gap */
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 150px; /* Prevent cards from becoming too small */
|
|
}
|
|
|
|
/* Responsive adjustments for stats grid */
|
|
@media (max-width: 921px) { /* Astra Tablet Breakpoint */
|
|
.hvac-stats-grid > .ast-col {
|
|
flex: 1 1 calc(33.333% - 20px); /* 3 columns */
|
|
}
|
|
}
|
|
@media (max-width: 544px) { /* Astra Mobile Breakpoint */
|
|
.hvac-stats-grid > .ast-col {
|
|
flex: 1 1 calc(50% - 20px); /* 2 columns */
|
|
}
|
|
}
|
|
|
|
.hvac-stat-card {
|
|
border: 1px solid #e0e0e0; /* Lighter border */
|
|
padding: 20px;
|
|
background: #fff;
|
|
text-align: center;
|
|
width: 100%;
|
|
flex-grow: 1;
|
|
border-radius: 4px; /* Slight rounding */
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* TODO: Add styles for icons using ::before or background images */
|
|
/* Example:
|
|
.hvac-stat-card::before {
|
|
content: '';
|
|
display: block;
|
|
width: 30px;
|
|
height: 30px;
|
|
background-color: #ccc; // Placeholder
|
|
margin-bottom: 10px;
|
|
}
|
|
*/
|
|
|
|
.hvac-stat-card .stat-value {
|
|
font-size: 2.2em;
|
|
font-weight: 600; /* Slightly bolder */
|
|
color: #0073aa; /* Example blue color - use theme variable if possible */
|
|
line-height: 1.1;
|
|
margin-bottom: 0.1em;
|
|
display: block;
|
|
}
|
|
|
|
.hvac-stat-card .stat-label {
|
|
font-size: 0.9em;
|
|
color: #555; /* Darker grey */
|
|
display: block;
|
|
}
|
|
|
|
/* Remove old h3/p/small styles if no longer used */
|
|
.hvac-stat-card h3,
|
|
.hvac-stat-card p,
|
|
.hvac-stat-card small {
|
|
display: none; /* Hide old elements if PHP was updated */
|
|
}
|
|
|
|
|
|
/* Event Tabs */
|
|
.hvac-event-tabs {
|
|
margin-bottom: 1.5em;
|
|
border-bottom: 1px solid #ccc; /* Separator line */
|
|
}
|
|
|
|
.hvac-tabs-nav {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
}
|
|
|
|
.hvac-tabs-nav li {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.hvac-tab-link {
|
|
display: block;
|
|
padding: 0.8em 1.2em;
|
|
text-decoration: none;
|
|
color: #555;
|
|
border: 1px solid transparent;
|
|
border-bottom: none;
|
|
margin-bottom: -1px; /* Overlap border-bottom */
|
|
position: relative;
|
|
background-color: transparent;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
.hvac-tab-link:hover {
|
|
color: #0073aa; /* Theme primary color */
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
.hvac-tab-link.active {
|
|
color: #333;
|
|
font-weight: 600;
|
|
background-color: #fff; /* Match page background if needed */
|
|
border-color: #ccc #ccc #fff; /* Border to create tab effect */
|
|
border-top-left-radius: 3px;
|
|
border-top-right-radius: 3px;
|
|
}
|
|
|
|
/* Hide old button filters if PHP was updated */
|
|
.hvac-event-filters {
|
|
display: none;
|
|
}
|
|
|
|
/* Events Table */
|
|
.hvac-events-table-wrapper {
|
|
overflow-x: auto; /* Add horizontal scroll for smaller screens */
|
|
}
|
|
|
|
/* Ensure table uses standard WP/Theme styling and add custom class */
|
|
.hvac-events-table {
|
|
margin-top: 1em;
|
|
background-color: #fff; /* White background for the table card */
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
padding: 15px; /* Add padding inside the card */
|
|
}
|
|
|
|
/* Ensure striped rows are visible */
|
|
.hvac-events-table.striped tbody tr:nth-child(odd) {
|
|
background-color: #f9f9f9; /* Adjust stripe color if needed */
|
|
}
|
|
|
|
.hvac-events-table .column-actions .ast-button {
|
|
margin-right: 0.5em;
|
|
padding: 0.3em 0.8em; /* Make buttons smaller */
|
|
font-size: 0.85em;
|
|
/* TODO: Add icon styles using ::before */
|
|
}
|
|
|
|
.hvac-events-table .column-actions .ast-button:last-child {
|
|
margin-right: 0;
|
|
} |