From cb4e0d749381806c4f2eb1bb1f85dc8a248d3b6d Mon Sep 17 00:00:00 2001 From: llj Date: Thu, 28 May 2015 13:57:00 +0800 Subject: [PATCH 1/2] [org view] modified 'add library' --- media/css/seahub.css | 22 +++++++++++++------- seahub/templates/js/templates.html | 2 +- seahub/templates/libraries.html | 9 +++++--- static/scripts/app/views/organization.js | 26 ++++++++++++++++++++++-- 4 files changed, 46 insertions(+), 13 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index a8a4f6457d..26c7ec4002 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -1187,6 +1187,9 @@ textarea:-moz-placeholder {/* for FF */ padding-bottom:0; height:39px; } +#organization-repos .hd { + position:relative; +} .repo-file-list-topbar { margin-bottom:0; } @@ -1234,6 +1237,9 @@ textarea:-moz-placeholder {/* for FF */ background:#fff; line-height:17px; } +#add-pub-lib { + outline:none; +} /* info-bar */ #info-bar { color: #1f0600; @@ -2007,7 +2013,8 @@ textarea:-moz-placeholder {/* for FF */ position:relative; overflow:hidden; } -#upload-menu { +#upload-menu, +#add-pub-lib-menu { position:absolute; z-index:12; /* make it on top of a checkbox */ border:1px solid #c5c5c5; @@ -2015,12 +2022,16 @@ textarea:-moz-placeholder {/* for FF */ box-shadow: 0 0 2px #c5c5c5; background:#fff; } -#upload-menu .item { - position:relative; - text-align:left; +#upload-menu .item, +#add-pub-lib-menu .item { padding:0 10px; height:27px; line-height:27px; + cursor:pointer; +} +#upload-menu .item { + position:relative; + text-align:left; overflow:hidden; /* for 'hover', as long 'input' in it. */ } .fixed-upload-file-dialog { @@ -3571,9 +3582,6 @@ textarea:-moz-placeholder {/* for FF */ overflow-y: auto; overflow-x: hidden; } -button.add-pub-repo { - margin-right:10px; -} /* share popup */ #download-link-operations dl { diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html index 7c2ded7dee..97c5280e5d 100644 --- a/seahub/templates/js/templates.html +++ b/seahub/templates/js/templates.html @@ -733,7 +733,7 @@