Skip to content

Commit fb5eb6f

Browse files
committed
feat: minor sidebar ui tweaks and improved input elm
1 parent 170da7e commit fb5eb6f

File tree

3 files changed

+36
-25
lines changed

3 files changed

+36
-25
lines changed

src/components/sidebar/style.scss

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ body.no-animation {
44
}
55
}
66

7-
.page-replacement~#sidebar {
7+
.page-replacement ~ #sidebar {
88
opacity: 0;
99
}
1010

@@ -24,7 +24,7 @@ body.no-animation {
2424
overflow: hidden;
2525
box-sizing: border-box;
2626

27-
&+.mask {
27+
& + .mask {
2828
z-index: 108;
2929
}
3030

@@ -55,19 +55,22 @@ body.no-animation {
5555
}
5656

5757
.apps {
58-
width: 40px;
59-
min-width: 40px;
58+
width: 45px;
59+
min-width: 45px;
6060
height: 100%;
6161
background-color: rgba(0, 0, 0, 0.2);
6262
overflow: auto;
63+
padding: 10px 0;
6364

6465
.icon {
65-
height: 40px;
66-
width: 40px;
66+
height: 35px;
67+
width: 35px;
6768
color: currentColor;
6869
font-size: 1em;
69-
border-radius: 0;
70+
border-radius: 12px;
7071
opacity: 0.5;
72+
transition: all 0.2s ease;
73+
margin: 0 auto;
7174

7275
&.active {
7376
opacity: 1;
@@ -83,7 +86,7 @@ body.no-animation {
8386
width: 100%;
8487
height: 100%;
8588

86-
>.list {
89+
> .list {
8790
width: 100%;
8891
max-width: 100%;
8992
max-height: 100%;
@@ -101,7 +104,7 @@ body.no-animation {
101104

102105
&.notice {
103106
&::before {
104-
content: '\2022';
107+
content: "\2022";
105108
color: rgb(212, 250, 150);
106109
display: flex;
107110
align-items: center;
@@ -118,26 +121,26 @@ body.no-animation {
118121
font-size: 1em;
119122
}
120123

121-
>ul {
124+
> ul {
122125
overflow: auto;
123126
width: 100%;
124127
max-width: 100%;
125128
max-height: calc(100% - 30px);
126129
height: calc(100% - 30px);
127130

128131
.tile:active {
129-
>*:nth-child(2) {
132+
> *:nth-child(2) {
130133
color: rgb(255, 215, 0);
131134
}
132135
}
133136

134137
li {
135-
>*:nth-child(2) {
138+
> *:nth-child(2) {
136139
color: currentColor;
137140
}
138141

139142
&.active {
140-
>*:nth-child(2) {
143+
> *:nth-child(2) {
141144
color: rgb(255, 215, 0);
142145
}
143146
}
@@ -159,18 +162,24 @@ body.no-animation {
159162
input {
160163
color: rgb(255, 255, 255);
161164
color: var(--primary-text-color);
162-
border: solid 1px currentColor;
163-
border-radius: 4px;
165+
border: solid 1px color-mix(in srgb, var(--border-color) 70%, transparent);
166+
border-radius: 8px;
164167
height: 30px;
165168
width: 90%;
166-
padding: 0 5px;
169+
padding: 0 12px;
167170
text-indent: 0;
168-
margin-bottom: 10px;
171+
margin-bottom: 12px;
169172
background: transparent;
173+
transition: all 0.2s ease;
170174

171175
&:focus {
172-
border-color: rgb(255, 215, 0) !important;
173-
border-color: var(--accent-color) !important;
176+
border-color: var(--border-color) !important;
177+
background: color-mix(in srgb, var(--secondary-color) 10%, transparent);
178+
box-shadow: 0 0 0 2px var(---box-shadow-color);
179+
}
180+
181+
&::placeholder {
182+
opacity: 0.5;
174183
}
175184
}
176185

@@ -200,4 +209,4 @@ body.no-animation {
200209
font-weight: 600;
201210
}
202211
}
203-
}
212+
}

src/sidebarApps/extensions/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ let isLoading = false;
2727

2828
const $header = (
2929
<div className="header">
30-
<span className="title">
31-
{strings["plugins"]}
30+
<div className="title">
31+
<span>{strings["plugins"]}</span>
3232
<button className="icon-button" onclick={filterPlugins}>
3333
<span className="icon tune"></span>
3434
</button>
35-
</span>
35+
</div>
3636
<input
3737
oninput={searchPlugin}
3838
type="search"

src/sidebarApps/extensions/style.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
justify-content: space-between;
77
align-items: center;
88
.title {
9-
font-size: 18px;
10-
font-weight: bold;
9+
font-size: 1.125rem;
10+
font-weight: 600;
1111
display: flex;
12+
justify-content: space-between;
1213
align-items: center;
14+
width: 100%;
1315
.icon-button {
1416
background: none;
1517
border: none;

0 commit comments

Comments
 (0)