mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-02-02 19:39:23 +01:00
[refactor] remove shade prefixing
This commit is contained in:
parent
3572591563
commit
eea8345dd1
@ -1,4 +1,4 @@
|
||||
.m-shade {
|
||||
.shade {
|
||||
background-color: rgba(var(--accent), 0.5);
|
||||
position: fixed;
|
||||
top: -1em;
|
||||
|
@ -3,7 +3,7 @@ var shade = (function() {
|
||||
var previousShade = null;
|
||||
|
||||
function destroy() {
|
||||
var all_shade = helper.eA(".js-shade");
|
||||
var all_shade = helper.eA(".shade");
|
||||
if (all_shade[0]) {
|
||||
for (var i = 0; i < all_shade.length; i++) {
|
||||
all_shade[i].destroy();
|
||||
@ -27,7 +27,7 @@ var shade = (function() {
|
||||
var _render_shade = function() {
|
||||
var body = helper.e("body");
|
||||
var shade = document.createElement("div");
|
||||
shade.setAttribute("class", "m-shade js-shade");
|
||||
shade.setAttribute("class", "shade");
|
||||
if (defaultOptions.includeHeader) {
|
||||
helper.addClass(shade, "m-shade-top");
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user