163 lines
2.7 KiB
CSS
163 lines
2.7 KiB
CSS
/* ============================================
|
|
KEYS - API Key Management Styles
|
|
============================================ */
|
|
|
|
/* Key List */
|
|
.keys-list {
|
|
list-style: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
/* Key Cards */
|
|
.key-card {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
transition: all 0.2s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.key-card:hover {
|
|
border-color: var(--accent);
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.key-card.selected {
|
|
background: var(--bg-tertiary);
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px var(--accent);
|
|
}
|
|
|
|
.key-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.key-name {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
font-size: 0.9375rem;
|
|
}
|
|
|
|
/* Key Scope Badge */
|
|
.key-scope {
|
|
padding: 0.25rem 0.625rem;
|
|
border-radius: 12px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.key-scope.admin {
|
|
background: var(--error);
|
|
color: white;
|
|
}
|
|
|
|
.key-scope.user {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.key-scope.register {
|
|
background: var(--success);
|
|
color: white;
|
|
}
|
|
|
|
/* Key Info */
|
|
.key-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
font-size: 0.8125rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.key-value {
|
|
font-family: monospace;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
word-break: break-all;
|
|
}
|
|
|
|
/* Key Form */
|
|
.key-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Key Detail */
|
|
.key-detail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.key-detail-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.key-detail-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.key-detail-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.key-detail-label {
|
|
font-size: 0.875rem;
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.key-detail-value {
|
|
font-size: 0.875rem;
|
|
color: var(--text-primary);
|
|
text-align: right;
|
|
word-break: break-all;
|
|
font-family: monospace;
|
|
}
|
|
|
|
/* Copy Button */
|
|
.copy-button {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border);
|
|
border-radius: 4px;
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.copy-button:hover {
|
|
background: var(--bg-secondary);
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|