Skip to content

Commit

Permalink
Reaction picker display improvements
Browse files Browse the repository at this point in the history
- Remove overly thin font-width on counter
- Add hover effect on reaction picker
- Change colors on arc-green to green to match the theme
  • Loading branch information
silverwind committed Aug 23, 2020
1 parent e429c11 commit e0c1ff1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
25 changes: 18 additions & 7 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -2340,9 +2340,10 @@

> .item {
float: left;
padding: .5rem !important;
padding: .25rem !important;
margin: .25rem;
font-size: 1.5em;
width: 45px;
width: 39px;
left: 13px;

img.emoji {
Expand All @@ -2356,18 +2357,17 @@
padding: 0;
display: flex;

.ui.label,
.ui.label.visible {
.ui.label {
max-height: 40px;
padding: .4rem .8rem;
padding: 7px 18px;
display: flex !important;
align-items: center;
border: 0;
border-right: 1px solid;
border-radius: 0;
margin: 0;
font-size: 14px;
font-weight: 100;
font-weight: normal;
border-color: inherit !important;

&.disabled {
Expand All @@ -2388,11 +2388,22 @@
.select-reaction {
display: flex;
align-items: center;
padding: 0 .5rem;
padding: 0 14px;

&:not(.active) a {
display: none;
}

.item {
border-radius: 6px;
display: flex;
justify-content: center;
align-items: center;
}

.item:hover {
background: #4183c4;
}
}

&:hover .select-reaction a {
Expand Down
10 changes: 10 additions & 0 deletions web_src/less/themes/theme-arc-green.less
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,16 @@ a.ui.basic.green.label:hover {
border-color: #26577b !important;
}

.repository .segment.reactions .ui.label.basic.blue {
color: #a0cc75 !important;
background: #305020 !important;
border-color: #404552 !important;
}

.repository .segment.reactions .select-reaction .item:hover {
background: #305020;
}

.ui.menu .item > .label {
background: #565454;
}
Expand Down

0 comments on commit e0c1ff1

Please sign in to comment.