Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit 26c9f0e

Browse files
committed
Allow clicking through notifications
1 parent 020cd3f commit 26c9f0e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ <h1 id="fileName" class="no-zen"><span id="currentFileLocation" style="display:n
305305
<div data-click="tab" data-click-name="raw" data-l10n-id="raw" role="tab-button" data-tab-id="raw"></div>
306306
</div>
307307
</header>
308-
<div role="toolbar" id="edit-bar" class="top-bar hidden">
308+
<header role="toolbar" id="edit-bar" class="top-bar hidden">
309309
<div id="edit-zone">
310310
<ul>
311311
<li id="editorSaveButton"><button class="icon-content-save" data-click="saveFromEditor" data-l10n-title="save"></button></li>
@@ -372,7 +372,7 @@ <h1 id="fileName" class="no-zen"><span id="currentFileLocation" style="display:n
372372
<ul>
373373
</ul>
374374
</div>
375-
</div>
375+
</header>
376376
<div role="main" class="editor-container">
377377
<ul role="tabs" id="editTabs">
378378
<div role="tab" id="tab-design">

scripts/notifications.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ firetext.notify = function (message, title, time) {
2929
notification.appendChild(notificationBody);
3030

3131
notificationContainer.appendChild(notification);
32-
document.body.appendChild(notificationContainer);
32+
document.querySelector('section.current').appendChild(notificationContainer);
3333

3434
setTimeout(function(){
3535
notification.classList.add('notification-shown');
@@ -38,7 +38,7 @@ firetext.notify = function (message, title, time) {
3838
setTimeout(function(){
3939
notification.classList.remove('notification-shown');
4040
setTimeout(function(){
41-
document.body.removeChild(notificationContainer);
41+
notificationContainer.parentElement.removeChild(notificationContainer);
4242
},300);
4343
},time);
4444
}, 100);

style/desktop.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,6 @@ section[role="status"] > div {
392392
transition: opacity 0.3s;
393393
position: static;
394394
display: inline-block;
395-
pointer-events: all;
396395
}
397396

398397
section[role="status"] > div p {
@@ -402,3 +401,7 @@ section[role="status"] > div p {
402401
section[role="status"] > div.notification-shown {
403402
opacity: 1;
404403
}
404+
405+
header:hover ~ section[role="status"] > div {
406+
opacity: .5;
407+
}

0 commit comments

Comments
 (0)