frontend/src/assets/css/PersistentVolumes.css
/*
* NOTE(rene): generated from LLM inline with vuejs. I've split these out into
* dedicated PersistentVolume.css file but will pick and choose resources to
* copy back into CreateResource.css.
*/
.guided-creator {
max-width: 800px;
width: 95vw;
max-height: 90vh;
overflow-y: auto;
}
.volume-type-selector {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
margin-bottom: 1rem;
}
.volume-type-option {
border: 2px solid #444;
border-radius: 8px;
padding: 1rem;
cursor: pointer;
transition: all 0.2s ease;
background-color: #2d2d2d;
}
.volume-type-option:hover {
border-color: #007acc;
background-color: #333;
}
.volume-type-option.selected {
border-color: #007acc;
background-color: #1a3a5c;
}
.type-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.type-name {
font-weight: 600;
color: #ffffff;
}
.type-badge {
padding: 0.25rem 0.5rem;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
}
.type-badge.local {
background-color: #28a745;
color: white;
}
.type-badge.network {
background-color: #007acc;
color: white;
}
.type-badge.cloud {
background-color: #6f42c1;
color: white;
}
.type-description {
color: #ccc;
font-size: 0.9rem;
margin: 0;
line-height: 1.4;
}
.volume-config {
background-color: #333;
border: 1px solid #444;
border-radius: 6px;
padding: 1rem;
}
.storage-input-group {
display: flex;
gap: 0.5rem;
}
.storage-input-group input {
flex: 1;
}
.storage-input-group select {
width: 80px;
padding: 0.5rem;
border: 1px solid #444;
border-radius: 4px;
background-color: #2d2d2d;
color: #ffffff;
}
.subsection {
margin-bottom: 1.5rem;
}
.subsection:last-child {
margin-bottom: 0;
}
.subsection h5 {
margin: 0 0 0.75rem 0;
color: #ffffff;
font-size: 1rem;
}
.checkbox-group,
.radio-group {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.checkbox-label,
.radio-label {
display: flex;
flex-direction: column;
gap: 0.25rem;
cursor: pointer;
}
.checkbox-label input,
.radio-label input {
width: auto;
margin-right: 0.5rem;
}
.label-row {
display: flex;
gap: 0.5rem;
align-items: flex-start;
margin-bottom: 0.5rem;
}
.key-field,
.value-field {
flex: 1;
margin-bottom: 0;
}
.remove-button {
background-color: #dc3545;
border: 1px solid #dc3545;
color: white;
border-radius: 4px;
width: 30px;
height: 30px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
margin-top: 1.5rem;
}
.remove-button:hover:not(:disabled) {
background-color: #c82333;
}
.remove-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.add-button {
background-color: #28a745;
border: 1px solid #28a745;
color: white;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
margin-top: 0.5rem;
}
.add-button:hover:not(:disabled) {
background-color: #218838;
}
.add-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Responsive design */
@media (max-width: 768px) {
.volume-type-selector {
grid-template-columns: 1fr;
}
.label-row {
flex-direction: column;
gap: 0.25rem;
}
.remove-button {
margin-top: 0.5rem;
align-self: flex-start;
}
}