Commit graph

607 commits

Author SHA1 Message Date
Andreas Gohr
f6216bf7c2 Merge branch 'master' into live
* master:
  SPR-815 remove unused roboto font
  SPR-800 remove unused function file
  use simpler striped pattern for section highlight
  activate deployment
  Add fabfile.py
2017-02-21 15:21:50 +01:00
Andreas Gohr
95732eecdc simplistic qsearch support
This disabled the browser's own autocompletion, but every other position
looks weird.
2017-02-21 15:16:28 +01:00
Andreas Gohr
a36c5fa052 reveal sidebar when clicking the search icon 2017-02-21 15:09:01 +01:00
Andreas Gohr
1bd0290f07 SPR-815 remove unused roboto font 2017-02-21 14:44:37 +01:00
Andreas Gohr
751873d6fe SPR-800 remove unused function file 2017-02-21 14:42:11 +01:00
Andreas Gohr
2b6ae420f6 use simpler striped pattern for section highlight 2017-02-21 14:32:53 +01:00
Karsten Kosmala
8552c6f62b activate deployment 2017-02-21 13:57:46 +01:00
Karsten Kosmala
26fe6117c4 Add fabfile.py 2017-02-21 13:56:11 +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
3a6eaa0b7a SPR-787 use proper fallbacks for main logo as well 2017-02-21 13:32:57 +01:00
Andreas Gohr
e988c1764f fix problems with ini handling in svg dispatch 2017-02-21 13:03:41 +01:00
Andreas Gohr
06cdf1484d SPR-787 use same logo resized 2017-02-20 16:21:45 +01:00
Andreas Gohr
ef84665d4a added profile link to usertools in sidebar 2017-02-20 12:38:01 +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
0cdca1153e some more list adjustments for sidebar 2017-02-16 15:54:29 +01:00
Andreas Gohr
373f4a8f3a add level1 class to fake inpage lists 2017-02-16 15:48:36 +01:00
Andreas Gohr
9eec2b7fe2 adjusted language 2017-02-16 15:13:48 +01:00
Andreas Gohr
83e6372c7d some style adjustments for the sidebar
There is no need to differentiate between site tools and the navigation
anymore. Instead now it's differentiated between the navigation tools
and the displayed content.
2017-02-16 15:10:50 +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
2387fd467e moved tab logic to a new class
More of the logic should be moved to this class
2017-02-15 17:05:00 +01:00
Andreas Gohr
be2c364538 simplistic fix for too narrow TOC when no other tabs available
This simply sets a minimum width and right alings the panel. I'm open
for better suggestions.
2017-02-15 16:25:43 +01:00
Andreas Gohr
ec6c921996 fixed missing closing a tag 2017-02-15 16:25:26 +01:00
Andreas Gohr
038d4bfe8d moved tab generation to PHP, no empty tabs SPR-799
I still don't like the code directly in the template there. I think it
should be moved to a helper class.

The TOC CSS seems to be broken when there are no tabs right of the TOC.
2017-02-15 16:17:17 +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
Andreas Gohr
a74658ac49 show license not copyright SPR-794 2017-02-14 11:15:18 +01:00
Andreas Gohr
fa2e06046c use proper translation mechanism for JS SPR-798 2017-02-14 10:41:41 +01:00
Andreas Gohr
a1de3dc148 added type ints for other plugins 2017-02-14 10:21:20 +01:00
Silke Pisulla
e1a580f40a Merge branch 'master' of gitlab.cosmocode.de:deutschlaender/sprintdoc-template into spis-master
# Conflicts:
#	css/plugins/edit.less
2017-02-14 09:26:02 +01:00
Andreas Gohr
e1fee95368 SPR-797 fix ID uniqueness
As explained on https://www.dokuwiki.org/devel:javascript#using_ids IDs
may not clash with headlines. To avoid that all IDs have to use two
subsequent underscores.
2017-02-13 16:53:06 +01:00
Andreas Gohr
9fd3d99b8f directly embed SVGs for better styling
Now the SVGs are loaded via AJAX and are directly embedded into the
HTML. This allows for styling them via CSS and we can apply proper hover
styles.

The svg dispatcher was extended with an embed option (boolean parameter
'e') which will return an absolute minimum svg with absolutely no
styles.
2017-02-13 16:19:43 +01:00
Andreas Gohr
96fae1c8bc very simple styling of the new sidebar behaviour.
I had a really hard time to understand the existing CSS which seemed
much too complicated for what it does.

Variable use was suboptimal. I couldn't figure out which variable
defines the proper size for the icon and the resulting margin.
2017-02-13 15:28:40 +01:00
Andreas Gohr
9d8dba1489 New sidebar JavaScript logic
This implements the JS logic as discussed in our meeting. A sidebar can
now contain virtually any wiki syntax. (currently hardcoded) H2 elements
will toggle all their following content which is wrapped in a wrapper
div.

This is currently implemented on top of the old JavaScript which should
be removed.

The toggle element should be made configurable.

We probably want to reuse some of the toggle logic for the user tools.
2017-02-13 15:17:18 +01:00
Andreas Gohr
94def893f0 allow style.ini replacements in SVG dispatcher 2017-02-13 14:28:04 +01:00
Andreas Gohr
c24a2e1e52 SVG Dispatch: allow for referencing material design icons
A SVG not found in the template or in the local media storage will now
be looked up in the Material Design Icon library (via a cached HTTP
request to the rawgit CDN).
2017-02-13 14:02:16 +01:00
Andreas Gohr
09aeb71c54 Merge remote-tracking branch 'origin/svg-dispatch' into sidebar
* origin/svg-dispatch:
  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-13 13:42:29 +01:00
Silke Pisulla
ccfc6726be wrong float for edit button for table 2017-02-10 13:34:03 +01:00
Silke Pisulla
d2177fbfc2 bug in mediaqueries 2017-02-10 13:33:28 +01:00
Silke Pisulla
909a97a095 positionierung 2017-02-10 13:33:10 +01:00
Andreas Gohr
9281ecfa76 fixed line endings CRLF -> LF 2017-02-09 17:48:44 +01:00
Andreas Gohr
6b795a1e14 move msg area down to content area. fixes SPR-792 2017-02-09 17:40:18 +01:00
Andreas Gohr
aef104329a fix name of toc tab 2017-02-09 17:38:51 +01:00
Andreas Gohr
59568563a3 use new admin.less instead of admin.css 2017-02-09 17:38:15 +01:00
Andreas Gohr
55a903a9da changed default logo location (and line endings) 2017-02-09 17:37:38 +01:00
Jana Deutschländer
9d282a57d4 debug breadcrumb height vs search toggle icon 2017-02-09 17:06:55 +01:00
Jana Deutschländer
6924827172 merge part 2 2017-02-09 17:03:14 +01:00
Jana Deutschländer
4b8b659179 merge part 2
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2017-02-09 16:59:16 +01:00