Commit graph

378 commits

Author SHA1 Message Date
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
Jana Deutschländer
432353279d Merge remote-tracking branch 'origin/bar_search' part 1
# 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:53:43 +01:00
Jana Deutschländer
5671e6e5e8 merge jde_bar_search and bar_search branch 2017-02-09 16:48:46 +01:00
Jana Deutschländer
3bd1b21aee sidebar nav reset open toggle areas when switch to wide content view 2017-02-09 11:27:52 +01:00
Jana Deutschländer
28eb39b298 merge styles of prototype beuth hs project 2017-02-09 10:12:50 +01:00
Andreas Gohr
24ab1f725c add caching and fix <g> wrapping 2017-01-19 18:30:37 +01:00
Andreas Gohr
5a65cb36d8 Merge branch 'svg-background' into 'svg-dispatch'
feat: add background-colors to SVG-dispatcher

See merge request !12
2017-01-19 16:08:06 +01:00
Jana Deutschländer
fbb87b85c4 Merge branch 'spis-master' into 'master'
SPR-768: SprintMeeting Anpassungen

See merge request !13
2017-01-18 12:43:07 +01:00
Andreas Gohr
4fd6492bc9 fixed content type header 2017-01-12 09:25:28 +01:00
Andreas Gohr
3ec07d58b7 fixed auth check 2017-01-12 09:25:13 +01:00
Jana Deutschländer
edabe53b81 trigger defaultcontent in wide-content state main menu on click 2017-01-11 18:06:07 +01:00
Jana Deutschländer
d0530116c5 mobile + js: min-height for content > sidebar hight 2017-01-11 17:51:42 +01:00
Jana Deutschländer
b7592db0de merge debug 2017-01-11 16:19:20 +01:00
Jana Deutschländer
863ddc8263 Merge remote-tracking branch 'origin/spis-master' into bar_search
# Conflicts:
#	css/area_content.less
#	css/area_nav-breadcrumb.less
2017-01-11 15:59:24 +01:00
Jana Deutschländer
659ce8325f merge mit spis vorbereiten 2017-01-11 15:51:10 +01:00
Silke Pisulla
555efed804 Merge branch 'master' of gitlab.cosmocode.de:deutschlaender/sprintdoc-template into spis-master
# Conflicts:
#	css/area_content.less
#	css/area_nav-breadcrumb.less
#	css/area_nav-metabox.less
#	css/area_sidetools.less
#	css/base_design.less
2017-01-11 15:44:24 +01:00
Silke Pisulla
00c1ebdd53 new var @fix_border-radius for no custom border-radius 2017-01-11 15:21:29 +01:00
Silke Pisulla
acc4acbcf1 new var @fix_border-radius for no custom border-radius 2017-01-11 15:20:15 +01:00
Silke Pisulla
527e72e79a SPR-768: Anpassungen - SprintMeeting 10.1.2017 - tabbox 2017-01-11 15:18:39 +01:00
Silke Pisulla
bbf124abb2 SPR-768: Anpassungen - SprintMeeting 10.1.2017 - breadcrumb padding 2017-01-11 15:17:39 +01:00
Silke Pisulla
cef85c91a1 SPR-768: Anpassungen - SprintMeeting 10.1.2017 - breadcrumb padding 2017-01-11 15:16:40 +01:00
Michael Grosse
80d784e1de feat: add background-colors to SVG-dispatcher
This extends the query with to parameters for the background:

b - wanted background color
bh - wanted background color on hover
2017-01-11 14:42:51 +01:00
Jana Deutschländer
fda6466f1a font-size des root reduziert, damit default font size 1rem entspricht 2017-01-11 14:40:43 +01:00
Andreas Gohr
1072ee525d first go at a dispatcher to dynamically recolor SVGs
The script accepts the following parameters:

svg - the SVG to load. Either an image in the img directory next to the
      script or a media file id. ACLs are checked
f   - wanted fill color
s   - wanted stroke color
fh  - wanted fill color on hover
sh  - wanted stroke color on hover

Colors are to be given in hex in the following formats:

RGB
RRGGBB
RRGGBBAA

What's missing:

* being able to define what is styled, currently hardcoded to 'path'
  elements only
* caching - no need to do all the processing every time
* background setting - that would require wrapping an additional <g>
  or <rect> element around all content and style. I'm not sure how to do
  that best.
* unit tests
2017-01-10 17:31:34 +01:00
Jana Deutschländer
2fc1643265 wide content ohne logo 2017-01-10 17:16:57 +01:00
Jana Deutschländer
b25b2fb7b6 struct font sizes, page tool icons 2017-01-10 17:14:13 +01:00
Jana Deutschländer
43d4ee93fa Merge branch 'spis-master' into 'master'
better content-togglelink

See merge request !10
2017-01-10 16:05:21 +01:00
Jana Deutschländer
ccf1b0eac9 message area + admin part 1 2017-01-10 16:04:58 +01:00
Silke Pisulla
9d4d2a1a8c better content-togglelink 2017-01-10 15:28:51 +01:00
Silke Pisulla
52928b7b4e nav-main new hover for icons 2017-01-10 14:46:56 +01:00