oggui/ogWebconsole/src/app/components/commands/commands-task/create-task-script/create-task-script.componen...

359 lines
5.3 KiB
CSS

.dialog-title {
display: flex;
align-items: center;
gap: 8px;
margin: 0;
padding: 16px 24px;
}
.back-icon {
cursor: pointer;
color: #666;
transition: color 0.2s;
}
.back-icon:hover {
color: #1976d2;
}
.title-with-action {
display: flex;
align-items: center;
gap: 8px;
}
/* ===== Category cards ===== */
.categories-grid {
display: flex;
flex-direction: column;
gap: 12px;
padding: 8px 0;
}
.category-card {
display: flex;
align-items: center;
gap: 16px;
padding: 18px 20px;
border-radius: 10px;
border: 1px solid #e0e0e0;
border-left: 5px solid;
cursor: pointer;
transition: all 0.2s ease;
background: #fff;
}
.category-card:hover {
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
transform: translateX(4px);
}
.category-icon {
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
border-radius: 12px;
flex-shrink: 0;
}
.category-icon mat-icon {
color: #fff;
font-size: 26px;
width: 26px;
height: 26px;
}
.category-info {
flex: 1;
}
.category-info h3 {
margin: 0 0 4px 0;
font-size: 15px;
font-weight: 600;
color: #333;
}
.category-info p {
margin: 0;
font-size: 13px;
color: #777;
}
.category-arrow {
color: #bbb;
transition: transform 0.2s;
}
.category-card:hover .category-arrow {
transform: translateX(4px);
color: #666;
}
.info-icon {
color: #90a4ae;
}
/* ===== Info panel (for assistant-required categories) ===== */
.info-panel {
display: flex;
flex-direction: column;
align-items: center;
padding: 24px 16px;
text-align: center;
}
.info-panel-icon .big-info-icon {
font-size: 56px;
width: 56px;
height: 56px;
margin-bottom: 16px;
opacity: 0.8;
}
.info-panel-content {
max-width: 520px;
}
.info-panel-content h3 {
font-size: 18px;
font-weight: 600;
color: #333;
margin: 0 0 12px 0;
}
.info-panel-content > p {
font-size: 14px;
color: #666;
line-height: 1.6;
margin: 0 0 24px 0;
}
.info-steps {
display: flex;
flex-direction: column;
gap: 14px;
text-align: left;
margin-bottom: 28px;
padding: 20px;
background: #f8f9fa;
border-radius: 10px;
}
.info-step {
display: flex;
align-items: center;
gap: 14px;
font-size: 14px;
color: #444;
}
.step-number-badge {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
background: #1976d2;
color: #fff;
font-weight: 600;
font-size: 13px;
flex-shrink: 0;
}
.info-supported-ops {
text-align: left;
}
.info-supported-label {
font-size: 13px;
font-weight: 600;
color: #555;
margin: 0 0 10px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.info-op-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
margin: 4px 6px 4px 0;
background: #f0f4f8;
border-radius: 20px;
font-size: 13px;
color: #444;
}
.info-op-chip mat-icon {
font-size: 18px;
width: 18px;
height: 18px;
}
/* ===== Action selector within category ===== */
.actions-grid {
display: flex;
flex-direction: column;
gap: 12px;
padding: 8px 0;
}
.actions-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.action-card {
display: flex;
align-items: center;
gap: 14px;
padding: 16px 20px;
border-radius: 8px;
border: 1px solid #e0e0e0;
border-left: 4px solid;
cursor: pointer;
transition: all 0.2s ease;
background: #fff;
font-size: 15px;
font-weight: 500;
color: #333;
}
.action-card:hover {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transform: translateX(4px);
}
.action-card mat-icon:first-child {
font-size: 24px;
width: 24px;
height: 24px;
}
.action-card span {
flex: 1;
}
/* ===== Form sections ===== */
.action-form {
padding: 8px 0;
}
.order-field {
width: 200px;
margin-bottom: 16px;
}
.form-section {
margin-top: 8px;
}
.full-width {
width: 100%;
}
.radio-row {
display: flex;
gap: 24px;
margin-bottom: 20px;
padding: 12px 16px;
background-color: #f8f9fa;
border-radius: 8px;
}
/* ===== System action info ===== */
.system-action-info {
display: flex;
flex-direction: column;
align-items: center;
padding: 32px 16px;
text-align: center;
}
.system-action-info .big-icon {
font-size: 48px;
width: 48px;
height: 48px;
margin-bottom: 16px;
}
.system-action-info p {
color: #666;
font-size: 14px;
max-width: 400px;
}
/* ===== Script section ===== */
.script-type-selector {
margin-bottom: 16px;
}
.new-command-container {
display: flex;
flex-direction: column;
gap: 10px;
padding: 15px;
background-color: #eaeff6;
border: 1px solid #ddd;
border-radius: 8px;
}
.new-command-container textarea {
font-family: monospace;
resize: vertical;
}
.script-container {
gap: 20px;
padding: 20px;
background-color: #eaeff6;
border-radius: 12px;
margin-top: 12px;
}
.script-content {
flex: 2;
min-width: 60%;
}
.script-params {
flex: 1;
min-width: 35%;
}
.script-preview {
background-color: #f4f4f4;
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
font-family: monospace;
white-space: pre-wrap;
min-height: 50px;
}
/* ===== Action buttons ===== */
.action-container {
display: flex;
justify-content: flex-end;
gap: 1em;
padding: 1.5em;
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
.radio-row {
flex-direction: column;
gap: 12px;
}
.info-steps {
padding: 14px;
}
}