Commit graph

69 commits

Author SHA1 Message Date
a4e83ec21a
WIP 02: style adjustments to match eh22 styleguide 2025-02-15 13:00:05 +01:00
Anna Dabrowska
38a9339b8c Remove obsolete JavaScript
replaces pr 
2024-10-14 14:37:40 +02:00
Andreas Gohr
63c9c46151 ignore JS only links when simplifying the sidebar 2021-11-09 12:16:26 +01:00
Frieder Schrempf
11b00783f8
Use direct links for sidebar elements with only a single subitem
If a sidebar toggler contains only a single item with a link, there
is no need to create a toggler with subnav at all. Let's just remove
the subnav and link to the target directly.

Signed-off-by: Frieder Schrempf <dev@fris.de>
2021-04-18 17:22:48 +02:00
Andreas Gohr
afa797dbbd easier anchor linking 2020-11-19 12:35:24 +01:00
Anna Dabrowska
a0b1eecca4 Sticky meta tabs (TOC etc.) 2020-01-22 12:01:35 +01:00
Anna Dabrowska
e78ffc6c79 Separate states of different sidebars 2019-05-13 18:19:31 +02:00
Andreas Gohr
4ac10cf3be use a smooth animation to fade in the navigation
This avoids the flash of unstyled/unprocessed content
2019-03-21 11:36:05 +01:00
Michael Große
bd04be26c6
Remember that the content was narrow before
Steps to reproduce bug:
----------------------
1. View page with narrow content
2. Edit page --> wide content (this is correct)
3. Cancel/Save
4. Page has now wide content, but should have narrow content

Fix
---
Only remember width of content when we are view a page, i.e. `do=show`

SPR-982
2017-05-29 17:48:34 +02:00
Jana Deutschländer
c6a2583846 SPR-980: close meta box after click on TOC anchor 2017-05-03 16:53:42 +02:00
Jana Deutschländer
60443fd414 more spacing between nav main nav tools and starred 2017-05-03 16:46:58 +02:00
Jana Deutschländer
7d802b57a2 keyboard access + direct link scrolling 2017-05-02 16:29:02 +02:00
Jana Deutschländer
7ed058942a SPR-953: bugfixes for content-wide nav 2017-05-02 10:26:13 +02:00
Jana Deutschländer
30aa8e9544 SPR-953: bugfixes for content-wide nav 2017-04-27 17:40:46 +02:00
Jana Deutschländer
13c822c242 SPR-953: sessionStorage handling for template menus 2017-04-27 16:06:10 +02:00
Jana Deutschländer
045d16c471 SPR-953: menu state is-active and span.curid for site tools and user tools 2017-04-27 15:14:18 +02:00
Jana Deutschländer
645e161a49 SPR-953: menu states is-open and is-active for contentMenu $toggler 2017-04-27 12:19:05 +02:00
Jana Deutschländer
4a0e15e1d3 Merge remote-tracking branch 'origin/title' 2017-04-26 17:48:39 +02:00
Andreas Gohr
84f9464195 SPR-972 add more info to the breadcrumb
* add the current admin plugin to the breadcrumb
* use proper translations for the various modes
* do no longer rely on JavaScript for the enhanced breadcrumb
* add image name in breadcrumb for detail view
2017-04-26 14:57:49 +02:00
Andreas Gohr
9e264cdc04 show sidebar label on collapsed sidebar SPR-957
This removes the base z-indexes as they seem not to be needed (source
order defines initial heights) and interfered with the sidbar functionality.

Removing it was suggested in SPR-899 as well
2017-04-24 15:53:27 +02:00
Michael Große
6df4603459
Explicitly refer to the global sessionStorage
Using this as a local variable might break in some browsers.
2017-04-20 16:30:50 +02:00
Michael Große
fdf5eaea74
Remember sidebar toggle-state
While browsing a wiki, it would be nice if it would remember whether the
content is wide or not.

SPR-883
2017-04-20 16:23:26 +02:00
Michael Große
b8a4cc913e
Fix not correctly forgetting section-open state
The sidebar is intended to close all sections when the content is wide
and set their default back to closed.

SPR-883
2017-04-20 15:50:53 +02:00
Jana Deutschländer
b45353102a SPR-935: meta box toc tab open after pageload 2017-04-20 15:05:05 +02:00
Jana Deutschländer
4e86a8f0c2 SPR-930: pseudo state for breadcrumb on detail template
SPR-814: prevent Uncaught TypeErrors of JSINFO in detail template
2017-04-20 12:50:16 +02:00
Jana Deutschländer
9fbd182782 Merge branch 'pageattributes' into 'master'
refactoring der Pageattributes (qc und do)

See merge request 
2017-04-19 16:16:08 +02:00
Jana Deutschländer
a21c6f8785 SPR-869: debug for wiki in root 2017-04-13 12:44:53 +02:00
Michael Große
2bd7f884e5
Remember sidebar section state when browsing the wiki
So we do not have to open the same section of the sidebar every time, we click
 a link to a new page.
It forgets the toggle-state if the content is manually or automatically
widened, for example by clicking on an edit-button.

SPR-883
2017-04-12 17:20:36 +02:00
Michael Große
cb7cc643bf
Make sidebar toggle elements configurable
Current options are h1, h1 and h2, h1-h5, top-level list items

SPR-754
2017-04-12 13:35:33 +02:00
Andreas Gohr
fbf9e9d682 integrate QC plugin (ajax branch)
This refactors the page-attribute area a bit and intergrates the new
ajax branch of the QC plugin. I'm not really happy about the included
file - it should probably be moved to our Template class instead.
2017-03-09 16:15:10 +01:00
Andreas Gohr
0503402fda fixed wrong scope for function definition 2017-03-08 10:34:23 +01:00
Jana Deutschländer
d19c9b956a SPR-840: debug IE10 (vendor extensions for flex) 2017-03-02 17:11:45 +01:00
Jana Deutschländer
b10c27f3f2 SPR-840: debug sidebar script IE10, styling for mobile menu
debug background-color: qc
2017-03-02 16:45:22 +01:00
Jana Deutschländer
75a1a114df Merge remote-tracking branch 'origin/mobilesidebar' 2017-03-02 12:11:51 +01:00
Andreas Gohr
1b74bdc158 fixed clicking links in sidebar 2017-02-23 09:52:02 +01:00
Jana Deutschländer
2eac3d457e SPR-753: add ACT mode as node to breadcrumb 2017-02-22 16:48:42 +01:00
Andreas Gohr
4055de39fa mobile handling of the sidebar SPR-840 2017-02-22 14:58:43 +01:00
Andreas Gohr
560d730c9c Merge branch 'sidebar' into details
* sidebar:
  use a instead of h6 in navigation
  make sidebar headers toggable via keyboard
2017-02-22 13:57:26 +01:00
Andreas Gohr
06938c6d7c use a instead of h6 in navigation
this makes focusing and selecting in assistive technologies easier
2017-02-22 12:12:04 +01:00
Andreas Gohr
bed1717f37 make sidebar headers toggable via keyboard 2017-02-22 11:48:17 +01:00
Andreas Gohr
d8b607a333 Merge branch 'sidebar' into live
* sidebar:
  simplistic qsearch support
  reveal sidebar when clicking the search icon
2017-02-21 15:22:00 +01:00
Andreas Gohr
a36c5fa052 reveal sidebar when clicking the search icon 2017-02-21 15:09:01 +01:00
Andreas Gohr
248d08817b Merge branch 'sidebar' into live
* sidebar:
  fix problems with ini handling in svg dispatch
  added profile link to usertools in sidebar
  finally align the menu items correctly
  some more list adjustments for sidebar
  add level1 class to fake inpage lists
  adjusted language
  some style adjustments for the sidebar
  complete refactor of the sidebar behaviour javascript RES-754
  style the fake icon
  use jQuery slector to define the elements
  directly embed SVGs for better styling
  very simple styling of the new sidebar behaviour.
  New sidebar JavaScript logic
  allow style.ini replacements in SVG dispatcher
  SVG Dispatch: allow for referencing material design icons
  add caching and fix <g> wrapping
  fixed content type header
  fixed auth check
  feat: add background-colors to SVG-dispatcher
  first go at a dispatcher to dynamically recolor SVGs
2017-02-21 13:46:23 +01:00
Andreas Gohr
fa1028ad60 finally align the menu items correctly
I had to wrap the labels in their own span and use flex box to make them
behave correctly. Simplifications welcome.
2017-02-16 16:58:36 +01:00
Andreas Gohr
6c61749bf2 complete refactor of the sidebar behaviour javascript RES-754
Now all toggling of the sidebar and the related menus is done through
the same click handler. HTML has been unified. All sidebar related
content is now in a single include file instead of several. Icons for
the site tools user tools and trace have been added.

The CSS for the whole sidebar still has to be refactored.
2017-02-16 14:40:25 +01:00
Andreas Gohr
435c8032f2 allow closing tabs by clicking them again
also pass the proper type to attr() - it expects strings!
2017-02-15 16:02:00 +01:00
Andreas Gohr
c93c93a805 simplify meta box tab handling RES-799
This simplifies the tab handling by attaching one click handler to
handle the open/close mechanism for all tabs. It should now allow to
dynamically add tabs even after the fact and the handler should still
work.

Support for the actual tab contents has been removed for now. This
should most probably be readded via PHP anyway.
2017-02-15 15:50:11 +01:00
Andreas Gohr
285c4f96a7 style the fake icon
When no icon is provided, we use the first two letters as icon. A fancy
border makes it look more like an icon.
2017-02-15 14:58:36 +01:00
Andreas Gohr
f293a16b9c use jQuery slector to define the elements
This makes it possible to use multiple. For now I just use all headlines
2017-02-14 11:59:08 +01:00
Andreas Gohr
eaccab8168 Merge branch 'master' into sidebar
* master:
  show license not copyright SPR-794
  use proper translation mechanism for JS SPR-798
  added type ints for other plugins
  SPR-797 fix ID uniqueness
2017-02-14 11:21:52 +01:00