diff --git a/applications/admin/static/css/bootstrap_essentials.css b/applications/admin/static/css/bootstrap_essentials.css index 905cbe62..b5035b62 100644 --- a/applications/admin/static/css/bootstrap_essentials.css +++ b/applications/admin/static/css/bootstrap_essentials.css @@ -327,6 +327,89 @@ font-style: italic; color: #ccc; } +/*============================================================= +EDIT PAGE SLIDING FILES MENU +==============================================================*/ +@media (max-width: 979px) { + body.edit div#header {position:relative; z-index: 1030 !important;} +} + +#editor_area, #edit_placeholder { + margin: 0; + padding: 0; +} + +#editor_area { + position: relative; + box-sizing: border-box; +} + +#files { + width: auto; + height: 100%; + margin: 0; + padding: 0; + position: fixed; + top: 0px; + left: 0px; + z-index: 1029; + border-right: 3px solid #000; + /* animation (it doesn't work in IE<10) */ + -moz-transition: all 0.4s; + -webkit-transition: all 0.4s; + -o-transition: all 0.4s; + transition: all 0.4s; +} + +#files:hover, #files:focus { + left: 0px !important; +} + +#files, .files-toggle { + background: #1b1b1b; + opacity: 0.98; +} + +.files-toggle { + width: 18px; + height: 86px; + border-radius: 0px 4px 4px 0px; + color: #999; + position: absolute; + top: 60px; + right: -18px; + cursor: default; +} + +.arrow { + display: block; + position: absolute; + top: 8px; + width: 18px; + height: 70px; + background: url(../images/files_toggle.png) no-repeat; +} + +.files-menu { + height: 100%; + overflow: auto; +} + +#filelist { + position: relative; + top: 60px; + padding-bottom: 60px; +} + +#filelist li { + padding-right: 8px; + width: 100%; +} + +#filelist li>a { + text-shadow: none; +} + /*============================================================= MEDIA QUERIES ==============================================================*/ diff --git a/applications/admin/static/images/files_toggle.png b/applications/admin/static/images/files_toggle.png new file mode 100644 index 00000000..098e02a8 Binary files /dev/null and b/applications/admin/static/images/files_toggle.png differ diff --git a/applications/admin/views/default/edit.html b/applications/admin/views/default/edit.html index 2f6e2804..6700bf9b 100644 --- a/applications/admin/views/default/edit.html +++ b/applications/admin/views/default/edit.html @@ -121,7 +121,7 @@ jQuery(document).on('click', 'a.font_button', function (e) { case 'decr': new_incr = -2; break; case 'default': new_incr = 0; break; } - jQuery('textarea[name="data"]') .each(function(id, ta) { + jQuery('textarea[name="data"]').each(function(id, ta) { editor = jQuery(ta).data('editor'); set_font(editor, new_incr); }); @@ -163,9 +163,6 @@ jQuery(document).on('click', 'a.font_button', function (e) {