]> source.dussan.org Git - gitea.git/commitdiff
Update display of reactions to issues and comments (#9038)
authormrsdizzie <info@mrsdizzie.com>
Fri, 15 Nov 2019 21:47:04 +0000 (16:47 -0500)
committerLauris BH <lauris@nix.lv>
Fri, 15 Nov 2019 21:47:04 +0000 (23:47 +0200)
Modify display of reactions to issues to remove spaces and make them
feel more apart of the reactions bar rather than separate items within.

public/css/index.css
web_src/less/_repository.less

index 100870c1b24bf6636c65c632becd88932c946000..7fc962796e1af1dcc7970366de0974f5402550b2 100644 (file)
@@ -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}
index 974dd571ccd860e3742c2b730d1f1c1b1e8f01f7..14bb5e9003d46b03b8cad0251d8a8910d62877fe 100644 (file)
     }
 
     .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 {
             }
         }
 
+        .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;