Skip to content

Commit a5bf6a0

Browse files
committed
Add new CSS variables --color-accent and --color-small-accent
At the moment, this is only used to replace the color of the "viewed" checkbox. Previously, the used variable accentuated always either darker or lighter, which meant that one theme looked good while the other didn't.
1 parent 08609d4 commit a5bf6a0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

web_src/less/_base.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@
159159
--color-tooltip-text: #ffffff;
160160
--color-header-bar: #ffffff;
161161
--color-label-active-bg: #d0d0d0;
162+
/* accent */
163+
--color-small-accent: var(--color-primary-light-6);
164+
--color-accent: var(--color-primary-light-4);
162165
/* backgrounds */
163166
--checkbox-mask-checked: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 18 18" width="16" height="16"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>');
164167
--checkbox-mask-indeterminate: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"></path></svg>');

web_src/less/_review.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ a.blob-excerpt:hover {
286286
}
287287

288288
.viewed-file-checked-form {
289-
background-color: var(--color-primary-light-6);
290-
border: 1px solid var(--color-primary-light-4);
289+
background-color: var(--color-small-accent);
290+
border: 1px solid var(--color-accent);
291291
}
292292

293293
#viewed-files-summary {

web_src/less/themes/theme-arc-green.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
--color-reaction-active-bg: var(--color-primary-alpha-40);
135135
--color-header-bar: #2e323e;
136136
--color-label-active-bg: #4c525e;
137+
--color-small-accent: #8eff8e25;
137138
}
138139

139140
::-webkit-calendar-picker-indicator {

0 commit comments

Comments
 (0)