@buildappolis/env-manager
Version:
Enterprise-grade environment variable management system with encryption, snapshots, and validation
484 lines (408 loc) • 8.58 kB
CSS
/* Environment Manager Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
h1 {
color: #2c3e50;
font-size: 2rem;
font-weight: 700;
}
.auth-status {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: rgba(255, 255, 255, 0.7);
border-radius: 20px;
font-weight: 500;
}
.status-indicator {
font-size: 1.2rem;
}
.section {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 12px;
padding: 24px;
margin-bottom: 20px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.form-group {
margin-bottom: 16px;
}
label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: #2c3e50;
}
input, textarea, select {
width: 100%;
padding: 12px;
border: 2px solid #e1e8ed;
border-radius: 8px;
font-size: 14px;
transition: border-color 0.3s ease;
}
input:focus, textarea:focus, select:focus {
outline: none;
border-color: #667eea;
}
button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.btn-secondary {
background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}
.btn-danger {
background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}
.tabs {
display: flex;
border-bottom: 2px solid #e1e8ed;
margin-bottom: 20px;
}
.tab-button {
background: none;
border: none;
padding: 12px 24px;
font-size: 14px;
font-weight: 500;
color: #7f8c8d;
cursor: pointer;
border-bottom: 2px solid transparent;
transition: all 0.3s ease;
}
.tab-button.active {
color: #667eea;
border-bottom-color: #667eea;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.filters {
display: flex;
gap: 12px;
margin-bottom: 20px;
}
.filters input, .filters select {
flex: 1;
}
.variables-list, .snapshots-list {
display: grid;
gap: 12px;
}
.variable-item, .snapshot-item {
background: rgba(255, 255, 255, 0.7);
border: 1px solid #e1e8ed;
border-radius: 8px;
padding: 16px;
display: flex;
justify-content: space-between;
align-items: center;
}
.variable-info, .snapshot-info {
flex: 1;
}
.variable-name, .snapshot-name {
font-weight: 600;
color: #2c3e50;
margin-bottom: 4px;
}
.variable-value {
font-family: 'Monaco', 'Menlo', monospace;
background: rgba(0, 0, 0, 0.05);
padding: 4px 8px;
border-radius: 4px;
margin-bottom: 4px;
word-break: break-all;
}
.variable-meta, .snapshot-meta {
font-size: 12px;
color: #7f8c8d;
}
.variable-actions, .snapshot-actions {
display: flex;
gap: 8px;
}
.variable-actions button, .snapshot-actions button {
padding: 6px 12px;
font-size: 12px;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
}
.modal-content {
background: white;
margin: 5% auto;
padding: 24px;
border-radius: 12px;
width: 90%;
max-width: 500px;
position: relative;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.close {
position: absolute;
right: 16px;
top: 16px;
font-size: 24px;
font-weight: bold;
cursor: pointer;
color: #7f8c8d;
}
.close:hover {
color: #2c3e50;
}
.form-actions {
display: flex;
gap: 12px;
justify-content: flex-end;
margin-top: 20px;
}
.project-status {
display: grid;
gap: 16px;
}
.status-group {
background: rgba(255, 255, 255, 0.7);
border: 1px solid #e1e8ed;
border-radius: 8px;
padding: 16px;
}
.status-group.valid {
border-color: #27ae60;
background: rgba(39, 174, 96, 0.1);
}
.status-group.invalid {
border-color: #e74c3c;
background: rgba(231, 76, 60, 0.1);
}
.group-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.group-name {
font-weight: 600;
color: #2c3e50;
}
.group-status {
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
font-weight: 500;
}
.group-status.valid {
background: #27ae60;
color: white;
}
.group-status.invalid {
background: #e74c3c;
color: white;
}
.variable-status {
display: grid;
gap: 8px;
margin-top: 12px;
}
.variable-status-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
background: rgba(255, 255, 255, 0.5);
border-radius: 6px;
font-size: 14px;
}
.variable-status-item.valid {
border-left: 4px solid #27ae60;
}
.variable-status-item.invalid {
border-left: 4px solid #e74c3c;
}
.status-icon {
font-size: 16px;
}
.variable-status-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px;
background: rgba(255, 255, 255, 0.5);
border-radius: 6px;
font-size: 14px;
margin-bottom: 8px;
}
.variable-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.variable-name {
font-weight: 600;
color: #2c3e50;
}
.variable-errors {
font-size: 12px;
color: #e74c3c;
font-style: italic;
}
.variable-actions {
display: flex;
align-items: center;
gap: 8px;
}
.btn-quick-add, .btn-quick-fix {
padding: 4px 8px;
font-size: 12px;
border-radius: 4px;
border: none;
cursor: pointer;
font-weight: 500;
transition: all 0.2s ease;
}
.btn-quick-add {
background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
color: white;
}
.btn-quick-add:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}
.btn-quick-fix {
background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
color: white;
}
.btn-quick-fix:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}
/* Export functionality styles */
.header-actions {
display: flex;
gap: 12px;
align-items: center;
}
.btn-warning {
background: linear-gradient(135deg, #f39c12, #e67e22);
color: white;
border: none;
padding: 10px 16px;
border-radius: 6px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-warning:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}
.warning-notice {
background: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 8px;
padding: 16px;
margin-bottom: 20px;
}
.warning-notice p {
margin-bottom: 8px;
color: #856404;
}
.warning-notice p:last-child {
margin-bottom: 0;
}
.warning-notice code {
background: #f8f9fa;
padding: 2px 6px;
border-radius: 4px;
font-family: 'Monaco', 'Menlo', monospace;
font-size: 0.9em;
}
@media (max-width: 768px) {
.container {
padding: 12px;
}
header {
flex-direction: column;
gap: 12px;
text-align: center;
}
.filters {
flex-direction: column;
}
.variable-item, .snapshot-item {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.variable-actions, .snapshot-actions {
align-self: stretch;
justify-content: flex-end;
}
.header-actions {
flex-direction: column;
width: 100%;
}
.header-actions button {
width: 100%;
}
}