首次提交
This commit is contained in:
@@ -0,0 +1,679 @@
|
||||
/* 全局和页面基础样式 */
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||
background-color: #f4f7f6; /* 页面背景色 */
|
||||
display: flex;
|
||||
justify-content: center; /* 水平居中 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* --- 主组件显示区域样式 --- */
|
||||
.machine-component {
|
||||
background-color: #ffffff; /* 组件背景色 */
|
||||
border-radius: 12px; /* 圆角 */
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 阴影 */
|
||||
padding: 15px; /* Adjusted padding */
|
||||
max-width: 350px; /* Max width on larger screens */
|
||||
width: 90%; /* Relative width on smaller screens */
|
||||
margin: 10px; /* Add some margin */
|
||||
cursor: pointer; /* 鼠标样式 */
|
||||
transition: box-shadow 0.3s ease; /* 阴影过渡效果 */
|
||||
border: 1px solid #e0e0e0; /* 边框 */
|
||||
}
|
||||
|
||||
.machine-component:hover {
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* 鼠标悬浮时阴影加强 */
|
||||
}
|
||||
|
||||
/* 主组件头部 */
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between; /* 两端对齐 */
|
||||
align-items: center; /* 垂直居中 */
|
||||
margin-bottom: 15px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #eee; /* 底部边框分割线 */
|
||||
}
|
||||
|
||||
/* 主组件 - 机构名称 */
|
||||
#machine-name-display {
|
||||
font-size: 1.2em;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 主组件 - 状态指示灯 */
|
||||
.status-indicator {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%; /* 圆形 */
|
||||
background-color: #ffc107; /* Default Yellow for waiting */
|
||||
transition: background-color 0.3s ease; /* Keep transition for color change */
|
||||
/* Apply default yellow pulse animation */
|
||||
animation: pulse-yellow 1.5s infinite;
|
||||
}
|
||||
|
||||
/* Active state overrides */
|
||||
.status-indicator.active {
|
||||
background-color: #4CAF50; /* Green when active */
|
||||
animation-name: pulse-green; /* Change animation name */
|
||||
}
|
||||
|
||||
/* Disabled state overrides */
|
||||
.status-indicator.disabled {
|
||||
background-color: #dc3545; /* Red when disabled */
|
||||
animation-name: pulse-red; /* Use red pulse */
|
||||
}
|
||||
|
||||
/* Define the GREEN pulse animation */
|
||||
@keyframes pulse-green {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); /* Green shadow */
|
||||
}
|
||||
70% {
|
||||
box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Define the YELLOW pulse animation */
|
||||
@keyframes pulse-yellow {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.5); /* Yellow shadow */
|
||||
}
|
||||
70% {
|
||||
box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* Define the RED pulse animation */
|
||||
@keyframes pulse-red {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); /* Red shadow */
|
||||
}
|
||||
70% {
|
||||
box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* 主组件 - 信息网格布局 */
|
||||
.info-grid {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr; /* 标签自适应,值占满剩余空间 */
|
||||
gap: 8px 15px; /* 行间距 列间距 */
|
||||
margin-bottom: 15px;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
/* 主组件 - 信息标签 */
|
||||
.info-label {
|
||||
color: #555;
|
||||
font-weight: 500;
|
||||
text-align: right; /* 文本右对齐 */
|
||||
}
|
||||
|
||||
/* 主组件 - 信息值 */
|
||||
.info-value {
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* 主组件 - 底部状态文本 */
|
||||
.status-text {
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid #eee; /* 顶部边框分割线 */
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
/* --- 设置弹窗 (Modal) 样式 --- */
|
||||
|
||||
/* 弹窗遮罩层 */
|
||||
.modal-overlay {
|
||||
position: fixed; /* 固定定位,覆盖全屏 */
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
|
||||
display: flex;
|
||||
justify-content: center; /* 水平居中弹窗内容 */
|
||||
align-items: center; /* 垂直居中弹窗内容 */
|
||||
z-index: 1000; /* 置于顶层 */
|
||||
}
|
||||
|
||||
/* 弹窗内容区域 */
|
||||
.modal-content {
|
||||
background-color: #fff;
|
||||
border-radius: 10px; /* 圆角 */
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
||||
max-width: 600px; /* Max width on larger screens */
|
||||
width: 90vw; /* Relative width */
|
||||
max-height: 90vh; /* 最大高度为视窗的90% */
|
||||
display: flex; /* Use flexbox for layout */
|
||||
flex-direction: column; /* Stack header, scroll, footer vertically */
|
||||
overflow: hidden; /* Re-add overflow hidden to clip children and enforce height */
|
||||
}
|
||||
|
||||
/* Remove scrollbar styles from .modal-content */
|
||||
/*
|
||||
.modal-content::-webkit-scrollbar { ... }
|
||||
.modal-content::-webkit-scrollbar-track { ... }
|
||||
.modal-content::-webkit-scrollbar-thumb { ... }
|
||||
.modal-content::-webkit-scrollbar-thumb:hover { ... }
|
||||
*/
|
||||
|
||||
/* Fixed Header Section */
|
||||
.modal-fixed-header {
|
||||
padding: 20px 25px 0 25px; /* Padding T, R/L, B */
|
||||
border-bottom: 1px solid #eee; /* Separator */
|
||||
}
|
||||
|
||||
.steps-legend {
|
||||
/* Styles for the moved legend */
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
padding: 10px 0 5px 0; /* Adjust padding */
|
||||
margin: 0; /* Remove default legend margin */
|
||||
font-size: 1.1em; /* Match step-title size */
|
||||
}
|
||||
|
||||
|
||||
/* Scrollable Steps Area */
|
||||
.modal-scrollable-steps {
|
||||
flex-grow: 1; /* Allow this section to take available vertical space */
|
||||
overflow-y: auto; /* Enable vertical scrolling ONLY for this section */
|
||||
padding: 15px 25px; /* Padding inside the scrollable area */
|
||||
/* Apply custom scrollbar styles HERE */
|
||||
scrollbar-width: thin; /* Firefox */
|
||||
scrollbar-color: #ccc #f4f4f4; /* Firefox */
|
||||
}
|
||||
|
||||
.modal-scrollable-steps::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.modal-scrollable-steps::-webkit-scrollbar-track {
|
||||
background: #f4f4f4;
|
||||
border-radius: 10px;
|
||||
margin: 5px 0; /* Add slight margin */
|
||||
}
|
||||
|
||||
.modal-scrollable-steps::-webkit-scrollbar-thumb {
|
||||
background-color: #ccc;
|
||||
border-radius: 10px;
|
||||
border: 2px solid #f4f4f4;
|
||||
}
|
||||
|
||||
.modal-scrollable-steps::-webkit-scrollbar-thumb:hover {
|
||||
background-color: #aaa;
|
||||
}
|
||||
|
||||
/* Fixed Footer Section */
|
||||
.modal-fixed-footer {
|
||||
padding: 10px 25px 20px 25px; /* Padding T, R/L, B */
|
||||
border-top: 1px solid #eee; /* Separator */
|
||||
background-color: #fff; /* Ensure solid background */
|
||||
}
|
||||
|
||||
/* Adjustments for items moved to footer */
|
||||
.modal-fixed-footer .add-btn {
|
||||
margin-top: 10px; /* Adjust top margin */
|
||||
margin-bottom: 15px; /* Add bottom margin */
|
||||
}
|
||||
|
||||
.modal-fixed-footer .cache-group {
|
||||
margin-bottom: 15px; /* Add consistent margin */
|
||||
}
|
||||
|
||||
.modal-fixed-footer .summary-section {
|
||||
margin-top: 15px; /* Adjust top margin */
|
||||
padding-top: 0; /* Remove padding as border is above */
|
||||
border-top: none; /* Remove border as it's on footer now */
|
||||
}
|
||||
|
||||
.modal-fixed-footer .modal-footer {
|
||||
margin-top: 15px; /* Adjust top margin */
|
||||
padding-top: 0; /* Remove padding as border is above */
|
||||
border-top: none; /* Remove border as it's on footer now */
|
||||
}
|
||||
|
||||
|
||||
/* Remove original steps-config styling */
|
||||
/*
|
||||
.steps-config { ... }
|
||||
.steps-config legend { ... }
|
||||
*/
|
||||
|
||||
/* 弹窗头部 */
|
||||
.modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #eee;
|
||||
padding-bottom: 15px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
/* 弹窗标题 */
|
||||
#modal-title {
|
||||
font-size: 1.4em;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 弹窗关闭按钮 */
|
||||
.close-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 1.8em;
|
||||
cursor: pointer;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.close-btn:hover {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 弹窗主体内容区域 */
|
||||
.modal-body {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
/* 通用表单组样式 */
|
||||
.form-group {
|
||||
margin-bottom: 15px;
|
||||
display: grid;
|
||||
grid-template-columns: 120px 1fr; /* 标签固定宽度,输入框占满剩余 - Default */
|
||||
align-items: center;
|
||||
gap: 5px 10px; /* Reduced gap slightly */
|
||||
}
|
||||
|
||||
/* 表单标签 */
|
||||
.form-group label {
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
/* 表单输入框 (文本和数字) */
|
||||
.form-group input[type="text"],
|
||||
.form-group input[type="number"] {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 6px;
|
||||
font-size: 0.95em;
|
||||
transition: border-color 0.3s ease;
|
||||
}
|
||||
|
||||
/* 输入框获取焦点时样式 */
|
||||
.form-group input[type="text"]:focus,
|
||||
.form-group input[type="number"]:focus {
|
||||
border-color: #007bff; /* 边框变蓝 */
|
||||
outline: none; /* 移除默认轮廓 */
|
||||
}
|
||||
|
||||
/* 禁用的数字输入框 */
|
||||
.form-group input[type="number"][disabled] {
|
||||
background-color: #e9ecef;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* --- 步骤设置区域 --- */
|
||||
.steps-config {
|
||||
border: 1px solid #ddd; /* 边框 */
|
||||
border-radius: 8px; /* 圆角 */
|
||||
padding: 15px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
/* 步骤设置区域标题 */
|
||||
.steps-config legend {
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
/* 单个步骤项 */
|
||||
.step-item {
|
||||
border: 1px dashed #ccc; /* 虚线边框 */
|
||||
border-radius: 6px;
|
||||
padding: 15px;
|
||||
margin-bottom: 15px;
|
||||
position: relative;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
/* 步骤项头部 */
|
||||
.step-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* 步骤标题 (如: 步骤 1) */
|
||||
.step-title {
|
||||
font-weight: bold;
|
||||
font-size: 1.1em;
|
||||
}
|
||||
|
||||
/* 步骤控制按钮组 (上移/下移/删除) */
|
||||
.step-controls {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
/* 步骤控制按钮通用样式 */
|
||||
.step-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 1.2em;
|
||||
color: #888;
|
||||
}
|
||||
.step-btn:hover { color: #333; }
|
||||
/* 删除按钮特定颜色 */
|
||||
.delete-step-btn { color: #dc3545; }
|
||||
.delete-step-btn:hover { color: #a71d2a; }
|
||||
|
||||
/* 步骤内部输入框布局 */
|
||||
.step-inputs {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr 1fr; /* 名称自适应,时间占剩余空间 - Default */
|
||||
gap: 10px;
|
||||
align-items: start; /* 顶部对齐 */
|
||||
}
|
||||
|
||||
/* 步骤内表单组 */
|
||||
.step-inputs .form-group {
|
||||
grid-template-columns: 1fr; /* 内部标签和输入框垂直排列 */
|
||||
margin-bottom: 0;
|
||||
gap: 3px;
|
||||
}
|
||||
/* 步骤内标签样式 */
|
||||
.step-inputs label {
|
||||
text-align: left;
|
||||
font-size: 0.85em;
|
||||
margin-bottom: 2px;
|
||||
color: #666;
|
||||
display: block; /* 确保独占一行 */
|
||||
white-space: nowrap; /* 防止标签换行 */
|
||||
overflow: hidden; /* 隐藏超出部分 */
|
||||
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
||||
max-width: 100%; /* 防止标签撑开布局 */
|
||||
}
|
||||
|
||||
/* 限制步骤内时间输入框的最大宽度 */
|
||||
.step-inputs .form-group:nth-child(2) input[type="number"],
|
||||
.step-inputs .form-group:nth-child(3) input[type="number"] {
|
||||
max-width: 85px; /* 最大宽度限制 */
|
||||
width: 100%; /* 允许在容器缩小时也缩小 */
|
||||
}
|
||||
|
||||
/* 确保步骤内名称输入框填满其列 */
|
||||
.step-inputs .form-group:nth-child(1) input[type="text"] {
|
||||
width: 85%;
|
||||
}
|
||||
|
||||
/* --- 其他设置和按钮 --- */
|
||||
|
||||
/* 添加步骤按钮 */
|
||||
.add-btn {
|
||||
padding: 8px 15px;
|
||||
background-color: #28a745;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 0.95em;
|
||||
transition: background-color 0.3s ease;
|
||||
margin-top: 15px;
|
||||
/* 居中显示 */
|
||||
display: block;
|
||||
width: fit-content; /* 宽度自适应内容 */
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.add-btn:hover {
|
||||
background-color: #218838;
|
||||
}
|
||||
|
||||
/* 缓存设置组 */
|
||||
.cache-group {
|
||||
display: grid; /* Use grid for better control with errors */
|
||||
grid-template-columns: auto auto 1fr; /* checkbox, label, input - Default */
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* 缓存复选框 */
|
||||
.cache-group input[type="checkbox"] { grid-row: 1; }
|
||||
.cache-group label[for="has-cache-checkbox"] { grid-row: 1; text-align: left; }
|
||||
.cache-group input[type="number"] { grid-row: 1; }
|
||||
.cache-group .error-message {
|
||||
grid-column: 3; /* Error below the number input */
|
||||
grid-row: 2;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* 汇总信息区域 */
|
||||
.summary-section {
|
||||
margin-top: 20px;
|
||||
padding-top: 15px;
|
||||
border-top: 1px solid #eee;
|
||||
display: flex;
|
||||
justify-content: space-around; /* 两端分散对齐 */
|
||||
font-size: 0.95em;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
/* 汇总信息中的数值 */
|
||||
.summary-section span span {
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 弹窗底部按钮区域 */
|
||||
.modal-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end; /* 按钮靠右对齐 */
|
||||
gap: 10px;
|
||||
padding-top: 15px;
|
||||
border-top: 1px solid #eee;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
/* 保存和取消按钮通用样式 */
|
||||
.save-btn,
|
||||
.cancel-btn {
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 1em;
|
||||
transition: background-color 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
|
||||
/* 保存按钮 */
|
||||
.save-btn {
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.save-btn:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
||||
|
||||
/* 取消按钮 */
|
||||
.cancel-btn {
|
||||
background-color: #f8f9fa;
|
||||
color: #333;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.cancel-btn:hover {
|
||||
background-color: #e2e6ea;
|
||||
}
|
||||
|
||||
/* --- 工具类样式 --- */
|
||||
|
||||
/* 错误消息 (未使用,可备用) */
|
||||
.error-message {
|
||||
color: #dc3545;
|
||||
font-size: 0.85em; /* Slightly larger */
|
||||
padding-left: 0; /* Remove padding */
|
||||
display: none; /* Hidden by default */
|
||||
margin-top: 2px; /* Add small top margin */
|
||||
}
|
||||
|
||||
/* Ensure error message appears below input in standard form groups */
|
||||
.form-group .error-message {
|
||||
grid-column: 2; /* Align with input */
|
||||
grid-row: 2; /* Place on the row below the input */
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Error messages within steps */
|
||||
.step-inputs .error-message {
|
||||
/* display: block; */ /* Already block by default */
|
||||
width: 100%; /* Take full width */
|
||||
margin-top: 2px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Adjust cache group alignment when error shows */
|
||||
.cache-group {
|
||||
display: grid; /* Use grid for better control with errors */
|
||||
grid-template-columns: auto auto 1fr; /* checkbox, label, input */
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.cache-group input[type="checkbox"] { grid-row: 1; }
|
||||
.cache-group label[for="has-cache-checkbox"] { grid-row: 1; text-align: left; }
|
||||
.cache-group input[type="number"] { grid-row: 1; }
|
||||
.cache-group .error-message {
|
||||
grid-column: 3; /* Error below the number input */
|
||||
grid-row: 2;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
/* 步骤项移动时的视觉反馈 */
|
||||
.step-item.moving {
|
||||
transition: background-color 0.3s ease-out;
|
||||
background-color: #e6f7ff; /* 淡蓝色高亮 */
|
||||
}
|
||||
|
||||
/* Input Validation Styles */
|
||||
input:invalid,
|
||||
textarea:invalid {
|
||||
border-color: #dc3545; /* Red border for invalid fields */
|
||||
}
|
||||
|
||||
.form-group input.invalid,
|
||||
.step-item input.invalid {
|
||||
border-color: #dc3545 !important; /* Force red border */
|
||||
background-color: #fff3f3; /* Light red background */
|
||||
}
|
||||
|
||||
.error-tooltip {
|
||||
color: #dc3545;
|
||||
font-size: 0.8em;
|
||||
padding-left: 5px;
|
||||
display: none; /* Hidden by default */
|
||||
}
|
||||
|
||||
.form-group .error-tooltip {
|
||||
grid-column: 2; /* Align with input in main form groups */
|
||||
}
|
||||
|
||||
/* --- Responsive Adjustments --- */
|
||||
|
||||
@media (max-width: 600px) {
|
||||
|
||||
/* Reduce padding/font size slightly globally in modal? Optional */
|
||||
.modal-content {
|
||||
width: 95vw; /* Use more width on mobile */
|
||||
max-height: 95vh; /* Allow slightly more height */
|
||||
}
|
||||
|
||||
.modal-fixed-header,
|
||||
.modal-scrollable-steps,
|
||||
.modal-fixed-footer {
|
||||
padding: 15px; /* Consistent padding */
|
||||
}
|
||||
|
||||
/* Stack form groups vertically */
|
||||
.form-group {
|
||||
grid-template-columns: 1fr; /* Single column */
|
||||
gap: 5px; /* Reduce gap */
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
text-align: left; /* Align labels left */
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
/* Ensure error messages span full width below input */
|
||||
.form-group .error-message {
|
||||
grid-column: 1; /* Span full column */
|
||||
grid-row: 3; /* Ensure it's below label and input */
|
||||
}
|
||||
|
||||
/* Stack step inputs vertically */
|
||||
.step-inputs {
|
||||
grid-template-columns: 1fr; /* Single column */
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* Allow time inputs to take more width when stacked */
|
||||
.step-inputs .form-group:nth-child(2) input[type="number"],
|
||||
.step-inputs .form-group:nth-child(3) input[type="number"] {
|
||||
max-width: none; /* Remove max-width limit */
|
||||
}
|
||||
|
||||
/* Stack cache group elements */
|
||||
.cache-group {
|
||||
grid-template-columns: auto 1fr; /* Checkbox | Label & Input */
|
||||
gap: 5px 10px;
|
||||
}
|
||||
.cache-group input[type="checkbox"] { grid-row: 1; grid-column: 1; }
|
||||
.cache-group label[for="has-cache-checkbox"] { grid-row: 1; grid-column: 2; }
|
||||
.cache-group input[type="number"] { grid-row: 2; grid-column: 1 / span 2; width: 100%;} /* Input below */
|
||||
.cache-group .error-message {
|
||||
grid-row: 3; /* Error below input */
|
||||
grid-column: 1 / span 2;
|
||||
}
|
||||
|
||||
/* Stack summary section */
|
||||
.summary-section {
|
||||
flex-direction: column; /* Stack items */
|
||||
align-items: center; /* Center align */
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
/* Adjust footer buttons */
|
||||
.modal-footer {
|
||||
justify-content: space-around; /* Space out buttons more */
|
||||
}
|
||||
|
||||
.save-btn,
|
||||
.cancel-btn {
|
||||
padding: 8px 15px; /* Slightly smaller buttons */
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user