Skip to content

Commit 83fdca5

Browse files
committed
pull css out of dependency view into main.css
1 parent 2b9357c commit 83fdca5

File tree

2 files changed

+83
-82
lines changed

2 files changed

+83
-82
lines changed

vscode-wpilib/resources/media/main.css

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,86 @@ button:disabled {
337337
opacity: 0.5;
338338
cursor: not-allowed;
339339
}
340+
341+
.uninstall-button .vscode-select select {
342+
height: 24px;
343+
box-sizing: border-box;
344+
line-height: 18px;
345+
padding: 2px 4px;
346+
border-radius: 2px;
347+
}
348+
349+
.uninstall-button button[id*="version-action"],
350+
.uninstall-button button[id*="uninstall-action"],
351+
.uninstall-button button[id*="install-action"] {
352+
width: 72px;
353+
height: 24px;
354+
box-sizing: border-box;
355+
padding: 1px 8px;
356+
display: flex;
357+
align-items: center;
358+
justify-content: center;
359+
}
360+
361+
.uninstall-button {
362+
background-color: var(--vscode-button-secondaryBackground, transparent);
363+
color: var(--vscode-button-secondaryForeground);
364+
border: 1px solid var(--vscode-button-border);
365+
}
366+
367+
.dependency-header {
368+
display: flex;
369+
justify-content: space-between;
370+
align-items: center;
371+
margin-bottom: 8px;
372+
}
373+
.dependency-name {
374+
font-weight: 600;
375+
font-size: 14px;
376+
}
377+
.dependency-version {
378+
margin-left: 8px;
379+
}
380+
.dependency-controls {
381+
display: flex;
382+
align-items: center;
383+
gap: 8px;
384+
}
385+
.dependency-description {
386+
color: var(--vscode-descriptionForeground);
387+
margin-top: 4px;
388+
font-size: 12px;
389+
line-height: 1.4;
390+
}
391+
.section-header {
392+
margin-top: 16px;
393+
margin-bottom: 8px;
394+
font-size: 13px;
395+
font-weight: 600;
396+
color: var(--vscode-foreground);
397+
}
398+
.empty-state {
399+
color: var(--vscode-descriptionForeground);
400+
font-style: italic;
401+
padding: 10px;
402+
text-align: center;
403+
}
404+
.url-install-section {
405+
padding: 10px 0;
406+
}
407+
.url-input-container {
408+
display: flex;
409+
gap: 8px;
410+
margin-bottom: 8px;
411+
align-items: center;
412+
}
413+
#url-input {
414+
flex: 1;
415+
min-width: 50px;
416+
max-width: 100%;
417+
}
418+
.url-help-text {
419+
font-size: 12px;
420+
color: var(--vscode-descriptionForeground);
421+
line-height: 1.4;
422+
}

vscode-wpilib/src/dependencyView.ts

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -699,88 +699,6 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider {
699699
<link rel="stylesheet" href="${vscodeElementsUri}">
700700
<link rel="stylesheet" href="${styleUri}">
701701
<link rel="stylesheet" href="${codiconUri}" id="vscode-codicon-stylesheet">
702-
<style>
703-
.dependency-header {
704-
display: flex;
705-
justify-content: space-between;
706-
align-items: center;
707-
margin-bottom: 8px;
708-
}
709-
.dependency-name {
710-
font-weight: 600;
711-
font-size: 14px;
712-
}
713-
.dependency-version {
714-
margin-left: 8px;
715-
}
716-
.dependency-controls {
717-
display: flex;
718-
align-items: center;
719-
gap: 8px;
720-
}
721-
.dependency-description {
722-
color: var(--vscode-descriptionForeground);
723-
margin-top: 4px;
724-
font-size: 12px;
725-
line-height: 1.4;
726-
}
727-
.section-header {
728-
margin-top: 16px;
729-
margin-bottom: 8px;
730-
font-size: 13px;
731-
font-weight: 600;
732-
color: var(--vscode-foreground);
733-
}
734-
.empty-state {
735-
color: var(--vscode-descriptionForeground);
736-
font-style: italic;
737-
padding: 10px;
738-
text-align: center;
739-
}
740-
.url-install-section {
741-
padding: 10px 0;
742-
}
743-
.url-input-container {
744-
display: flex;
745-
gap: 8px;
746-
margin-bottom: 8px;
747-
align-items: center;
748-
}
749-
#url-input {
750-
flex: 1;
751-
min-width: 50px;
752-
max-width: 100%;
753-
}
754-
.url-help-text {
755-
font-size: 12px;
756-
color: var(--vscode-descriptionForeground);
757-
line-height: 1.4;
758-
}
759-
.uninstall-button {
760-
/* Fix for height mismatch between select and buttons */
761-
.vscode-select select {
762-
height: 24px;
763-
box-sizing: border-box;
764-
line-height: 18px;
765-
padding: 2px 4px;
766-
border-radius: 2px;
767-
}
768-
button[id*="version-action"],
769-
button[id*="uninstall-action"],
770-
button[id*="install-action"] {
771-
width: 72px;
772-
height: 24px;
773-
box-sizing: border-box;
774-
padding: 1px 8px;
775-
display: flex;
776-
align-items: center;
777-
justify-content: center;
778-
}
779-
background-color: var(--vscode-button-secondaryBackground, transparent);
780-
color: var(--vscode-button-secondaryForeground);
781-
border: 1px solid var(--vscode-button-border);
782-
}
783-
</style>
784702
</head>
785703
<body>
786704
<div class="top-line">

0 commit comments

Comments
 (0)