diff --git a/media/css/seahub.css b/media/css/seahub.css index f1c2142298..26e0871517 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -255,7 +255,8 @@ textarea:focus { border-color: #66afe9; outline: none; } -input[type="checkbox"]:focus { +input[type="checkbox"]:focus, +input[type="radio"]:focus { outline:#66afe9 auto 1px; } input::-webkit-outer-spin-button, @@ -348,6 +349,7 @@ p { margin:0.5em 0; } .fright { float:right } .clear { clear:both; } .show { display:block } +.inline-block { display: inline-block; } .hide { display:none } .error { color:red; } .errorlist { color: red; } @@ -363,7 +365,6 @@ p { margin:0.5em 0; } .label { color:#333; font-size:12px; font-style:normal; } .italic { font-style:italic; } .alc { text-align: center;} -.inline-block { display: inline-block; } .cspt { cursor:pointer; } .pos-rel { position:relative; } .top-tip { @@ -440,12 +441,6 @@ p { margin:0.5em 0; } display:block; margin:1em auto; } -.icon-plus, .icon-minus, .icon-pencil { - font-size:16px; - line-height:1; - color:#444; - margin-left:3px; -} .op, .more { font-weight:normal; @@ -1062,9 +1057,11 @@ textarea:-moz-placeholder {/* for FF */ #simplemodal-container label { margin:8px 0 4px; } +#simplemodal-container .radio-item, #simplemodal-container .checkbox-option { font-weight:normal; } +#simplemodal-container .radio-item, #simplemodal-container .checkbox-label { margin:4px 0; } @@ -1307,12 +1304,12 @@ button.dropdown-toggle:focus { width:350px; padding:3px 5px; } -.msg-form .submit { +.msg-submit { color:#fff; background:#4abb49; border:1px solid #5cb25b; } -.msg-form .submit:hover { +.msg-submit:hover { background:#55ab22; } .no-discussion-tip { @@ -1387,7 +1384,7 @@ button.dropdown-toggle:focus { #organization-repos .hd { position:relative; } -#group-top .op-icon { +.group-top-op-icon { display:inline-block; font-size:22px; margin:4px 15px 0 0; @@ -1433,7 +1430,7 @@ button.dropdown-toggle:focus { text-decoration:none; border-bottom-color: #eb8205; } -#right-panel .hd button, +.btn-white, .tabnav button, .repo-file-list-topbar .op-btn, .wiki-top .op-btn { @@ -1857,13 +1854,9 @@ button.dropdown-toggle:focus { .repo-op .op-btn { vertical-align:middle; } -#featured-filetype { - margin:5px 0; -} -#featured-filetype button { +.set-file-type { padding: 2px; line-height: 1.2; - border: 1px solid #bbb; margin: 2px 0 5px; } .file-audit-list-topbar .path, @@ -2813,24 +2806,11 @@ button.dropdown-toggle:focus { #search-user-form .submit { margin-left:3.5em; } -#myhome-enable-mods, -#enable-mods { +.enable-mods-icon { margin:3px 0 0; color:#ccc; font-size:18px; } -#edit-index { - color:#d7d7d7; - margin-top:3px; -} -#edit-index:hover { - color:#666; - cursor:pointer; -} -#add-msg .icon-pencil { - font-size:1em; - margin:0 3px 0 0; -} .help-con { padding:0 0 0 30px; } @@ -2848,23 +2828,28 @@ button.dropdown-toggle:focus { .wiki-index h3 { color:#333; } +.wiki-index-edit-icon { + font-size:16px; + color:#d7d7d7; + margin:3px 0 0; +} #wiki-index-con { padding-left:12px; } .grp-wiki-index #wiki-index-con { padding:0; } -.wiki-index ul { +#wiki-index-con ul { list-style-type: square; padding-left: 1.5em; margin-bottom:5px; color:#8c8c8c; } -.wiki-index a { +#wiki-index-con a { font-weight:normal; color:#8c8c8c; } -.wiki-index a:hover { +#wiki-index-con a:hover { color:#f93; text-decoration:underline; } diff --git a/seahub/group/templates/group/group_base.html b/seahub/group/templates/group/group_base.html index f8a537efa3..4b69317e58 100644 --- a/seahub/group/templates/group/group_base.html +++ b/seahub/group/templates/group/group_base.html @@ -4,18 +4,10 @@ {% block sub_title %}{{group.group_name}} - {% endblock %} -{% block cur_group %}cur{% endblock %} - {% block left_panel %}
-
-

- {% grp_avatar group.props.id 32 %} {{ group.group_name }} -

-
+

+ {% grp_avatar group.props.id 32 %} {{ group.group_name }} +

{% endblock %} - -{% block main_panel %} - -{% endblock %} diff --git a/seahub/group/templates/group/group_wiki.html b/seahub/group/templates/group/group_wiki.html index a22d71eecb..e158e695e1 100644 --- a/seahub/group/templates/group/group_wiki.html +++ b/seahub/group/templates/group/group_wiki.html @@ -19,7 +19,7 @@

{% trans "Wiki Index" %}

{% if repo_perm == 'rw' %} - + {% endif %}
@@ -227,11 +227,9 @@ $('#wiki-use-lib-form').submit(function() { {% if wiki_index_exists %} $('#wiki-index-con').html(marked('{{ index_content|escapejs }}')); {% if repo_perm == 'rw' %} - $('#edit-index').click(function() { {% with page_name='index' %} - location.href = "{% url 'group_wiki_page_edit' group.id page_name %}"; + $('#edit-index').attr('href', "{% url 'group_wiki_page_edit' group.id page_name %}"); {% endwith %} - }); {% endif %} {% else %} {% if repo_perm == 'rw' %} diff --git a/seahub/notifications/templates/notifications/notification_list.html b/seahub/notifications/templates/notifications/notification_list.html index 3960e601b5..b7c30a3234 100644 --- a/seahub/notifications/templates/notifications/notification_list.html +++ b/seahub/notifications/templates/notifications/notification_list.html @@ -6,7 +6,7 @@ {% block right_panel %}

{% trans "All Notifications" %}

- +
{% csrf_token %}

{% trans "Add new notification" %}

diff --git a/seahub/templates/home_base.html b/seahub/templates/home_base.html index 07214b041b..8eacc274f4 100644 --- a/seahub/templates/home_base.html +++ b/seahub/templates/home_base.html @@ -37,7 +37,7 @@

{% trans "Tools" %}

{% if user.permissions.can_add_repo %} - + {% endif %}