summaryrefslogtreecommitdiffstats
path: root/public/less
diff options
context:
space:
mode:
authorChubbyNinja <dan.hearnah@gmail.com>2016-02-26 14:09:37 +0000
committerChubbyNinja <dan.hearnah@gmail.com>2016-02-26 14:09:37 +0000
commitab4bc653ab0b95a85acb3c0cf8ee599b943a7bba (patch)
tree37b0cdd0ec5fa5c0cf3572ce9ff8e8884e4c70ad /public/less
parent129638117f1eed78475a041bd65097e56939caca (diff)
downloadgitea-ab4bc653ab0b95a85acb3c0cf8ee599b943a7bba.tar.gz
gitea-ab4bc653ab0b95a85acb3c0cf8ee599b943a7bba.zip
Image attachments keep aspect ratio
Diffstat (limited to 'public/less')
-rw-r--r--public/less/_repository.less27
1 files changed, 26 insertions, 1 deletions
diff --git a/public/less/_repository.less b/public/less/_repository.less
index e9acff3f0e..e6ad40af65 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -413,8 +413,33 @@
}
> .bottom.segment {
background: #f3f4f5;
+ .ui.images::after {
+ clear: both;
+ content: ' ';
+ display: block;
+ }
+ a {
+ display: block;
+ float: left;
+ margin: 5px;
+ padding: 5px;
+ height: 150px;
+ border: solid 1px #eee;
+ border-radius: 3px;
+ max-width: 150px;
+ background-color: #fff;
+ &:before {
+ content:' ';
+ display: inline-block;
+ height: 100%;
+ vertical-align: middle;
+ }
+ }
.ui.image {
- max-height: 150px;
+ max-height: 100%;
+ width: auto;
+ margin: 0;
+ vertical-align: middle;
}
}
}