summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-05-19 09:17:37 +0200
committerGitHub <noreply@github.com>2020-05-19 03:17:37 -0400
commit50a97272b9ccc40d61123516664eabe17df258f5 (patch)
treead3f23d9b8f4a593ff7d98cbe7ba05e98996f492 /web_src
parent6ccd19ef86b3b729a3b6dc35076639db5531550a (diff)
downloadgitea-50a97272b9ccc40d61123516664eabe17df258f5.tar.gz
gitea-50a97272b9ccc40d61123516664eabe17df258f5.zip
Tweak reaction buttons (#11496)
- Vertical centering using flexbox - Very slightly decreased size of the boxes Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_repository.less18
1 files changed, 9 insertions, 9 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 148d65e717..38f9e115c8 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -2197,9 +2197,12 @@
padding: 0;
display: flex;
- .ui.label {
+ .ui.label,
+ .ui.label.visible {
max-height: 40px;
- padding: 9px 15px 7px;
+ padding: .4rem .8rem;
+ display: flex !important;
+ align-items: center;
border: 0;
border-right: 1px solid;
border-radius: 0;
@@ -2220,20 +2223,17 @@
}
.reaction-count {
- margin-left: 4px;
+ margin-left: .5rem;
}
.select-reaction {
- float: left;
- padding: .6em;
- line-height: 21px;
+ display: flex;
+ align-items: center;
+ padding: .5rem;
&:not(.active) a {
display: none;
}
- > svg {
- vertical-align: middle;
- }
}
&:hover .select-reaction a {