This website requires JavaScript.
Explore
Help
Sign In
TryGhost
/
Ghost
Watch
1
Star
0
Fork
0
You've already forked Ghost
mirror of
https://github.com/TryGhost/Ghost.git
synced
2024-12-21 09:52:06 +03:00
Code
Issues
Projects
Releases
Wiki
Activity
5edca27748
Ghost
/
ghost
/
admin
/
app
/
utils
/
mobile.js
4 lines
81 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Zelda menu z-index and viewport transition finishes - [x] Mobilemenu button is missing from `content` and `editor` views - [x] Mobilemenu pane slides entire content over, should expand over-top-of-content - [x] Mobilemenu can't be closed - [x] gh-view-title no longer generates an extra div; it is the h2. - [x] gh-autonav-toggle closes the mobile menu on mobile. renamed `gh-menu-toggle` - [ ] There is weird behaviour with mobile menu when changing from big=>small=>big viewport sizes - ~~[ ] (Future issue) Ghost should remember (localstorage?) whether desktop menu is expanded or collapsed~~
2015-06-09 19:25:45 +03:00
var
mobileQuery
=
matchMedia
(
'(max-width: 800px)'
)
;
Refactor settings routing and mobile interactions Closes #3254, closes #3138, closes #3245 ### Settings Routing and View refactoring - Refactored `SettingsView` to handle transitions between mobile and desktop layouts - `SettingsRoute` will only transition to `settings.general` if the screen is large enough to show both the menu and the content - Added `SettingsIndexView` to handle showing the settings menu on mobile screens - Added `SettingsContentBaseView` to be inherited by any settings view that is not index. - Updated Settings templates appropriately to work with new views - Removed extraneous `active` class from `settings-content` - Changed settings menu to use `gh-activating-list-item` - Retooled settings tests ### Mobile Utils - Renamed file to `mobile.js`, since it's inside of `utils/` - Added `mobileQuery` MediaQueryList to help detect layout changes - Removed unused `hasTouchScreen`, `device.js` should be used instead. - Removed unused `smallScreen` function - Moved FastClickInit to codemirror-mobile
2014-07-13 21:03:48 +04:00
Abstract mobile transition interactions Closes #4032 - Created "mobile" views: `parent-view`, `content-view` and `index-view` - `mobile/parent-view` has three callbacks for managing layout, and a mediaQuery listener to keep in sync with the user - content-view and index-view use their parent-views callbacks to bring themselves into and out of the viewport as appropriate - fixed media queries for post content list from 800px to 900px - Created `mobile-index-route` to intelligently transition to a new route on desktops (used by both PostsIndexRoute and SettingsIndexRoute) - Extract mobile interactions from settings views to new mobile utility views - `js-` prefixed settings view transitions - removed unused openEditor action from PostsRoute - removed unused mobile util "responsiveAction"
2014-09-16 08:55:37 +04:00
export
default
mobileQuery
;
Reference in New Issue
Copy Permalink