mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-19 01:48:09 +00:00
fix: code style and types
This commit is contained in:
parent
3bcd822c97
commit
07130c2ad0
@ -72,8 +72,6 @@ exports.startup = function() {
|
||||
});
|
||||
// Install the tm-focus-selector message
|
||||
$tw.rootWidget.addEventListener("tm-focus-selector",function(event) {
|
||||
event = $tw.hooks.invokeHook("th-focus-selector",event);
|
||||
if (!event) return;
|
||||
var selector = event.param || "",
|
||||
element,
|
||||
baseElement = event.event && event.event.target ? event.event.target.ownerDocument : document;
|
||||
|
@ -81,7 +81,7 @@ BlockIdWidget.prototype._scrollToBlockAndHighlight = function(element) {
|
||||
};
|
||||
|
||||
BlockIdWidget.prototype.removeChildDomNodes = function() {
|
||||
$tw.hooks.removeHook("th-focus-selector",this.hookNavigatedEvent);
|
||||
$tw.hooks.removeHook("th-navigated",this.hookNavigatedEvent);
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -2413,7 +2413,7 @@ html body.tc-body.tc-single-tiddler-window {
|
||||
color: <<colour alert-highlight>>;
|
||||
}
|
||||
|
||||
@keyframes fadeHighlight {
|
||||
@keyframes fade-highlight {
|
||||
0% {
|
||||
background-color: <<colour highlight-background>>;
|
||||
border-color: <<colour highlight-background>>;
|
||||
@ -2425,7 +2425,7 @@ html body.tc-body.tc-single-tiddler-window {
|
||||
}
|
||||
|
||||
.tc-focus-highlight {
|
||||
animation: fadeHighlight 2s forwards;
|
||||
animation: fade-highlight 2s forwards;
|
||||
}
|
||||
|
||||
@media (min-width: <<sidebarbreakpoint>>) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user