Skip to content

Commit 758fc60

Browse files
banobepascalpedropintosilva
authored andcommitted
comments: improve annotation scrollbar styling
-The scrollbar in annotation content was oversized, taking up unnecessary space. -Introduced --scrollbar-color variable with light/dark theme values and set scrollbar-width to thin for improved visual consistency. -Added color-text-date to use annotation date for light/dark theme -Added box-sizing to annotation menu buttons -Added --color-background-lighter to annotation-img outline Signed-off-by: Banobe Pascal <[email protected]> Change-Id: I1fba2aaa00bf5f878ef308fc5c7a0267ab61fa67
1 parent 2f4df46 commit 758fc60

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

browser/css/color-palette-dark.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
--color-text-lighter: #fff; /* secondard text, disabled */
1313
--color-status-badge: #d6d6d6;
1414
--color-slideshow: #d6d6d6;
15+
--color-date-text: #d6d6d6;
1516

1617
--color-main-background: #121212;
1718
--color-background-dark: #1E1E1E; /* select */
@@ -73,6 +74,7 @@
7374
--color-smart-guides-helper-line: #f36d4f;
7475

7576
--color-quickfind-border: #444;
77+
--scrollbar-color: #c0bfbc transparent;
7678
}
7779

7880
[data-bg-theme='dark'] {

browser/css/color-palette.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
--color-text-calc-header: #e8e8e8;
1515
--color-status-badge: #616161;
1616
--color-slideshow: #A8A8A8;
17+
--color-date-text: #555555;
1718

1819
--color-main-background: #F8F9FA;
1920
--color-background-dark: #e8e8e8; /* select */
@@ -82,6 +83,7 @@
8283
--color-treeview-highlight: #FFEE80;
8384
--color-treeview-highlight-text: #222;
8485
--color-quickfind-border: #e1dfdd;
86+
--scrollbar-color: #c0bfbc #fafafa;
8587
}
8688

8789
[data-bg-theme='light'] {

browser/css/cool.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ body {
642642
line-height: 1.4;
643643
max-height: var(--annotation-input-size);
644644
overflow: auto;
645+
scrollbar-color: var(--scrollbar-color);
646+
scrollbar-width: thin;
645647
}
646648

647649
.cool-annotation-info-collapsed {
@@ -764,7 +766,7 @@ body {
764766
height: var(--default-height);
765767
width: var(--default-width);
766768
padding: 0;
767-
outline: 2px solid #fff;
769+
outline: 2px solid var(--color-background-lighter);
768770
outline-offset: -3px;
769771
}
770772

@@ -845,6 +847,7 @@ body {
845847
border: 1px solid transparent !important;
846848
display: inline-block !important;
847849
cursor: pointer;
850+
box-sizing: border-box;
848851
}
849852

850853
.cool-redline-accept-button {
@@ -877,7 +880,7 @@ body {
877880

878881
.cool-annotation-date {
879882
font-size: 0.625rem;
880-
color: #555555;
883+
color: var(--color-date-text);
881884
}
882885

883886
.annotation-button-autosaved {

0 commit comments

Comments
 (0)