diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/bg/search.html | 2 | ||||
| -rw-r--r-- | ext/bg/settings-popup-preview.html | 2 | ||||
| -rw-r--r-- | ext/fg/css/client.css | 12 | ||||
| -rw-r--r-- | ext/fg/float.html | 2 | ||||
| -rw-r--r-- | ext/fg/js/popup.js | 2 | ||||
| -rw-r--r-- | ext/mixed/css/display.css | 8 | 
6 files changed, 14 insertions, 14 deletions
| diff --git a/ext/bg/search.html b/ext/bg/search.html index 6930830a..9d28b358 100644 --- a/ext/bg/search.html +++ b/ext/bg/search.html @@ -1,5 +1,5 @@  <!DOCTYPE html> -<html lang="en" class="yomichan-search"> +<html lang="en" data-yomichan-page="search">      <head>          <meta charset="UTF-8">          <meta name="viewport" content="width=device-width,initial-scale=1" /> diff --git a/ext/bg/settings-popup-preview.html b/ext/bg/settings-popup-preview.html index 3d426f7a..bfe4550c 100644 --- a/ext/bg/settings-popup-preview.html +++ b/ext/bg/settings-popup-preview.html @@ -24,7 +24,7 @@                  font-family: "Helvetica Neue", Helvetica, Arial ,sans-serif;                  font-size: 14px;              } -            iframe#yomichan-float { +            iframe.yomichan-float {                  resize: none;              }              .vertical-align-outer { diff --git a/ext/fg/css/client.css b/ext/fg/css/client.css index 4b824da3..633c88ef 100644 --- a/ext/fg/css/client.css +++ b/ext/fg/css/client.css @@ -17,7 +17,7 @@   */ -iframe#yomichan-float { +iframe.yomichan-float {      all: initial;      background-color: #fff;      border: 1px solid #999; @@ -29,14 +29,14 @@ iframe#yomichan-float {      box-sizing: border-box;  } -iframe#yomichan-float[data-yomichan-theme=dark], -iframe#yomichan-float[data-yomichan-theme=auto][data-yomichan-site-color=dark] { +iframe.yomichan-float[data-yomichan-theme=dark], +iframe.yomichan-float[data-yomichan-theme=auto][data-yomichan-site-color=dark] {      background-color: #1e1e1e;      border: 1px solid #666;      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);  } -iframe#yomichan-float.yomichan-float-full-width { +iframe.yomichan-float.yomichan-float-full-width {      border-left: none;      border-right: none;      left: 0 !important; @@ -46,13 +46,13 @@ iframe#yomichan-float.yomichan-float-full-width {      resize: none;  } -iframe#yomichan-float.yomichan-float-full-width:not(.yomichan-float-above) { +iframe.yomichan-float.yomichan-float-full-width:not(.yomichan-float-above) {      border-bottom: none;      top: auto !important;      bottom: 0 !important;  } -iframe#yomichan-float.yomichan-float-full-width.yomichan-float-above { +iframe.yomichan-float.yomichan-float-full-width.yomichan-float-above {      border-top: none;      top: 0 !important;      bottom: auto !important; diff --git a/ext/fg/float.html b/ext/fg/float.html index 2504f448..580a7963 100644 --- a/ext/fg/float.html +++ b/ext/fg/float.html @@ -1,5 +1,5 @@  <!DOCTYPE html> -<html lang="en" class="yomichan-float"> +<html lang="en" data-yomichan-page="float">      <head>          <meta charset="UTF-8">          <meta name="viewport" content="width=device-width,initial-scale=1" /> diff --git a/ext/fg/js/popup.js b/ext/fg/js/popup.js index 73ed37e0..2a9670fc 100644 --- a/ext/fg/js/popup.js +++ b/ext/fg/js/popup.js @@ -27,7 +27,7 @@ class Popup {          this.child = null;          this.childrenSupported = true;          this.container = document.createElement('iframe'); -        this.container.id = 'yomichan-float'; +        this.container.className = 'yomichan-float';          this.container.addEventListener('mousedown', e => e.stopPropagation());          this.container.addEventListener('scroll', e => e.stopPropagation());          this.container.setAttribute('src', chrome.extension.getURL('/fg/float.html')); diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index 7ebad090..7793ddeb 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -30,8 +30,8 @@   * General   */ -html.yomichan-float:not([data-yomichan-theme]), -html.yomichan-float:not([data-yomichan-theme]) body { +html:root[data-yomichan-page=float]:not([data-yomichan-theme]), +html:root[data-yomichan-page=float]:not([data-yomichan-theme]) body {      background-color: transparent;  } @@ -82,8 +82,8 @@ ol, ul {      padding-bottom: 10px;  } -html:root.yomichan-float .entry, -html:root.yomichan-float .note { +html:root[data-yomichan-page=float] .entry, +html:root[data-yomichan-page=float] .note {      padding-left: 10px;      padding-right: 10px;  } |