Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
5dcb1251
Commit
5dcb1251
authored
12 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
collapse sidebar in mobile view FS#2473
parent
290a8064
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/tpl/dokuwiki/css/mobile.css
+22
-0
22 additions, 0 deletions
lib/tpl/dokuwiki/css/mobile.css
lib/tpl/dokuwiki/main.php
+1
-1
1 addition, 1 deletion
lib/tpl/dokuwiki/main.php
lib/tpl/dokuwiki/script.js
+9
-0
9 additions, 0 deletions
lib/tpl/dokuwiki/script.js
with
32 additions
and
1 deletion
lib/tpl/dokuwiki/css/mobile.css
+
22
−
0
View file @
5dcb1251
...
@@ -14,10 +14,30 @@
...
@@ -14,10 +14,30 @@
width
:
100%
;
width
:
100%
;
float
:
none
;
float
:
none
;
}
}
#dokuwiki__aside
>
.pad
{
#dokuwiki__aside
>
.pad
{
margin
:
0
0
.5em
;
margin
:
0
0
.5em
;
/* style like the page */
background
:
__background__
;
color
:
inherit
;
border
:
1px
solid
#eee
;
box-shadow
:
0
0
.5em
#999
;
border-radius
:
2px
;
padding
:
1em
;
margin-bottom
:
.5em
;
overflow
:
hidden
;
word-wrap
:
break-word
;
}
#dokuwiki__aside
h3
.aside
{
padding
:
0
0
.5em
;
font-size
:
.875em
;
letter-spacing
:
.1em
;
border-bottom
:
1px
solid
__border__
;
}
}
.hasSidebar
#dokuwiki__content
{
.hasSidebar
#dokuwiki__content
{
float
:
none
;
float
:
none
;
margin-left
:
0
;
margin-left
:
0
;
...
@@ -45,6 +65,7 @@
...
@@ -45,6 +65,7 @@
margin
:
0
0
1em
0
;
margin
:
0
0
1em
0
;
border-right-width
:
0
;
border-right-width
:
0
;
}
}
#dw__toc
h3
{
#dw__toc
h3
{
padding
:
0
0
.5em
;
padding
:
0
0
.5em
;
}
}
...
@@ -194,6 +215,7 @@
...
@@ -194,6 +215,7 @@
/*____________ content ____________*/
/*____________ content ____________*/
#dokuwiki__aside
>
.pad
,
.dokuwiki
div
.page
{
.dokuwiki
div
.page
{
padding
:
.5em
;
padding
:
.5em
;
}
}
...
...
This diff is collapsed.
Click to expand it.
lib/tpl/dokuwiki/main.php
+
1
−
1
View file @
5dcb1251
...
@@ -37,7 +37,7 @@ $showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($ACT=='show
...
@@ -37,7 +37,7 @@ $showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($ACT=='show
<?php
if
(
$showSidebar
)
:
?>
<?php
if
(
$showSidebar
)
:
?>
<!-- ********** ASIDE ********** -->
<!-- ********** ASIDE ********** -->
<div
id=
"dokuwiki__aside"
><div
class=
"pad include group"
>
<div
id=
"dokuwiki__aside"
><div
class=
"pad include group"
>
<
div
class=
"a
11y toggle
"
>
<?php
echo
hsc
(
ucfirst
(
$conf
[
'sidebar'
]))
?>
</
div
>
<
h3
class=
"a
side a11y
"
>
<?php
echo
hsc
(
ucfirst
(
$conf
[
'sidebar'
]))
?>
</
h3
>
<div
class=
"aside group"
>
<div
class=
"aside group"
>
<?php
tpl_flush
()
?>
<?php
tpl_flush
()
?>
<?php
tpl_includeFile
(
'sidebarheader.html'
)
?>
<?php
tpl_includeFile
(
'sidebarheader.html'
)
?>
...
...
This diff is collapsed.
Click to expand it.
lib/tpl/dokuwiki/script.js
0 → 100644
+
9
−
0
View file @
5dcb1251
jQuery
(
function
(){
// check if we are in mobile mode
if
(
jQuery
(
'
div.mobileTools
'
).
css
(
'
display
'
)
==
'
none
'
)
return
;
// toc and sidebar hiding
dw_page
.
makeToggle
(
'
#dokuwiki__aside h3.aside
'
,
'
#dokuwiki__aside div.aside
'
);
jQuery
(
'
#dw__toc > h3
'
).
click
();
jQuery
(
'
#dokuwiki__aside h3.aside
'
).
removeClass
(
'
a11y
'
).
click
();
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment