diff --git a/media/css/seahub.css b/media/css/seahub.css index 9a58a59563..58ac185c25 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -108,7 +108,8 @@ .icon-copy:before { content: "\f0c5"; } .icon-lightbulb:before { content: "\f0eb"; } .icon-chevron-left:before { content: "\f053"; } -.icon-question-sign:before { content: "\f059"; } +.icon-chevron-right:before { content: "\f054"; } +.icon-question-sign:before { content: "\f059"; } .icon-building:before { content: "\f0f7"; } .icon-phone:before { content: "\f095"; } .icon-magic:before { content: "\f0d0"; } @@ -2670,14 +2671,43 @@ button.sf-dropdown-toggle:focus { font-family: Consolas,"Liberation Mono",Courier,monospace;/*override .ace_editor*/ min-height: 200px; } -#img-prev-next { - font-size:1.1em; - margin-bottom:5px; +#img-prev { + position:absolute; + left:15px; +} +#img-next { + position:absolute; + right:15px; +} +#img-prev, +#img-next { + top:48%; + text-decoration:none; + color: #333; + width: 50px; + height: 50px; + background: #fff; + border-radius: 100%; + line-height: 50px; } #image-view { padding:1px; background:#fff; border:1px solid #eee; + width:auto; + height:auto; + max-width:100%; + max-height:calc(100% - 4px); + font-size:0; + line-height:0; +} +.image-file-view:before { + content:' '; + display:inline-block; + vertical-align:middle; + height:100%; + font-size:0; + line-height:0; } #docu-view, #svg-view, diff --git a/seahub/templates/snippets/file_content_html.html b/seahub/templates/snippets/file_content_html.html index 565446ffef..1476eca992 100644 --- a/seahub/templates/snippets/file_content_html.html +++ b/seahub/templates/snippets/file_content_html.html @@ -4,7 +4,7 @@ content of files that can be viewed online shows here. For details please refer to 'snippets/file_content_js.html'. {% endcomment %} -