1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00
Files
seahub/seahub/templates/snippets/file_view_style.html
llj 1a2cfee678 For mobile (#1255)
* [UI] bugfix; modified 'file view'

* [for mobile] modified shared/history file view

* modified 'header', 'dir view' for mobile
2016-06-22 16:51:03 +08:00

28 lines
965 B
HTML

<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/file_view_extra.css" />
{% if filetype == 'Text' %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}codemirror/codemirror.css" />
<style type="text/css">
{% if fileext == 'txt' or fileext == 'text' %}
.CodeMirror { width:816px; padding:40px 96px; }
{% endif %}
</style>
{% endif %}
{% if filetype == 'Image' %}
<style type="text/css">
#file-view { text-align:center; padding:30px 0; }
</style>
{% endif %}
{% if filetype == 'Video' or filetype == 'Audio' %}
<link rel="stylesheet" href="{{MEDIA_URL}}css/mediaelementplayer.css" />
{% endif %}
{% if filetype == 'Document' or filetype == 'PDF' and not use_pdfjs %}
{% include 'snippets/office_convert_style.html' %}
{% endif %}
{% if filetype == 'SpreadSheet' %}
{% include 'snippets/spreadsheet_convert_style.html' %}
{% endif %}