frontend/src/assets/css/CreatePodYaml.css
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-content {
background-color: #252526;
border-radius: 4px;
width: 500px;
max-width: 90%;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
border: 1px solid #3c3c3c;
color: #cccccc;
display: flex;
flex-direction: column;
max-height: 90vh;
overflow: hidden;
}
.yaml-editor {
width: 600px;
max-width: 90%;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
border-bottom: 1px solid #3c3c3c;
background-color: #2a2a2a;
flex-shrink: 0;
}
.modal-header h3 {
margin: 0;
font-size: 14px;
font-weight: 500;
color: #cccccc;
}
.close-button {
background: none;
border: none;
font-size: 18px;
cursor: pointer;
color: #858585;
padding: 0;
margin: 0;
line-height: 1;
}
.close-button:hover {
color: #cccccc;
}
.modal-body {
padding: 12px;
flex-grow: 1;
overflow: auto;
}
.modal-footer {
padding: 8px 12px;
border-top: 1px solid #3c3c3c;
display: flex;
justify-content: flex-end;
gap: 8px;
background-color: #2a2a2a;
flex-shrink: 0;
}
.yaml-container {
width: 100%;
height: 300px;
position: relative;
}
.yaml-textarea {
width: 100%;
height: 100%;
padding: 10px;
border: 1px solid #3c3c3c;
border-radius: 2px;
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
font-size: 13px;
line-height: 1.5;
resize: none;
background-color: #1e1e1e;
color: #cccccc;
box-sizing: border-box;
overflow: auto;
}
.yaml-textarea:focus {
outline: none;
border-color: #0e639c;
}
.error-message {
color: #f44336;
margin-bottom: 12px;
padding: 8px 12px;
background-color: rgba(244, 67, 54, 0.1);
border-radius: 2px;
border-left: 3px solid #f44336;
font-size: 13px;
}
.cancel-button {
padding: 4px 10px;
background-color: #333333;
border: 1px solid #3c3c3c;
border-radius: 2px;
cursor: pointer;
font-size: 12px;
color: #cccccc;
min-width: 70px;
}
.cancel-button:hover {
background-color: #3c3c3c;
}
.create-button {
padding: 4px 10px;
background-color: #0e639c;
color: white;
border: none;
border-radius: 2px;
cursor: pointer;
font-size: 12px;
min-width: 70px;
}
.create-button:hover {
background-color: #1177bb;
}
.create-button:disabled, .cancel-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Add placeholder styling to match the dark theme */
.yaml-textarea::placeholder {
color: #666666;
opacity: 1;
}