Focus/hover for buttons in toolbar

pull/5742/merge
Aleksander Machniak 7 years ago
parent a63cef3f84
commit 9f4d11a131

@ -48,20 +48,26 @@
// Toolbar // Toolbar
@color-toolbar-button: @color-font; @color-toolbar-button: @color-font;
@color-toolbar-button-background-hover: tint(@color-main, 96%);
@color-searchbar-icon-active: green; @color-searchbar-icon-active: green;
// Toolbar menu
@color-toolbarmenu-hover: #fff;
@color-toolbarmenu-hover-background: darken(@color-main, 20%);
// Listings // Listings
@color-list: @color-font; @color-list: @color-font;
@color-list-selected: inherit; @color-list-selected: inherit;
@color-list-selected-background: tint(@color-main, 96%); /*#f8fafb;*/ @color-list-selected-background: tint(@color-main, 96%);
@color-list-flagged: #ff5c33; @color-list-flagged: #ff5c33;
@color-list-deleted: #ccc; @color-list-deleted: #ccc;
@color-list-secondary: #666; @color-list-secondary: #666;
@color-list-droptarget-background: #ffffcc; @color-list-droptarget-background: #ffffcc;
@color-list-focus-indicator: #ccc; @color-list-focus-indicator: lighten(@color-main, 20%);
@color-list-border: #f4f4f4; @color-list-border: #f4f4f4;
@color-list-badge: #fff; @color-list-badge: #fff;
@ -71,11 +77,6 @@
@color-list-recent-badge-background: @color-list-recent; @color-list-recent-badge-background: @color-list-recent;
// Toolbar menu
@color-toolbarmenu-hover: #fff;
@color-toolbarmenu-hover-background: blue;
// Drag-n-drop layer // Drag-n-drop layer
@color-drag-layer: #fff; @color-drag-layer: #fff;
@color-drag-layer-background: #444; @color-drag-layer-background: #444;

@ -23,6 +23,7 @@
a.button { a.button {
padding: 0 .3em; padding: 0 .3em;
display: inline-block; display: inline-block;
border: 0 !important;
&:before { &:before {
&:extend(.font-icon-class); &:extend(.font-icon-class);
@ -120,10 +121,6 @@
} }
.dropbutton { .dropbutton {
a.button:first-child {
padding-right: 0;
}
a.button.dropdown { a.button.dropdown {
font-size: 75%; font-size: 75%;
@ -328,7 +325,14 @@
margin: 0; margin: 0;
line-height: 1.75; line-height: 1.75;
} }
&:not(.disabled):focus,
&:not(.disabled):hover {
background-color: @color-toolbar-button-background-hover;
outline: 0;
}
} }
a span.inner { a span.inner {
font-size: 90%; font-size: 90%;
} }
@ -345,7 +349,7 @@
display: inline-block; display: inline-block;
&:hover { &:hover {
background-color: #f4f4f4; /* TODO */ background-color: @color-toolbar-button-background-hover;
} }
a.button.dropdown { a.button.dropdown {
@ -353,7 +357,7 @@
padding: 0 .3rem; padding: 0 .3rem;
&:hover { &:hover {
background-color: #f0f0f0; /* TODO */ background-color: darken(@color-toolbar-button-background-hover, 5%);
} }
&:before { &:before {

Loading…
Cancel
Save