diff --git a/media/css/file_view_extra.css b/media/css/file_view_extra.css index 8de07d9cf2..dce469a9e5 100644 --- a/media/css/file_view_extra.css +++ b/media/css/file_view_extra.css @@ -1,10 +1,6 @@ -#header, -#footer { - display:none; -} #main { - width:100%; min-height:0; + padding:0; } #view-hd, #shared-file-view-hd, @@ -34,6 +30,11 @@ border:1px solid #ededed; margin-top:12px; } +@media (max-width:950px) { + #file-view { + width:950px; + } +} #md-view, .CodeMirror, #file-view-tip { diff --git a/media/css/seahub.css b/media/css/seahub.css index 992c9f5c15..10d8ff65be 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -169,7 +169,7 @@ form,input,textarea,select,button,img { body, input, textarea, button, select { font: 13px/1.5 Arial, Helvetica, sans-serif; color: #333; - word-wrap:break-word; /* for en */ + word-break:break-all; /* for en */ } input, button, select { line-height:19px;/*for ff*/ } h1, h2, h3, h4, h5, h6 { @@ -316,10 +316,24 @@ table { width:100%; margin:8px 0 40px; } -caption { font-size:1.1em; font-weight:bold; margin-bottom:.6em; } -th { text-align:left; font-weight:normal; color:#9c9c9c; } -td, th { padding:5px 3px; word-wrap:break-word; border-bottom:1px solid #eee; } -td { color: #333; font-size:14px; } +caption { + font-size:1.1em; + font-weight:bold; + margin-bottom:.6em; +} +th { + text-align:left; + font-weight:normal; + color:#9c9c9c; +} +th, td { + padding:5px 3px; + border-bottom:1px solid #eee; +} +td { + color: #333; + font-size:14px; +} table img { vertical-align:middle; } /* custom scrollbar */ ::-webkit-scrollbar { @@ -998,6 +1012,11 @@ textarea:-moz-placeholder {/* for FF */ box-shadow:0 3px 2px #f5f5f5; margin:5em auto; } +@media (max-width: 387px) { + .new-narrow-panel { + width:100%; + } +} .new-narrow-panel .hd { color:#fff; font-size:16px; @@ -1006,7 +1025,9 @@ textarea:-moz-placeholder {/* for FF */ border-bottom:1px solid #d5d5d5; } .new-narrow-panel .con { - padding:30px 60px 60px; + padding:30px 0 60px; + width:268px; + margin:0 auto; } .new-narrow-panel .input { font-size:14px; @@ -1530,7 +1551,6 @@ button.sf-dropdown-toggle:focus { border-radius:2px; } #dir-view .repo-op { - height:48px; position: relative; /* for '#upload-menu' */ } #right-panel .hd, @@ -1626,6 +1646,11 @@ button.sf-dropdown-toggle:focus { position:relative; margin:10px 0 0 25px; } +@media (max-width: 390px) { + #notifications { + margin-left:5px; + } +} #notifications .sf2-icon-bell { font-size:24px; line-height:1; @@ -1686,6 +1711,11 @@ button.sf-dropdown-toggle:focus { position:relative; margin-left:32px; } +@media (max-width: 390px) { + #account { + margin-left:5px; + } +} #account .avatar { vertical-align:middle; border-radius:1000px; @@ -2021,7 +2051,6 @@ button.sf-dropdown-toggle:focus { } .repo-file-list .dirent-name { display:inline-block; - word-break:break-all; } .repo-file-list .file-locked-icon { position:absolute; @@ -2786,6 +2815,11 @@ button.sf-dropdown-toggle:focus { width:155px; padding:1px 30px 1px 5px; } +@media (max-width: 390px) { + #top-search-form .search-input { + width:130px; + } +} #search-form, #search-user-form, #search-repo-form { diff --git a/seahub/templates/base.html b/seahub/templates/base.html index f244e97ec0..f0fbf1d852 100644 --- a/seahub/templates/base.html +++ b/seahub/templates/base.html @@ -7,6 +7,9 @@