All files / src/web/webviewHtml/styles interactions.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 2051x                                                                                                                                                                                                                                                                                                                                                                                                                        
export const PROPERTY_INTERACTION_STYLES = String.raw`.toast-container {
	position: fixed;
	bottom: 16px;
	right: 16px;
	z-index: 100;
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
	pointer-events: none;
}
 
.toast {
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.4;
	max-width: 340px;
	pointer-events: auto;
	animation: toast-in 0.2s ease-out;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
 
.toast.toast-info {
	background: var(--vscode-editorInfo-foreground, #3794ff);
	color: #fff;
}
 
.toast.toast-success {
	background: var(--vscode-testing-iconPassed, #73c991);
	color: #000;
}
 
.toast.toast-error {
	background: var(--vscode-errorForeground, #f44);
	color: #fff;
}
 
.toast.toast-out {
	animation: toast-out 0.15s ease-in forwards;
}
 
@keyframes toast-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
 
@keyframes toast-out {
	from { opacity: 1; transform: translateY(0); }
	to { opacity: 0; transform: translateY(8px); }
}
 
.field textarea {
	resize: vertical;
	min-height: 54px;
	overflow: hidden;
}
 
.sidebar-search {
	padding: 6px 14px 4px;
	background: var(--panel);
	position: sticky;
	top: 33px;
	z-index: 2;
}
 
.sidebar-search input {
	width: 100%;
	padding: 4px 8px;
	border-radius: 4px;
	border: 1px solid var(--input-border);
	background: var(--input);
	color: var(--text);
	font: inherit;
	font-size: 12px;
}
 
.sidebar-search input::placeholder {
	color: var(--muted);
}
 
.sidebar-search input:focus {
	outline: 1px solid var(--vscode-focusBorder);
	outline-offset: -1px;
}
 
.property-group.search-hidden {
	display: none;
}
 
#status::before {
	margin-right: 4px;
}
 
#status[data-state="idle"]::before {
	content: '\2713';
}
 
#status[data-state="error"]::before {
	content: '\26A0';
}
 
#status[data-state="error"] {
	color: var(--vscode-errorForeground);
}
 
.field-error {
	font-size: 11px;
	color: var(--vscode-errorForeground, #f44);
	margin-top: 2px;
}
 
.field input.invalid,
.field textarea.invalid {
	border-color: var(--vscode-errorForeground, #f44);
}
 
.file-references {
	display: grid;
	gap: 6px;
	margin-top: 4px;
	min-width: 0;
}
 
.file-ref-icon {
	flex-shrink: 0;
	opacity: 0.8;
	position: relative;
	top: 1px;
}
 
.file-reference-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	border-radius: 4px;
	background: color-mix(in srgb, var(--vscode-textLink-foreground, #3794ff) 12%, transparent);
	color: var(--vscode-textLink-foreground, #3794ff);
	font-size: 11px;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid color-mix(in srgb, var(--vscode-textLink-foreground, #3794ff) 25%, transparent);
}
 
.file-reference-link:hover {
	background: color-mix(in srgb, var(--vscode-textLink-foreground, #3794ff) 20%, transparent);
	text-decoration: underline;
}
 
.file-browse-btn {
	margin-top: 4px;
	padding: 4px 10px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 11px;
	cursor: pointer;
}
 
.file-browse-btn:hover {
	background: color-mix(in srgb, var(--text) 10%, transparent);
}
 
.properties-actions {
	display: flex;
	justify-content: flex-start;
}
 
.drag-handle {
	cursor: grab;
	color: var(--muted);
	font-size: 14px;
	line-height: 1;
	user-select: none;
	padding: 2px 4px;
	border-radius: 3px;
	flex-shrink: 0;
}
 
.drag-handle:hover {
	background: color-mix(in srgb, var(--text) 10%, transparent);
	color: var(--text);
}
 
.field-array-item[draggable="true"] {
	transition: opacity 0.15s, border-color 0.15s;
}
 
.field-array-item.dragging {
	opacity: 0.4;
}
 
.field-array-item.drag-over {
	border-color: var(--vscode-focusBorder);
	box-shadow: 0 0 0 1px var(--vscode-focusBorder);
}`;