profoundjs
Version:
Profound.js Framework and Server
238 lines (203 loc) • 4.36 kB
CSS
/* Body reset and layout */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
height: 100vh;
user-select: none; /* Prevent text selection during resizing */
overflow: hidden; /* Prevent overall page scrolling */
}
/* Main container with flexible columns */
.container {
display: flex;
flex: 1;
overflow: hidden;
}
.resizable {
display: flex;
width: 100%;
height: 100%;
}
/* Shared column styling */
.column {
padding: 20px;
box-sizing: border-box;
border: 1px solid #ccc;
height: 100%;
overflow-y: auto;
}
/* Left column */
.column.left {
background-color: #f9f9f9;
flex: 1;
min-width: 100px;
}
/* Header containing the batch id's */
.column.left .header {
margin-bottom: 10px;
display: flex;
justify-content: flex-end;
}
.column.left .header button {
padding: 5px 10px;
font-size: 14px;
cursor: pointer;
}
.column.right {
background-color: #ffffff;
flex: 1;
min-width: 100px;
}
/* Resizer handle */
.resizer {
width: 5px;
cursor: ew-resize;
background-color: #ddd;
position: relative;
z-index: 10;
user-select: none; /* Ensure resizer is not selectable */
}
.resizer:hover {
background-color: #bbb;
}
/* Individual item styling */
.item {
padding: 10px;
cursor: pointer;
}
.item:hover {
background-color: #e0e0e0;
}
.item.active {
background-color: #cce5ff;
font-weight: bold;
}
.item.active:hover {
background-color: #cce5ff ; /* Force the active background even on hover */
}
/* Details section styling */
.details {
font-size: 16px;
color: #333;
}
/* left-align grid headers and filter inputs */
#run-grid th,
#run-grid thead input {
text-align: left;
}
#run-grid {
width: 100%; /* Expand table to fill available width */
max-width: 1500px;
margin: 0;
table-layout: auto; /* Allow columns to adjust size relative to their content */
}
/* Add padding to table header and data cells except for action cells */
#run-grid th:not(.action-column),
#run-grid td:not(.action-cell) {
padding-left: 10px;
padding-right: 10px;
}
/* Alternate row colors */
#run-grid tbody tr:nth-child(even) {
background-color: #f0f0f0;
}
#run-grid tbody tr:nth-child(odd) {
background-color: #ffffff;
}
.work-icon {
display: inline-block;
width: 30px;
text-align: center;
vertical-align: middle;
margin-right: -1px;
margin-left: 4px;
margin-top: 1px;
cursor: pointer;
color: #757575;
}
.work-icon:hover {
color: #1565C0;
}
.batch-text {
display: inline-block;
vertical-align: middle;
}
.status-icon {
display: inline-block;
width: 30px; /* fixed width for the icon column */
text-align: center;
vertical-align: middle;
margin-right: 2px;
margin-left: -3px;
margin-top: 1px;
}
.action-column, .action-cell {
width: auto;
text-align: center;
}
.action-cell {
white-space: nowrap;
}
/* Overall header styling */
#page-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
color: #ecf0f1;
background-color: #555;
border-bottom: 1px solid #ccc;
}
#page-header h1 {
margin: 0;
font-size: 24px;
}
#refresh-button {
background-color: transparent;
border: none; /* Remove default border */
border-radius: 5px;
color: #ecf0f1;
font-size: 16px;
display: flex; /* Align icon and text nicely */
align-items: center;
cursor: pointer;
padding: 5px;
transition: color 0.3s ease;
}
#refresh-button .material-icons {
font-size: 20px;
margin-right: 5px;
}
#refresh-button:hover {
background-color: #00a0f6;
}
.loading {
text-align: center;
padding: 20px;
font-size: 18px;
color: #666;
}
.spinner {
display: block;
width: 40px;
height: 40px;
border: 4px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
border-top-color: #3498db; /* Blue color for the spinner top */
animation: spin 1s ease-in-out infinite;
margin: 80px auto 20px auto;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
#filter-panel {
margin-bottom: 10px;
font-size: 14px;
}
#filter-panel label {
margin-right: 10px;
}