aboutsummaryrefslogtreecommitdiff
path: root/public/css
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-02-26 14:24:38 -0500
committerUnknwon <u@gogs.io>2016-02-26 14:24:38 -0500
commit79ae163296be367058576589bfc583c22a2e24ca (patch)
treec946c263cf867964c98bcc7530651c830bbef5b1 /public/css
parent7a91d7e776581a2d1cac9239445e89e8b56c9177 (diff)
parentab4bc653ab0b95a85acb3c0cf8ee599b943a7bba (diff)
Merge pull request #2706 from ChubbyNinja/develop
Image attachments keep aspect ratio
Diffstat (limited to 'public/css')
-rw-r--r--public/css/gogs.css27
1 files changed, 26 insertions, 1 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index 77a1a051..23da755a 100644
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -1460,8 +1460,33 @@ footer .container .links > *:first-child {
.repository.view.issue .comment-list .comment .content > .bottom.segment {
background: #f3f4f5;
}
+.repository.view.issue .comment-list .comment .content > .bottom.segment .ui.images::after {
+ clear: both;
+ content: ' ';
+ display: block;
+}
+.repository.view.issue .comment-list .comment .content > .bottom.segment a {
+ display: block;
+ float: left;
+ margin: 5px;
+ padding: 5px;
+ height: 150px;
+ border: solid 1px #eee;
+ border-radius: 3px;
+ max-width: 150px;
+ background-color: #fff;
+}
+.repository.view.issue .comment-list .comment .content > .bottom.segment a:before {
+ content: "";
+ display: inline-block;
+ height: 100%;
+ vertical-align: middle;
+}
.repository.view.issue .comment-list .comment .content > .bottom.segment .ui.image {
- max-height: 150px;
+ max-height: 100%;
+ width: auto;
+ margin: 0;
+ vertical-align: middle;
}
.repository.view.issue .comment-list .comment .ui.form .field:first-child {
clear: none;