1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 19:00:12 +00:00

For mobile (#1255)

* [UI] bugfix; modified 'file view'

* [for mobile] modified shared/history file view

* modified 'header', 'dir view' for mobile
This commit is contained in:
llj
2016-06-22 16:51:03 +08:00
committed by Daniel Pan
parent cf1017513a
commit 1a2cfee678
7 changed files with 66 additions and 26 deletions

View File

@@ -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 {