Bug 1285814 - Use the new 10.10 focus styling for the findbar-textbox and -buttons. r=dao

This commit is contained in:
Richard Marti 2016-07-09 21:59:57 +02:00
Родитель d1025c9eea
Коммит ed9714dcad
2 изменённых файлов: 20 добавлений и 1 удалений

Просмотреть файл

@ -132,6 +132,19 @@ label.findbar-find-fast:-moz-lwtheme,
box-shadow: @focusRingShadow@, @roundButtonPressedShadow@;
}
@media (-moz-mac-yosemite-theme) {
.findbar-container > toolbarbutton:-moz-focusring,
.findbar-find-next:-moz-focusring,
.findbar-find-previous:-moz-focusring {
box-shadow: @yosemiteFocusRingShadow@, @roundButtonShadow@;
}
.findbar-find-next:hover:active:-moz-focusring,
.findbar-find-previous:hover:active:-moz-focusring {
box-shadow: @yosemiteFocusRingShadow@, @roundButtonPressedShadow@;
}
}
/* Search field */
.findbar-textbox {
@ -170,6 +183,12 @@ label.findbar-find-fast:-moz-lwtheme,
box-shadow: @focusRingShadow@;
}
@media (-moz-mac-yosemite-theme) {
.findbar-textbox[focused="true"] {
box-shadow: @yosemiteFocusRingShadow@;
}
}
.findbar-textbox[flash="true"] {
background-color: #F7E379;
}

Просмотреть файл

@ -2,7 +2,7 @@
%define loweredShadow 0 1px rgba(255, 255, 255, .4)
%define focusRingShadow 0 0 1px -moz-mac-focusring inset, 0 0 4px 1px -moz-mac-focusring, 0 0 1.5px 1px -moz-mac-focusring
%define yosemiteFocusRingShadow 0 0 0 0.5px -moz-mac-focusring inset, 0 0 0 2px -moz-mac-focusring;
%define yosemiteFocusRingShadow 0 0 0 0.5px -moz-mac-focusring inset, 0 0 0 2px -moz-mac-focusring
%define roundButtonBorder 1px solid rgba(0,0,0,.35)
%define roundButtonBackground linear-gradient(#f6f6f6, #e9e9e9)