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
cc57a25b
Commit
cc57a25b
authored
11 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
use only one mixin name for pagetools
less will use the right one based on parameter counts
parent
fb845f0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/tpl/dokuwiki/css/pagetools.less
+29
-15
29 additions, 15 deletions
lib/tpl/dokuwiki/css/pagetools.less
with
29 additions
and
15 deletions
lib/tpl/dokuwiki/css/pagetools.less
+
29
−
15
View file @
cc57a25b
...
...
@@ -165,6 +165,12 @@
@pagetools_icon_space: -90px;
/**
* page tools without highlighting
*
* @param string @action The action class
* @param int @position Position in the page tools
*/
.pagetools-item(@action, @position) {
@position-active: (@position+0.5);
...
...
@@ -190,19 +196,27 @@
}
}
}
.pagetools-item-highlight(@action, @position, @mode) {
.pagetools-item(@action, @position);
@position-active: (@position+0.5);
.mode_@{mode} #dokuwiki__pagetools ul li a.@{action} {
background-position: right @pagetools_icon_space * @position-active;
&:before {
margin-top: @pagetools_icon_space * @position-active;
}
}
[dir=rtl] .mode_@{mode} #dokuwiki__pagetools ul li a.@{action} {
background-position: left @pagetools_icon_space * @position-active;
/**
* page tools with highlighting
*
* @param string @action The action class
* @param int @position Position in the page tools
* @param string @mode The mode in which this tool should be highlighted
*/
.pagetools-item(@action, @position, @mode) {
.pagetools-item(@action, @position);
@position-active: (@position+0.5);
.mode_@{mode} #dokuwiki__pagetools ul li a.@{action} {
background-position: right @pagetools_icon_space * @position-active;
&:before {
margin-top: @pagetools_icon_space * @position-active;
}
}
[dir=rtl] .mode_@{mode} #dokuwiki__pagetools ul li a.@{action} {
background-position: left @pagetools_icon_space * @position-active;
}
}
.pagetools-item(edit, 1);
...
...
@@ -210,10 +224,10 @@
.pagetools-item(show, 4);
.pagetools-item(source, 5);
.pagetools-item(draft, 3);
.pagetools-item
-highlight
(revs, 7, revisions);
.pagetools-item
-highlight
(backlink, 8, backlink);
.pagetools-item(revs, 7, revisions);
.pagetools-item(backlink, 8, backlink);
.pagetools-item(top, 10);
.pagetools-item
-highlight
(revert, 6, revert);
.pagetools-item
-highlight
(subscribe, 9);
.pagetools-item(revert, 6, revert);
.pagetools-item(subscribe, 9
, subscribe
);
.pagetools-item(mediaManager, 11);
.pagetools-item(back, 12);
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