mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fix 7142 search outline in chrome like browsers (#7317)
* fix 7142 search outline in chrome like browsers * use moz-focusring only for FF, outline-initial for Chrome * moz-focusring remove outline-offset * remove box-sizing from base, because it's part of reset * remove redundant box-sizing since it is part of reset * fix distance between search input and first button to the right
This commit is contained in:
parent
6264aa22d0
commit
bcae5cc2ef
@ -39,6 +39,7 @@ caption: {{$:/language/Search/Standard/Caption}}
|
|||||||
</$keyboard>
|
</$keyboard>
|
||||||
</$keyboard>
|
</$keyboard>
|
||||||
</$keyboard>
|
</$keyboard>
|
||||||
|
 
|
||||||
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
<$reveal state="$:/temp/advancedsearch" type="nomatch" text="">
|
||||||
<$button class="tc-btn-invisible">
|
<$button class="tc-btn-invisible">
|
||||||
<<cancel-search-actions>>
|
<<cancel-search-actions>>
|
||||||
|
@ -55,7 +55,7 @@ tags: $:/tags/SideBarSegment
|
|||||||
<$macrocall $name="keyboard-driven-input" tiddler=<<editTiddler>> storeTitle=<<searchTiddler>>
|
<$macrocall $name="keyboard-driven-input" tiddler=<<editTiddler>> storeTitle=<<searchTiddler>>
|
||||||
selectionStateTitle=<<searchListState>> refreshTitle="$:/temp/search/refresh" type="search"
|
selectionStateTitle=<<searchListState>> refreshTitle="$:/temp/search/refresh" type="search"
|
||||||
tag="input" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify "$:/state/popup/search-dropdown">>
|
tag="input" focus={{$:/config/Search/AutoFocus}} focusPopup=<<qualify "$:/state/popup/search-dropdown">>
|
||||||
class="tc-popup-handle" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<<cancel-search-actions>>
|
class="tc-tiny-gap-right tc-popup-handle" filterMinLength={{$:/config/Search/MinLength}} inputCancelActions=<<cancel-search-actions>>
|
||||||
inputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> cancelPopups="yes"
|
inputAcceptActions=<<input-accept-actions>> inputAcceptVariantActions=<<input-accept-variant-actions>> cancelPopups="yes"
|
||||||
configTiddlerFilter="[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]"/>
|
configTiddlerFilter="[[$:/state/search/currentTab]!is[missing]get[text]] ~[{$:/config/SearchResults/Default}]"/>
|
||||||
</form>
|
</form>
|
||||||
|
@ -71,10 +71,16 @@ $else$
|
|||||||
|
|
||||||
{{$:/themes/tiddlywiki/vanilla/reset}}
|
{{$:/themes/tiddlywiki/vanilla/reset}}
|
||||||
|
|
||||||
*, input[type="search"] {
|
input[type="search"] {
|
||||||
box-sizing: border-box;
|
outline-offset: initial;
|
||||||
-moz-box-sizing: border-box;
|
}
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
|
button, textarea, input, select {
|
||||||
|
outline-color: <<colour primary>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
:-moz-focusring {
|
||||||
|
outline: 2px solid <<colour primary>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user