Merge branch 'fixFocusForPLugins' into 'master'

Fix focus for plugins

See merge request !65
This commit is contained in:
Jana Deutschländer 2017-05-02 17:33:05 +02:00
commit 71ef6e785c
3 changed files with 24 additions and 13 deletions

View file

@ -31,33 +31,43 @@ ul.page-attributes {
&.user-task {
position: relative;
a {
overflow: visible;
white-space: normal; // Is this still needed?
text-indent: 0;
button {
border-radius: @ini_default_border_radius;
border: 1px solid @wikiicons-border;
padding: .14rem 0 0 0;
min-width: 2rem;
min-height: 28px;
background: @ini_background none;
&::before {
content: ''; // remove when fontello is removed from usertools
}
&:hover,
&:focus,
&:active {
background: @ini_nav_menu_hover_color none;
border: none;
svg path {
fill: @ini_background;
}
}
}
svg {
width: 20px;
margin-top: 2px;
path {
fill: @ini_nav_menu_hover_color;
}
@media @screen_max-md {
margin-top: 4px;
}
}
&:hover {
:not(.noopentasks) {
svg path {
fill: @ini_background;
}
}
}
.noopentasks {
span {
background-color: @ini_background_site;

View file

@ -17,6 +17,7 @@
}
a:hover,
a:focus,
a:active {
.starred svg {
fill: @ini_nav_menu_hover_bg;

View file

@ -83,7 +83,7 @@ class tpl {
$args['rel'] = 'nofollow';
}
$args['href'] = $link;
$args['href'] = $link ?: '#';
$svg = inlineSVG($svg);
if(!$svg) $svg = inlineSVG(__DIR__ . '/images/tools/' . self::$icons['default']);