Skip to content

Commit d9174de

Browse files
committed
Adds many new settings to the UI
Adds new General section with data/time settings Moves Keyboard Shortcuts to General Adds annotation format settings with popup UI Adds text input support to settings
1 parent dd57750 commit d9174de

File tree

4 files changed

+411
-43
lines changed

4 files changed

+411
-43
lines changed

src/ui/scss/main.scss

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ header {
105105
margin-bottom: 1em;
106106
}
107107

108-
input, select, button {
108+
input,
109+
select,
110+
button {
109111
font-family: var(--font-family);
110112
font-size: inherit;
111113
margin: 0;
112114
}
113115

114-
input {
116+
input[type="checkbox"] {
115117
background: none;
116118
border: none;
117119
cursor: pointer;
@@ -130,6 +132,29 @@ input {
130132
}
131133
}
132134

135+
input[type="text"] {
136+
background: none;
137+
border: 1px solid var(--color);
138+
color: var(--color);
139+
margin: 0 0.75em;
140+
padding: 4px;
141+
width: 100%;
142+
max-width: 300px;
143+
144+
&:focus {
145+
background: rgba(0, 0, 0, 0.1);
146+
}
147+
148+
&[disabled] {
149+
color: var(--color--75);
150+
cursor: default;
151+
}
152+
153+
&::placeholder {
154+
color: var(--color--50);
155+
}
156+
}
157+
133158
label {
134159
cursor : pointer;
135160
}
@@ -390,6 +415,15 @@ ul {
390415

391416
.changelog__list-item--version {
392417
margin: 2em 0 0.5em 0;
418+
padding-top: 2em;
419+
420+
.vscode-dark & {
421+
border-top: 1px solid var(--background-color--lighten-30);
422+
}
423+
424+
.vscode-light & {
425+
border-top: 1px solid var(--background-color--darken-30);
426+
}
393427
}
394428

395429
.changelog__scroller {
@@ -646,6 +680,13 @@ ul {
646680
margin-right: 1em;
647681
}
648682

683+
.section__settings--multi {
684+
& >.settings-group {
685+
flex-basis: 100%;
686+
margin-left: 1em;
687+
}
688+
}
689+
649690
.section__header {
650691
align-items: baseline;
651692
cursor: pointer;
@@ -759,6 +800,15 @@ ul {
759800
min-width: 300px;
760801
}
761802

803+
.settings-group__header {
804+
font-size: 1.2em;
805+
margin: 1em 0 1.5em 0;
806+
807+
&:first-child {
808+
margin-top: 0;
809+
}
810+
}
811+
762812
.settings-group__hint {
763813
color: var(--color--75);
764814
font-weight: 200;
@@ -776,6 +826,7 @@ ul {
776826
flex: 100% 1 1;
777827
flex-wrap: wrap;
778828
margin-bottom: 0.75em;
829+
position: relative;
779830

780831
& input[type="checkbox"] {
781832
flex: 16px 0 0;
@@ -868,3 +919,5 @@ ul {
868919
.nowrap {
869920
flex-wrap: nowrap !important;
870921
}
922+
923+
@import 'popup';

src/ui/scss/popup.scss

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
.popup {
2+
box-shadow: 0px 0px 28px 0 rgba(0, 0, 0, 0.5);
3+
cursor: default;
4+
padding: 1em;
5+
position: absolute;
6+
top: 46px;
7+
width: 410px;
8+
z-index: 1;
9+
10+
&:before {
11+
background: transparent;
12+
border: 12px solid transparent;
13+
content: "";
14+
left: 50%;
15+
position: absolute;
16+
pointer-events: none;
17+
top: -24px;
18+
z-index: 1001;
19+
20+
.vscode-light & {
21+
border-bottom-color: var(--background-color--darken-075);
22+
}
23+
24+
.vscode-dark & {
25+
border-bottom-color: var(--background-color--lighten-075);
26+
}
27+
}
28+
29+
.vscode-light & {
30+
background: var(--background-color--darken-075);
31+
}
32+
33+
.vscode-dark & {
34+
background: var(--background-color--lighten-075);
35+
}
36+
}
37+
38+
.token-popup__hint {
39+
color: var(--color--75);
40+
display: inline-block;
41+
font-weight: 200;
42+
margin: 1.25em 0.5em 0 0.25em;
43+
}
44+
45+
.token-popup__title {
46+
color: var(--color);
47+
font-weight: 400;
48+
margin: 0.25em 0 1em 0;
49+
text-align: center;
50+
}
51+
52+
.token-popup__table {
53+
border-collapse: collapse;
54+
color: var(--color--75);
55+
table-layout: fixed;
56+
57+
& tr:nth-child(even) {
58+
.vscode-light & {
59+
background-color: rgba(0, 0, 0, 0.05);
60+
}
61+
62+
.vscode-dark & {
63+
background-color: rgba(255, 255, 255, 0.04);
64+
}
65+
}
66+
67+
& td {
68+
padding: 6px;
69+
70+
i {
71+
opacity: 0.6;
72+
}
73+
}
74+
75+
& td:first-child {
76+
padding: 6px 12px;
77+
}
78+
79+
& td:last-child {
80+
padding-right: 12px;
81+
}
82+
}
83+
84+
.token {
85+
background: var(--link-color--darken-20);
86+
border-bottom: 2px solid var(--link-color--darken-20);
87+
border-radius: 3px;
88+
color: white;
89+
cursor: pointer;
90+
display: inline-block;
91+
padding: 1px 8px !important;
92+
93+
&:before {
94+
content: "${"
95+
}
96+
97+
&:after {
98+
content: "}"
99+
}
100+
}

0 commit comments

Comments
 (0)