Skip to content

Commit

Permalink
Update display of reactions to issues and comments (#9038)
Browse files Browse the repository at this point in the history
Modify display of reactions to issues to remove spaces and make them
feel more apart of the reactions bar rather than separate items within.
  • Loading branch information
mrsdizzie authored and lafriks committed Nov 15, 2019
1 parent e0e4473 commit 69cfff1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
9 changes: 5 additions & 4 deletions public/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -789,11 +789,12 @@ i.icon.centerlock{top:1.5em}
.repository .segment.reactions.dropdown .menu>.header,.repository .select-reaction.dropdown .menu>.header{margin:.75rem 0 .5rem}
.repository .segment.reactions.dropdown .menu>.item,.repository .select-reaction.dropdown .menu>.item{float:left;padding:.5rem .5rem!important}
.repository .segment.reactions.dropdown .menu>.item img.emoji,.repository .select-reaction.dropdown .menu>.item img.emoji{margin-right:0}
.repository .segment.reactions{padding:.3em 1em}
.repository .segment.reactions .ui.label{padding:.4em}
.repository .segment.reactions .ui.label.disabled{cursor:default}
.repository .segment.reactions{padding:0;display:flex}
.repository .segment.reactions .ui.label{padding:.4em;padding-right:1em;padding-left:1em;border:0;border-right:1px solid;border-radius:0;margin:0;font-size:14px;border-color:inherit!important}
.repository .segment.reactions .ui.label.disabled{cursor:default;opacity:.5}
.repository .segment.reactions .ui.label>img{height:1.5em!important}
.repository .segment.reactions .select-reaction{float:none}
.repository .segment.reactions .ui.label.basic.blue{background-color:#f1f8ff!important;border-color:inherit!important}
.repository .segment.reactions .select-reaction{float:left;padding:.5em;padding-left:1em}
.repository .segment.reactions .select-reaction:not(.active) a{display:none}
.repository .segment.reactions:hover .select-reaction a{display:block}
.repository .ui.fluid.action.input .ui.search.action.input{flex:auto}
Expand Down
21 changes: 19 additions & 2 deletions web_src/less/_repository.less
Original file line number Diff line number Diff line change
Expand Up @@ -1910,22 +1910,39 @@
}

.segment.reactions {
padding: 0.3em 1em;
padding: 0;
display: flex;

.ui.label {
padding: 0.4em;
padding-right: 1em;
padding-left: 1em;
border: 0;
border-right: 1px solid;
border-radius: 0;
margin: 0;
font-size: 14px;
border-color: inherit !important;

&.disabled {
cursor: default;
opacity: 0.5;
}

> img {
height: 1.5em !important;
}
}

.ui.label.basic.blue {
background-color: #f1f8ff !important;
border-color: inherit !important;
}

.select-reaction {
float: none;
float: left;
padding: 0.5em;
padding-left: 1em;

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

0 comments on commit 69cfff1

Please sign in to comment.