diff --git a/media/css/seahub.css b/media/css/seahub.css index af31839515..299809380d 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -907,6 +907,11 @@ textarea:-moz-placeholder {/* for FF */ padding:0; } /**** side-tabnav ****/ +.logo-container { + padding: .5rem 1rem; + background: #f4f4f7; + border-bottom: 1px solid #e8e8e8; +} .side-textnav .hd, .side-info .hd { padding-bottom:4px; @@ -915,13 +920,16 @@ textarea:-moz-placeholder {/* for FF */ } @media (max-width: 767px) { .side-nav { - background: #f8f8f8; + background: #fff; + display:flex; + flex-direction:column; width:300px; + max-width: calc(100% - 40px); position:fixed; left:-300px; top:0; bottom:0; - z-index:1; + z-index:1002; box-shadow:0 0 4px #ccc; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; @@ -932,7 +940,7 @@ textarea:-moz-placeholder {/* for FF */ } } .side-nav { - padding:20px; + padding:0; overflow:hidden; border-right:1px solid #eee; } @@ -948,8 +956,13 @@ textarea:-moz-placeholder {/* for FF */ border-right:1px solid #eee; } .side-nav-con { - overflow:hidden; padding:20px; + overflow:hidden; +} +@media (max-width: 767px) { + .side-nav-con { + overflow-y:auto; + } } .side-nav-con:hover { overflow-y:auto; diff --git a/seahub/help/templates/help/base.html b/seahub/help/templates/help/base.html index 1a1959c440..4987ebe05e 100644 --- a/seahub/help/templates/help/base.html +++ b/seahub/help/templates/help/base.html @@ -1,27 +1,45 @@ {% extends "base.html" %} {% load i18n %} +{% block extra_style %} + +{% endblock %} + {% block main_class %}d-flex ovhd{% endblock %} {% block main_content %}
- -

{% trans "Desktop Client and Syncing" %}

- -

{% trans "Security and Encryption" %}

- + +
{% block help_con %}{% endblock %}
diff --git a/seahub/templates/base.html b/seahub/templates/base.html index 3b597da243..7ae42b480c 100644 --- a/seahub/templates/base.html +++ b/seahub/templates/base.html @@ -239,17 +239,31 @@ $('#info-bar .close').on('click', function() { {% endif %} if ($('.side-nav').length) { - $('#logo').addClass('hidden-sm-down'); - $('#js-toggle-side-nav').removeClass('hide'); + $('#logo').addClass('hidden-sm-down'); + $('#js-toggle-side-nav').removeClass('hide'); } $('#js-toggle-side-nav').on('click', function() { $('.side-nav').addClass('side-nav-shown'); + $('').modal({ + overlayClose: true, + onClose: function() { + $('.side-nav').removeClass('side-nav-shown'); + $.modal.close(); + }}); + $('#simplemodal-container').css({'display':'none'}); return false; }); $('.js-close-side-nav').on('click', function() { $('.side-nav').removeClass('side-nav-shown'); return false; }); +$(window).on('resize', function() { + if ($(window).width() >= 768) { + $.modal.close(); + } else { + $('.side-nav').removeClass('side-nav-shown'); + } +}); {% block extra_script %}{% endblock %} diff --git a/seahub/templates/js/sysadmin-templates.html b/seahub/templates/js/sysadmin-templates.html index 420470946f..26eaaaaa54 100644 --- a/seahub/templates/js/sysadmin-templates.html +++ b/seahub/templates/js/sysadmin-templates.html @@ -1,7 +1,16 @@ {% load avatar_tags i18n %}