fullscren support (fix #310)

This commit is contained in:
Athou
2013-06-29 19:37:21 +02:00
parent c3116f075e
commit e01ec129ce
3 changed files with 17 additions and 0 deletions

View File

@@ -1056,6 +1056,10 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
} }
}); });
Mousetrap.bind('f', function(e) {
$('body').toggleClass('full-screen');
});
Mousetrap.bind('?', function(e) { Mousetrap.bind('?', function(e) {
$scope.$apply(function() { $scope.$apply(function() {
$scope.shortcutsModal = true; $scope.shortcutsModal = true;

View File

@@ -1,3 +1,8 @@
.full-screen .main-content {
width: 100%;
margin-left: 0;
}
.entryList { .entryList {
padding-top: 50px; padding-top: 50px;
} }
@@ -124,6 +129,10 @@
padding-bottom: 10px; padding-bottom: 10px;
} }
.full-screen #feed-accordion .entry-body-content {
max-width: 100%;
}
#feed-accordion .entry-enclosure { #feed-accordion .entry-enclosure {
clear: both; clear: both;
padding-top: 10px; padding-top: 10px;

View File

@@ -29,6 +29,10 @@
overflow: auto; overflow: auto;
} }
.full-screen .left-menu {
display: none;
}
.css-treeview { .css-treeview {
margin-top: 15px; margin-top: 15px;
font-family: inherit; font-family: inherit;