diff options
author | starxeras <149911531+starxeras@users.noreply.github.com> | 2023-11-10 20:01:19 +0000 |
---|---|---|
committer | starxeras <149911531+starxeras@users.noreply.github.com> | 2023-11-10 20:01:19 +0000 |
commit | dae82459073c18c903c0bb54c578476ed83dbfd8 (patch) | |
tree | 41cfb2633de8f0d1708cb907f6234a676e7eb37f /ext | |
parent | 8540ef19da5666885dac1ea239e2fab5e3b51abd (diff) |
Replaced `iframe.yomichan-popup`
Diffstat (limited to 'ext')
-rw-r--r-- | ext/css/popup-outer.css | 12 | ||||
-rw-r--r-- | ext/js/app/popup.js | 6 |
2 files changed, 9 insertions, 9 deletions
diff --git a/ext/css/popup-outer.css b/ext/css/popup-outer.css index 6fd32dc5..4d8169ab 100644 --- a/ext/css/popup-outer.css +++ b/ext/css/popup-outer.css @@ -16,7 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -iframe.yomichan-popup { +iframe.yomitan-popup { all: initial; font-size: 1px; background-color: #ffffff; @@ -28,20 +28,20 @@ iframe.yomichan-popup { z-index: 2147483647; box-sizing: border-box; } -iframe.yomichan-popup[data-theme=dark] { +iframe.yomitan-popup[data-theme=dark] { background-color: #1e1e1e; border-color: #666666; } -iframe.yomichan-popup[data-outer-theme=dark] { +iframe.yomitan-popup[data-outer-theme=dark] { box-shadow: 0 0 10em rgba(255, 255, 255, 0.5); } -iframe.yomichan-popup[data-popup-display-mode=full-width] { +iframe.yomitan-popup[data-popup-display-mode=full-width] { border-left: none; border-right: none; } -iframe.yomichan-popup[data-popup-display-mode=full-width][data-below=true] { +iframe.yomitan-popup[data-popup-display-mode=full-width][data-below=true] { border-bottom: none; } -iframe.yomichan-popup[data-popup-display-mode=full-width]:not([data-below=true]) { +iframe.yomitan-popup[data-popup-display-mode=full-width]:not([data-below=true]) { border-top: none; } diff --git a/ext/js/app/popup.js b/ext/js/app/popup.js index 6f1807a6..90f73847 100644 --- a/ext/js/app/popup.js +++ b/ext/js/app/popup.js @@ -113,7 +113,7 @@ export class Popup extends EventDispatcher { this._frameSizeContentScale = null; this._frameClient = null; this._frame = document.createElement('iframe'); - this._frame.className = 'yomichan-popup'; + this._frame.className = 'yomitan-popup'; this._frame.style.width = '0'; this._frame.style.height = '0'; @@ -359,7 +359,7 @@ export class Popup extends EventDispatcher { useWebExtensionApi = false; parentNode = this._shadow; } - const node = await dynamicLoader.loadStyle('yomichan-popup-outer-user-stylesheet', 'code', css, useWebExtensionApi, parentNode); + const node = await dynamicLoader.loadStyle('yomitan-popup-outer-user-stylesheet', 'code', css, useWebExtensionApi, parentNode); this.trigger('customOuterCssChanged', {node, useWebExtensionApi, inShadow}); } @@ -537,7 +537,7 @@ export class Popup extends EventDispatcher { useWebExtensionApi = false; parentNode = this._shadow; } - await dynamicLoader.loadStyle('yomichan-popup-outer-stylesheet', fileType, '/css/popup-outer.css', useWebExtensionApi, parentNode); + await dynamicLoader.loadStyle('yomitan-popup-outer-stylesheet', fileType, '/css/popup-outer.css', useWebExtensionApi, parentNode); } _observeFullscreen(observe) { |