diff options
author | Sorien <Sorien@users.noreply.github.com> | 2020-04-11 00:01:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 01:01:41 +0300 |
commit | c97e9883801d28ca44b8b7049a4285c8d904eea8 (patch) | |
tree | 4477bbe9f8eaec7a5440eb77dbab8916bcbe2981 /web_src/less | |
parent | bc362ea3c611a94e7920a3cf4691fd108f874ef0 (diff) | |
download | gitea-c97e9883801d28ca44b8b7049a4285c8d904eea8.tar.gz gitea-c97e9883801d28ca44b8b7049a4285c8d904eea8.zip |
Prettify Timeline (#10972)
Co-authored-by: mrsdizzie <info@mrsdizzie.com>
Diffstat (limited to 'web_src/less')
-rw-r--r-- | web_src/less/_repository.less | 171 | ||||
-rw-r--r-- | web_src/less/themes/theme-arc-green.less | 18 |
2 files changed, 123 insertions, 66 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index cca31ee5f7..55f1cbb76e 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -716,13 +716,13 @@ z-index: -1; } - .timeline-line { + .timeline { position: relative; display: block; - width: 100%; - max-width: 100%; + margin-left: 40px; + padding-left: 16px; - &:before { + &:before { //ciara display: block; content: ""; position: absolute; @@ -730,18 +730,91 @@ margin-bottom: 14px; top: 0; bottom: 0; - left: 82px; + left: 30px; width: 2px; background-color: #f3f3f3; z-index: -1; } } - .comment { - .avatar { - width: @comment-avatar-width; + .timeline-item, + .timeline-item-group { + padding: 12px 0; + } + + .timeline-item-group { + .timeline-item { + padding-top: 8px; + padding-bottom: 8px; + } + } + + .timeline-item { + margin-left: 16px; + position: relative; + + .timeline-avatar { + position: absolute; + left: -72px; + img { + width: 40px; + height: 40px; + } + } + + &:first-child { + padding-top: 0 !important; + } + + &:last-child { + padding-bottom: 0 !important; } + .badge { + width: 32px; + height: 32px; + background-color: #fff; + border: 2px solid #eee; + border-radius: 50%; + display: flex; + float: left; + margin-left: -32px; + margin-top: -1px; + margin-right: 8px; + color: #444; + + .svg { + width: 28px; + height: 28px; + text-align: center; + line-height: 28px; + padding: 4px; + + &.octicon-circle-slash { + color: #bd2c00; + } + + &.octicon-primitive-dot { + color: #6cc644; + } + + &.octicon-comment { + margin-top: 2px; + } + } + } + + &.comment > .content { + margin-left: -16px; + } + + &.event > .text { + line-height: 30px; + } + } + + .comment { + .tag { color: #767676; margin-top: 3px; @@ -778,8 +851,6 @@ } .content { - margin-left: 4em; - > .header { #avatar-arrow; font-weight: normal; @@ -787,7 +858,6 @@ position: relative; color: #767676; background-color: #f7f7f7; - border-bottom: 1px solid #eeeeee; border-top-left-radius: 3px; border-top-right-radius: 3px; @@ -796,6 +866,29 @@ padding-top: 10px; padding-bottom: 10px; } + + &.arrow-top::before, + &.arrow-top::after { + transform: rotate(90deg); + } + + &.arrow-top::before { + top: -9px; + left: 6px; + } + + &.arrow-top::after { + top: -8px; + left: 7px; + } + + .actions a { + color: rgba(0, 0, 0, .4); + + &:hover { + color: rgba(0, 0, 0, .8); + } + } } > .merge-section { @@ -892,9 +985,7 @@ } .event { - position: relative; - margin: 15px 0 15px 79px; - padding-left: 25px; + padding-left: 15px; & > .svg:not(.issue-symbol) { text-shadow: -2px 0 #fff, 0 2px #fff, 2px 0 #fff, 0 -2px #fff; @@ -935,46 +1026,6 @@ } } - .svg { - width: 30px; - float: left; - text-align: center; - - &.octicon-circle-slash { - margin-top: 5px; - margin-left: -35.5px; - height: 20px; - color: #bd2c00; - } - - &.octicon-primitive-dot { - margin-top: -1px; - margin-left: -35.5px; - margin-right: -1px; - height: 30px; - color: #6cc644; - } - - &.octicon-bookmark { - margin-top: 2px; - margin-left: -35.5px; - margin-right: -1px; - height: 25px; - } - - &.octicon-eye { - margin-top: 3px; - margin-left: -35.5px; - margin-right: 0; - height: 22px; - } - - &.octicon-x { - margin-left: -35.5px; - height: 25px; - } - } - .detail { font-size: .9rem; margin-top: 5px; @@ -986,11 +1037,11 @@ } } } - } - } - .ui.segment.metas { - margin-top: -3px; + .segments { + box-shadow: none; + } + } } .ui.participants { @@ -2169,8 +2220,8 @@ .select-reaction { float: left; - padding: .5em; - padding-left: 1em; + padding: .4em; + line-height: 21px; &:not(.active) a { display: none; diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less index ffc6872cb3..d56b7b8eeb 100644 --- a/web_src/less/themes/theme-arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -672,13 +672,13 @@ a.ui.basic.green.label:hover { color: #dbdbdb !important; } -.ui.comments .comment .actions a { - color: #9e9e9e; +.ui .comment .actions a { + color: #9e9e9e !important; } -.ui.comments .comment .actions a.active, -.ui.comments .comment .actions a:hover { - color: #fff; +.ui .comment .actions a.active, +.ui .comment .actions a:hover { + color: #fff !important; } .repository.view.issue .comment-list .comment .content .header:after { @@ -698,10 +698,16 @@ a.ui.basic.green.label:hover { } .repository.view.issue .comment-list:not(.prevent-before-timeline):before, -.repository.view.issue .comment-list .timeline-line:before { +.repository.view.issue .comment-list .timeline:before { background-color: #3b4954; } +.repository.view.issue .comment-list .timeline-item .badge { + background-color: #383c4a; + border-color: #3b4954; + color: #9e9e9e; +} + .repository .comment.form .content .form:after { border-right-color: #313c47; } |