diff --git a/src/ui/scss/main.scss b/src/ui/scss/main.scss index 25595d1..744266d 100644 --- a/src/ui/scss/main.scss +++ b/src/ui/scss/main.scss @@ -105,13 +105,15 @@ header { margin-bottom: 1em; } -input, select, button { +input, +select, +button { font-family: var(--font-family); font-size: inherit; margin: 0; } -input { +input[type="checkbox"] { background: none; border: none; cursor: pointer; @@ -130,6 +132,29 @@ input { } } +input[type="text"] { + background: none; + border: 1px solid var(--color); + color: var(--color); + margin: 0 0.75em; + padding: 4px; + width: 100%; + max-width: 300px; + + &:focus { + background: rgba(0, 0, 0, 0.1); + } + + &[disabled] { + color: var(--color--75); + cursor: default; + } + + &::placeholder { + color: var(--color--50); + } +} + label { cursor : pointer; } @@ -390,6 +415,15 @@ ul { .changelog__list-item--version { margin: 2em 0 0.5em 0; + padding-top: 2em; + + .vscode-dark & { + border-top: 1px solid var(--background-color--lighten-30); + } + + .vscode-light & { + border-top: 1px solid var(--background-color--darken-30); + } } .changelog__scroller { @@ -646,6 +680,13 @@ ul { margin-right: 1em; } +.section__settings--multi { + & >.settings-group { + flex-basis: 100%; + margin-left: 1em; + } +} + .section__header { align-items: baseline; cursor: pointer; @@ -759,6 +800,15 @@ ul { min-width: 300px; } +.settings-group__header { + font-size: 1.2em; + margin: 1em 0 1.5em 0; + + &:first-child { + margin-top: 0; + } +} + .settings-group__hint { color: var(--color--75); font-weight: 200; @@ -776,6 +826,7 @@ ul { flex: 100% 1 1; flex-wrap: wrap; margin-bottom: 0.75em; + position: relative; & input[type="checkbox"] { flex: 16px 0 0; @@ -868,3 +919,5 @@ ul { .nowrap { flex-wrap: nowrap !important; } + +@import 'popup'; \ No newline at end of file diff --git a/src/ui/scss/popup.scss b/src/ui/scss/popup.scss new file mode 100644 index 0000000..b3ef48d --- /dev/null +++ b/src/ui/scss/popup.scss @@ -0,0 +1,100 @@ +.popup { + box-shadow: 0px 0px 28px 0 rgba(0, 0, 0, 0.5); + cursor: default; + padding: 1em; + position: absolute; + top: 46px; + width: 410px; + z-index: 1; + + &:before { + background: transparent; + border: 12px solid transparent; + content: ""; + left: 50%; + position: absolute; + pointer-events: none; + top: -24px; + z-index: 1001; + + .vscode-light & { + border-bottom-color: var(--background-color--darken-075); + } + + .vscode-dark & { + border-bottom-color: var(--background-color--lighten-075); + } + } + + .vscode-light & { + background: var(--background-color--darken-075); + } + + .vscode-dark & { + background: var(--background-color--lighten-075); + } +} + +.token-popup__hint { + color: var(--color--75); + display: inline-block; + font-weight: 200; + margin: 1.25em 0.5em 0 0.25em; +} + +.token-popup__title { + color: var(--color); + font-weight: 400; + margin: 0.25em 0 1em 0; + text-align: center; +} + +.token-popup__table { + border-collapse: collapse; + color: var(--color--75); + table-layout: fixed; + + & tr:nth-child(even) { + .vscode-light & { + background-color: rgba(0, 0, 0, 0.05); + } + + .vscode-dark & { + background-color: rgba(255, 255, 255, 0.04); + } + } + + & td { + padding: 6px; + + i { + opacity: 0.6; + } + } + + & td:first-child { + padding: 6px 12px; + } + + & td:last-child { + padding-right: 12px; + } +} + +.token { + background: var(--link-color--darken-20); + border-bottom: 2px solid var(--link-color--darken-20); + border-radius: 3px; + color: white; + cursor: pointer; + display: inline-block; + padding: 1px 8px !important; + + &:before { + content: "${" + } + + &:after { + content: "}" + } +} diff --git a/src/ui/settings/index.html b/src/ui/settings/index.html index 73f85d3..0c49dd5 100644 --- a/src/ui/settings/index.html +++ b/src/ui/settings/index.html @@ -43,6 +43,75 @@
General GitLens settings — defaults and globals
++ Search for + + gitlens + in the + Keyboard Shortcuts editor to see the shortcuts and to customize them further +
++ + For more advanced customizations open User Settings and search for gitlens +
+When enabled the annotation can be scrolled into view when it is outside the viewport
For more advanced customizations open User Settings and search for gitlens.currentLine @@ -311,6 +410,33 @@
Compacts (deduplicates) matching adjacent blame annotations
+ +Compacts (deduplicates) matching adjacent blame annotations
+For more advanced customizations open User Settings and search for gitlens.blame @@ -389,6 +517,7 @@
Adds on-demand heatmap to the edge of the gutter to show the relative age of a line
+Use the @@ -424,6 +555,7 @@
Adds detailed blame information accessible via hovers
Adds on-demand recent changes annotations to highlight lines changed by the most recent commit
Use the @@ -581,12 +728,41 @@
Adds a Git blame annotation about the current line to the status bar
Avoids clearing the previous blame information when changing lines to reduce status bar "flashing"
For more advanced customizations open User Settings and search for gitlens.statusBar @@ -628,46 +808,13 @@
Search for - - gitlens - in the - Keyboard Shortcuts editor to see the shortcuts and to customize them further
-