Skip to content

Commit 2bd4105

Browse files
authoredJan 29, 2024
Feat/1.2.5/UI (#756)
1 parent c435ec1 commit 2bd4105

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed
 

‎ui/src/components/CustomizeTheme/index.tsx

+23-10
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,18 @@ const Index: FC = () => {
5959
.array()}
6060
}
6161
:root[data-bs-theme='dark'] {
62-
--bs-link-hover-color: ${shiftColor(primaryColor, -0.8).hex()};
63-
--bs-link-hover-color-rgb: ${shiftColor(primaryColor, -0.8)
62+
--bs-link-color: ${tintColor(primaryColor, 0.6).hex()};
63+
--bs-link-color-rgb: ${tintColor(primaryColor, 0.6)
64+
.round()
65+
.array()};
66+
--bs-link-hover-color: ${shiftColor(
67+
tintColor(primaryColor, 0.6),
68+
-0.8,
69+
).hex()};
70+
--bs-link-hover-color-rgb: ${shiftColor(
71+
tintColor(primaryColor, 0.6),
72+
-0.8,
73+
)
6474
.round()
6575
.array()};
6676
}
@@ -115,6 +125,12 @@ const Index: FC = () => {
115125
0.5,
116126
)}%27/%3e%3c/svg%3e");
117127
}
128+
.tag-selector-wrap--focus {
129+
box-shadow: 0 0 0 0.25rem ${primaryColor
130+
.fade(0.75)
131+
.string()} !important;
132+
border-color: ${tintColor(primaryColor, 0.5)} !important;
133+
}
118134
.dropdown-menu {
119135
--bs-dropdown-link-active-bg: rgb(var(--bs-primary-rgb));
120136
}
@@ -134,23 +150,20 @@ const Index: FC = () => {
134150
.badge-tag:not(.badge-tag-reserved, .badge-tag-required):hover {
135151
background-color: ${tintColor(primaryColor, 0.2).hex()};
136152
}
153+
137154
[data-bs-theme="dark"] .badge-tag:not(.badge-tag-reserved):not(.badge-tag-required) {
138155
background-color: rgba(${shadeColor(primaryColor, 0.2)
139156
.rgb()
140157
.array()
141-
.join(',')}, .5);
142-
color: ${tintColor(primaryColor, 0.4).hex()};
158+
.join(',')}, .5) !important;
159+
color: ${tintColor(primaryColor, 0.4).hex()} !important;
143160
}
144161
[data-bs-theme="dark"] .badge-tag:not(.badge-tag-reserved, .badge-tag-required):hover {
145162
background-color: rgba(${tintColor(
146163
primaryColor,
147164
0.4,
148-
).hex()}, 0.8);
149-
color: ${tintColor(primaryColor, 0.6).hex()};
150-
}
151-
[data-bs-theme="dark"] .tag-selector-wrap--focus {
152-
border-color: ${tintColor(primaryColor, 0.5)} !important;
153-
box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), .4) !important;
165+
).hex()}, 0.8) !important;
166+
color: ${tintColor(primaryColor, 0.6).hex()} !important;
154167
}
155168
`}
156169
</style>

‎ui/src/components/Header/index.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#header {
2323
transform: translate3d(0,0,0);
2424
--bs-navbar-padding-y: 0.75rem;
25-
background: linear-gradient(180deg, rgb(var(--bs-primary-rgb)) 0%, rgba(var(--bs-primary-rgb), 0.95) 100%);
25+
background: var(--bs-primary);
2626
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 0.125rem 0.25rem rgb(0 0 0 / 8%);
2727
.logo {
2828
max-height: 2rem;
@@ -70,7 +70,7 @@
7070

7171
// style for colored navbar
7272
&.theme-light {
73-
background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0.95) 100%);
73+
background: rgb(255, 255, 255);
7474
.nav-link {
7575
color: rgba(0, 0, 0, 0.65);
7676
}

‎ui/src/components/TagSelector/index.scss

-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,5 @@
6666
.tag-selector-wrap--focus {
6767
color: var(--bs-body-color);
6868
background-color: var(--bs-body-bg);
69-
box-shadow: 0 0 0 0.25rem rgba(84, 125, 248, 0.25) !important;
70-
border-color: rgb(170, 190, 252) !important;
7169
outline: 0;
7270
}

0 commit comments

Comments
 (0)