|
1 | 1 | @use "../abstracts/mixins";
|
2 | 2 |
|
3 |
| -.jenkins-command-palette__dialog { |
4 |
| - &::backdrop { |
5 |
| - background: var(--command-palette-backdrop-background); |
6 |
| - backdrop-filter: contrast(0.7) brightness(0.9) saturate(1.25) blur(3px); |
7 |
| - animation: jenkins-modal-backdrop-animate-in 0.3s; |
8 |
| - } |
9 |
| -} |
10 |
| - |
11 | 3 | .jenkins-command-palette__dialog {
|
12 | 4 | background: none;
|
13 | 5 | border: none;
|
|
17 | 9 | max-width: 100vw !important;
|
18 | 10 | margin: 0 !important;
|
19 | 11 | padding: 0 !important;
|
| 12 | + user-select: none; |
| 13 | + |
| 14 | + &::backdrop { |
| 15 | + background: var(--command-palette-backdrop-background); |
| 16 | + backdrop-filter: contrast(0.7) brightness(0.9) saturate(1.25) blur(3px); |
| 17 | + animation: jenkins-dialog-backdrop-animate-in 0.1s linear; |
| 18 | + } |
| 19 | + |
| 20 | + &[open] { |
| 21 | + animation: command-palette-animate-in 0.1s cubic-bezier(0, 0.68, 0.5, 1.5); |
| 22 | + } |
| 23 | + |
| 24 | + &[closing] { |
| 25 | + animation: command-palette-animate-out 0.1s linear; |
| 26 | + |
| 27 | + &::backdrop { |
| 28 | + animation: jenkins-dialog-backdrop-animate-out 0.1s linear; |
| 29 | + } |
| 30 | + } |
| 31 | +} |
| 32 | + |
| 33 | +@keyframes command-palette-animate-in { |
| 34 | + from { |
| 35 | + translate: 0 4px; |
| 36 | + scale: 98.5%; |
| 37 | + opacity: 0; |
| 38 | + transform: rotateX(30deg); |
| 39 | + } |
| 40 | +} |
| 41 | + |
| 42 | +@keyframes command-palette-animate-out { |
| 43 | + to { |
| 44 | + scale: 98.5%; |
| 45 | + opacity: 0; |
| 46 | + } |
20 | 47 | }
|
21 | 48 |
|
22 | 49 | .jenkins-command-palette__wrapper {
|
|
40 | 67 | --search-bar-height: 3rem !important;
|
41 | 68 |
|
42 | 69 | background: transparent;
|
43 |
| - box-shadow: |
44 |
| - 0 0 0 20px transparent, |
45 |
| - var(--command-palette-inset-shadow); |
| 70 | + box-shadow: var(--command-palette-inset-shadow); |
46 | 71 | margin-bottom: 1.5rem;
|
47 | 72 | border-radius: 1rem;
|
48 | 73 | transition: var(--standard-transition);
|
|
71 | 96 | border-radius: 1rem;
|
72 | 97 | backdrop-filter: var(--command-palette-results-backdrop-filter);
|
73 | 98 | box-shadow: var(--command-palette-inset-shadow);
|
74 |
| - height: 0; |
| 99 | + // If set to 0, Safari won't always show the backdrop-filter |
| 100 | + height: 1px; |
75 | 101 | transition: height var(--standard-transition);
|
76 | 102 | overflow: hidden;
|
77 | 103 | will-change: height;
|
|
83 | 109 | padding: 0.5rem;
|
84 | 110 |
|
85 | 111 | &__heading {
|
86 |
| - font-weight: 600; |
87 |
| - font-size: 0.85rem; |
| 112 | + font-weight: 500; |
| 113 | + font-size: 0.875rem; |
88 | 114 | margin: 0;
|
89 | 115 | padding: 0.75rem 0.75rem 0.625rem;
|
90 | 116 | color: var(--text-color-secondary);
|
|
113 | 139 | justify-content: flex-start;
|
114 | 140 | background: transparent;
|
115 | 141 | padding: 0.75rem;
|
116 |
| - border-radius: 0.66rem; |
117 |
| - font-weight: 600; |
| 142 | + border-radius: 0.5rem; |
118 | 143 | cursor: pointer;
|
119 | 144 | color: var(--text-color) !important;
|
120 | 145 | transition: var(--standard-transition);
|
|
132 | 157 | display: flex;
|
133 | 158 | align-items: center;
|
134 | 159 | justify-content: center;
|
135 |
| - width: 1.4rem; |
136 |
| - height: 1.4rem; |
137 |
| - margin-right: 12.5px; |
| 160 | + width: 1.375rem; |
| 161 | + height: 1.375rem; |
| 162 | + margin-right: 0.75rem; |
138 | 163 | overflow: hidden;
|
139 | 164 | pointer-events: none;
|
140 | 165 | color: var(--text-color);
|
141 | 166 |
|
142 | 167 | svg,
|
143 | 168 | img {
|
144 |
| - width: 1.2rem; |
145 |
| - height: 1.2rem; |
| 169 | + width: 1.125rem; |
| 170 | + height: 1.125rem; |
146 | 171 | }
|
147 | 172 | }
|
148 | 173 |
|
|
163 | 188 | }
|
164 | 189 |
|
165 | 190 | &__info {
|
166 |
| - font-weight: 600; |
167 |
| - font-size: 0.85rem; |
| 191 | + font-size: 0.875rem; |
168 | 192 | margin: 0;
|
169 |
| - padding: 12.5px 12.5px 10px; |
| 193 | + padding: 0 14px; |
| 194 | + line-height: 46px; |
170 | 195 | color: var(--text-color);
|
171 | 196 |
|
172 | 197 | span {
|
|
0 commit comments