Spaces:
Sleeping
Sleeping
File size: 3,092 Bytes
ce25387 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | .command-palette-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.55);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
display: flex;
align-items: flex-start;
justify-content: center;
padding-top: 20vh;
z-index: 1000;
animation: fadeIn 0.15s ease;
}
.command-palette {
width: 520px;
max-height: 400px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), var(--glow-strong);
display: flex;
flex-direction: column;
overflow: hidden;
animation: fadeIn 0.2s ease;
}
.command-palette-input-row {
display: flex;
align-items: center;
border-bottom: 1px solid var(--border-color);
}
.command-palette-input {
flex: 1;
min-width: 0;
padding: 16px 18px;
background: transparent;
border: none;
color: var(--text-primary);
font-size: 16px;
font-family: inherit;
outline: none;
box-sizing: border-box;
}
.command-palette-input::placeholder {
color: var(--text-faint);
}
.command-palette-list {
flex: 1;
overflow-y: auto;
padding: 6px;
}
.command-palette-item {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 10px 12px;
background: transparent;
border: none;
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 13px;
text-align: left;
cursor: pointer;
font-family: inherit;
border-left: 2px solid transparent;
transition: background 0.2s ease, border-color 0.2s ease;
gap: 8px;
}
.command-palette-item:hover {
background: var(--bg-hover);
}
.command-palette-item.selected {
background: var(--bg-hover);
border-left-color: var(--accent);
}
.command-palette-item-left {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 1;
}
.command-palette-category {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-faint);
min-width: 56px;
flex-shrink: 0;
}
.command-palette-label {
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.command-palette-item-right {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
.command-palette-hint {
font-size: 11px;
color: var(--text-faint);
font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
white-space: nowrap;
}
.command-palette-check {
font-size: 14px;
color: var(--accent);
flex-shrink: 0;
width: 18px;
text-align: center;
}
.command-palette-empty {
padding: 24px 16px;
text-align: center;
color: var(--text-faint);
font-size: 13px;
}
.command-palette-back {
background: none;
border: none;
color: var(--text-faint);
cursor: pointer;
font-size: 16px;
font-family: inherit;
padding: 8px 14px;
flex-shrink: 0;
line-height: 1;
transition: color 0.15s ease;
}
.command-palette-back:hover {
color: var(--text-primary);
}
.command-palette-rename-hint {
padding: 12px 18px;
font-size: 12px;
color: var(--text-faint);
text-align: center;
}
|