summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-10-31 14:17:52 +0100
committerGitHub <noreply@github.com>2020-10-31 15:17:52 +0200
commit0e6bf7e4c9f154680d30fc50a1b38fa507a9e7b7 (patch)
tree39861427fa81a881e90ec5ddb3f6168a524b7999 /web_src
parentd01d39d6cf1ecd7160681ca5784977a5ab7d992b (diff)
downloadgitea-0e6bf7e4c9f154680d30fc50a1b38fa507a9e7b7.tar.gz
gitea-0e6bf7e4c9f154680d30fc50a1b38fa507a9e7b7.zip
Comment Header fixes (#13356)
Apply more flexboxes on comment header and remove float hacks. Needs 1.13 backport. Fixes: https://github.com/go-gitea/gitea/issues/13316 Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_form.less10
-rw-r--r--web_src/less/_repository.less34
2 files changed, 9 insertions, 35 deletions
diff --git a/web_src/less/_form.less b/web_src/less/_form.less
index 260910e95c..9ca6387bc3 100644
--- a/web_src/less/_form.less
+++ b/web_src/less/_form.less
@@ -10,13 +10,9 @@
.ui.attached.header {
background: #f0f0f0;
- .right {
- margin-top: -5px;
-
- .button {
- padding: 8px 10px;
- font-weight: normal;
- }
+ .right .button {
+ padding: 8px 10px;
+ font-weight: normal;
}
}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index 14b342cab3..7fe8216571 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -1002,27 +1002,6 @@
}
.comment {
-
- .actions {
- .item {
- float: left;
-
- &.context {
- float: none;
- }
-
- &.tag {
- margin-right: 5px;
- }
-
- &.action {
- margin-top: 6px;
- padding-left: 10px;
- padding-right: 3px;
- }
- }
- }
-
> .content {
> div:first-child {
border-top-left-radius: 4px;
@@ -1062,15 +1041,14 @@
left: 7px;
}
- .actions {
- display: flex;
- padding: 0 .5rem;
-
- &.right {
- margin: 0;
- }
+ .header-left > * + *,
+ .header-right > * + * {
+ margin-left: .25rem;
+ }
+ .actions {
a {
+ padding: .5rem;
color: rgba(0, 0, 0, .4);
&:hover {