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

View file

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

View file

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