-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make UI vscode styled and refactor webview js (#730)
- Loading branch information
1 parent
6dd5363
commit b9ceadd
Showing
14 changed files
with
1,234 additions
and
1,484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"endOfLine": "crlf", | ||
"trailingComma": "es5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
/* This file contains cherrypicked icons from codicons for size */ | ||
/* Currently built with everything but the below removed from mappings | ||
- trash | ||
*/ | ||
|
||
@font-face { | ||
font-family: "codicon"; | ||
font-display: block; | ||
src: url("./codicon.ttf?fb200efcd350cfb53f94163fb5066b25") format("truetype"); | ||
} | ||
|
||
.codicon[class*="codicon-"] { | ||
font: normal normal normal 16px/1 codicon; | ||
display: inline-block; | ||
text-decoration: none; | ||
text-rendering: auto; | ||
text-align: center; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
user-select: none; | ||
-webkit-user-select: none; | ||
-ms-user-select: none; | ||
} | ||
|
||
/*--------------------- | ||
* Modifiers | ||
*-------------------*/ | ||
|
||
@keyframes codicon-spin { | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.codicon-sync.codicon-modifier-spin, | ||
.codicon-loading.codicon-modifier-spin, | ||
.codicon-gear.codicon-modifier-spin { | ||
/* Use steps to throttle FPS to reduce CPU usage */ | ||
animation: codicon-spin 1.5s steps(30) infinite; | ||
} | ||
|
||
.codicon-modifier-disabled { | ||
opacity: 0.5; | ||
} | ||
|
||
.codicon-modifier-hidden { | ||
opacity: 0; | ||
} | ||
|
||
/* custom speed & easing for loading icon */ | ||
.codicon-loading { | ||
animation-duration: 1s !important; | ||
animation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67) !important; | ||
} | ||
|
||
/*--------------------- | ||
* Icons | ||
*-------------------*/ | ||
|
||
.codicon-trash:before { | ||
content: "\ea81"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,53 @@ | ||
body { | ||
background-color: transparent; | ||
.installed-dependency, | ||
.available-dependency { | ||
margin-bottom: 10px; | ||
&:first-of-type { | ||
margin-top: 10px; | ||
} | ||
} | ||
|
||
.color-list { | ||
list-style: none; | ||
padding: 0; | ||
.top-line { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin-bottom: 8px; | ||
&:has(#updateall-action) { | ||
margin-top: 4px; | ||
} | ||
} | ||
|
||
.color-entry { | ||
width: 100%; | ||
display: flex; | ||
margin-bottom: 0.4em; | ||
border: 1px solid var(--vscode-input-border); | ||
#updateall-action { | ||
width: 100%; | ||
} | ||
|
||
.color-preview { | ||
width: 2em; | ||
height: 2em; | ||
.name { | ||
font-weight: 600; | ||
} | ||
|
||
.color-preview:hover { | ||
outline: inset white; | ||
.downloads { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.color-input { | ||
display: block; | ||
flex: 1; | ||
width: 100%; | ||
color: var(--vscode-input-foreground); | ||
background-color: var(--vscode-input-background); | ||
border: none; | ||
padding: 0 0.6em; | ||
.icon { | ||
margin-left: 5px; | ||
} | ||
.details { | ||
margin-top: 5px; | ||
color: var(--vscode-descriptionForeground); | ||
} | ||
.update { | ||
display: flex; | ||
gap: 4px; | ||
} | ||
.uninstall-button { | ||
padding: 4px; | ||
& > vscode-icon { | ||
margin-right: 4px !important; | ||
margin-left: 4px !important; | ||
} | ||
} | ||
|
||
.add-color-button { | ||
display: block; | ||
border: none; | ||
margin: 0 auto; | ||
vscode-collapsible::part(body) { | ||
overflow: visible; | ||
} | ||
|
||
vscode-single-select { | ||
flex-shrink: 2; | ||
} |
Oops, something went wrong.