diff options
| author | 2021-12-31 13:17:38 +0100 | |
|---|---|---|
| committer | 2021-12-31 13:17:38 +0100 | |
| commit | 5cac8cce7426bf8fe654bb4bebe586ffc661f68f (patch) | |
| tree | a1d64ebe30b95264ac77d1e76d9fd714ee2793e6 /app/layout | |
| parent | f27b25d9a685bd8cab48540c067685160535f438 (diff) | |
Improve: Aside slider: close slider when click on the outside of slider (#4061)
* CSS + PHTML
* give some grey background
* fixed whitespace
* fixed RTL
* close area just for mobile view
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/aside_configure.phtml | 2 | ||||
| -rw-r--r-- | app/layout/aside_feed.phtml | 3 | ||||
| -rw-r--r-- | app/layout/aside_subscription.phtml | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/app/layout/aside_configure.phtml b/app/layout/aside_configure.phtml index c790d0521..f71419dc1 100644 --- a/app/layout/aside_configure.phtml +++ b/app/layout/aside_configure.phtml @@ -1,5 +1,6 @@ <nav class="nav nav-list aside" id="aside_feed"> <a class="toggle_aside" href="#close"><?= _i('close') ?></a> + <ul> <li class="nav-header"><?= _t('gen.menu.account') ?>: <?= htmlspecialchars(Minz_Session::param('currentUser', '_'), ENT_NOQUOTES, 'UTF-8')?></li> <li class="item<?= Minz_Request::controllerName() === 'user' && Minz_Request::actionName() === 'profile' ? ' active' : '' ?>"> @@ -61,6 +62,7 @@ </li> </ul> </nav> +<a class="close-aside" href="#close">❌</a> <nav class="nav_menu nav_mobile"> <a class="btn toggle_aside" href="#aside_feed"><?= _i('category') ?></a> </nav> diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index cb4b7b80e..63dc28bd1 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -14,7 +14,7 @@ $state_filter_cat = '&state=' . $state_filter_cat; } ?> -<nav class="aside aside_feed<?= $class ?>" id="aside_feed"> +<nav class="nav aside aside_feed<?= $class ?>" id="aside_feed"> <a class="toggle_aside" href="#close"><?= _i('close') ?></a> <?php if (FreshRSS_Auth::hasAccess()) { ?> @@ -116,6 +116,7 @@ </ul> </form> </nav> +<a class="close-aside" href="#close">❌</a> <div id="first_load" class="loading"></div> <?php flush(); ?> diff --git a/app/layout/aside_subscription.phtml b/app/layout/aside_subscription.phtml index 842d8785b..aa7857f74 100644 --- a/app/layout/aside_subscription.phtml +++ b/app/layout/aside_subscription.phtml @@ -35,6 +35,7 @@ </ul> </nav> +<a class="close-aside" href="#close">❌</a> <nav class="nav_menu nav_mobile"> <a class="btn toggle_aside" href="#aside_feed"><?= _i('category') ?></a> </nav> |
