Skip to content

Commit

Permalink
Move styles alongside code
Browse files Browse the repository at this point in the history
  • Loading branch information
knabar committed Mar 18, 2024
1 parent 793cdfc commit 4e90bca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,22 @@ OME.progress_overlay = function (promise, message) {
promise.finally(() => dialog.dialog('destroy').remove());
return dialog;
};

// add styles
(function () {
'use strict';
const styleSheet = document.createElement("style");
styleSheet.innerText = `
.ome-modal-progress button {
display: none;
}
.ome-modal-progress .ui-dialog-content {
justify-content: center;
align-items: center;
font-size: larger;
display: flex;
}
`;
document.head.appendChild(styleSheet);
})();
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,6 @@
.line {
fill: none;
}

.ome-modal-progress button {
display: none;
}
.ome-modal-progress .ui-dialog-content {
justify-content: center;
align-items: center;
font-size: larger;
display: flex;
}
</style>


Expand Down

0 comments on commit 4e90bca

Please sign in to comment.