1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

[details] improved UI details, cleaned up CSS

This commit is contained in:
llj
2016-03-11 14:42:03 +08:00
parent d6dffbab73
commit 37ed9678c3
6 changed files with 40 additions and 30 deletions

View File

@@ -1,3 +1,20 @@
/**
* CONTENTS
*
* Font Icons
* icon-xx ...............Font Awesome 3.2.1 by Dave Gandy
* sf2-icon-xx ...........seafile-font2
*
* Reset
* tags ..................reset styles of tags
*
* Helper
* common class .......... common class
*
* (TODO: complete this TOC)
*
*/
/****** icon-xx ********/ /****** icon-xx ********/
/* Font Awesome 3.2.1 by Dave Gandy - http://fortawesome.github.com/Font-Awesome */ /* Font Awesome 3.2.1 by Dave Gandy - http://fortawesome.github.com/Font-Awesome */
@font-face { @font-face {
@@ -973,15 +990,24 @@ textarea:-moz-placeholder {/* for FF */
margin-right:8px; margin-right:8px;
} }
/**** simplemodal ****/ /**** simplemodal ****/
#basic-modal-content {display:none;} #basic-modal-content {
#simplemodal-overlay { background-color:#000; } display:none;
}
#simplemodal-overlay {
background-color:#000;
}
#simplemodal-container { #simplemodal-container {
padding: 20px; padding: 20px;
background-color:#fcfcfc; background-color:#fcfcfc;
border-radius:4px; border-radius:4px;
-moz-border-radius:4px; -moz-border-radius:4px;
} }
#simplemodal-container a {font-weight:normal;} #simplemodal-container a {
font-weight:normal;
}
#simplemodal-container table {
margin:0;
}
.modalCloseImg { .modalCloseImg {
position:absolute; position:absolute;
width:28px; width:28px;
@@ -995,7 +1021,7 @@ textarea:-moz-placeholder {/* for FF */
#simplemodal-container h3 { #simplemodal-container h3 {
font-size:1.5em; font-size:1.5em;
word-wrap:break-word; word-wrap:break-word;
margin:0 0 4px; margin:0 0 10px;
} }
#simplemodal-container h3, #simplemodal-container h3,
#simplemodal-container h4, #simplemodal-container h4,
@@ -2234,14 +2260,8 @@ textarea:-moz-placeholder {/* for FF */
#folder-perm-popup, #folder-perm-popup,
#file-share, #file-share,
#share-popup { #share-popup {
padding:15px;
min-height:200px; min-height:200px;
} }
#folder-perm-popup .hd,
#file-share .hd,
#share-popup .hd {
margin:0 0 8px 4px;
}
#file-share .tip, #file-share .tip,
#share-popup .tip { #share-popup .tip {
max-width:400px; max-width:400px;
@@ -3509,11 +3529,6 @@ textarea:-moz-placeholder {/* for FF */
margin-top:2px; margin-top:2px;
height:30px; height:30px;
} }
#share-popup table,
#repo-folder-perm table,
#folder-perm-tabs table {
margin:0;
}
.select2-result-label .text { .select2-result-label .text {
display:inline-block; display:inline-block;
width:calc(100% - 42px); width:calc(100% - 42px);
@@ -3525,14 +3540,14 @@ textarea:-moz-placeholder {/* for FF */
.select2-result-label .text { .select2-result-label .text {
vertical-align:middle; vertical-align:middle;
} }
#add-group-members-form {
margin-bottom:4px;
}
/* add repo to public */ /* add repo to public */
#add-pubrepo-popup { #add-pubrepo-popup {
width:500px; width:500px;
} }
#add-pubrepo-popup table {
margin-bottom:8px;
}
#add-pubrepo-popup tbody { #add-pubrepo-popup tbody {
display: block; display: block;
max-height: 150px; max-height: 150px;

View File

@@ -62,7 +62,10 @@ function showSharePopup(op, name, aj_data, type, cur_path) {
); );
{% endif %} {% endif %}
form.modal({appendTo: "#main",'focus':false, containerCss:{"padding":0}}); form.modal({
appendTo: "#main",
focus: false
});
var hd = $('#file-share .hd'); var hd = $('#file-share .hd');
hd.html(hd.html().replace('%(name)s', '<span class="op-target">' + HTMLescape(trimFilename(name, 30)) + '</span>')); hd.html(hd.html().replace('%(name)s', '<span class="op-target">' + HTMLescape(trimFilename(name, 30)) + '</span>'));

View File

@@ -23,7 +23,6 @@ define([
this.$('.op-target').css({'max-width':280}); // for long repo name this.$('.op-target').css({'max-width':280}); // for long repo name
this.$el.modal({ this.$el.modal({
focus: false, focus: false,
containerCss: {"padding": 0},
onClose: function() { onClose: function() {
$(document).off('click', hideItemEdit); $(document).off('click', hideItemEdit);
$.modal.close(); $.modal.close();

View File

@@ -20,9 +20,7 @@ define([
this.render(); this.render();
this.$('.op-target').css({'max-width':280}); // for long repo name this.$('.op-target').css({'max-width':280}); // for long repo name
this.$el.modal({ this.$el.modal();
containerCss: {"padding": 0}
});
$("#simplemodal-container").css({ $("#simplemodal-container").css({
'width':'auto', 'width':'auto',
'height':'auto' 'height':'auto'

View File

@@ -25,8 +25,7 @@ define([
this.$el.modal({ this.$el.modal({
appendTo: "#main", appendTo: "#main",
focus: false, focus: false
containerCss: {"padding": 0}
}); });
$('#simplemodal-container').css({'width':'auto', 'height':'auto'}); $('#simplemodal-container').css({'width':'auto', 'height':'auto'});

View File

@@ -24,11 +24,7 @@ define([
this.render(); this.render();
this.$el.modal({ this.$el.modal();
appendTo: "#main",
focus: false,
containerCss: {"padding": 0}
});
$('#simplemodal-container').css({'width':'auto', 'height':'auto'}); $('#simplemodal-container').css({'width':'auto', 'height':'auto'});
this.$("#share-tabs").tabs(); this.$("#share-tabs").tabs();