summaryrefslogtreecommitdiff
path: root/ext/fg/css/client.css
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-02-14 21:42:59 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-02-14 21:42:59 -0500
commitba972d8547089d8f2c8e19749ee0a0ab93d36233 (patch)
tree57cb0417e25955abbcd3a41b828aa9a9bc34667c /ext/fg/css/client.css
parent01f611d1898f046de2f367e8fe0ec6692ca7e445 (diff)
Add popup display mode
Allows the popup to be stretched to the full width of the screen, anchored to the top or bottom of the window.
Diffstat (limited to 'ext/fg/css/client.css')
-rw-r--r--ext/fg/css/client.css22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/fg/css/client.css b/ext/fg/css/client.css
index b5b1f6bd..a9b8e025 100644
--- a/ext/fg/css/client.css
+++ b/ext/fg/css/client.css
@@ -27,3 +27,25 @@ iframe#yomichan-float {
visibility: hidden;
z-index: 2147483647;
}
+
+iframe#yomichan-float.yomichan-float-full-width {
+ border-left: none;
+ border-right: none;
+ left: 0 !important;
+ right: 0 !important;
+ width: 100% !important;
+ box-sizing: border-box;
+ resize: none;
+}
+
+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 {
+ border-top: none;
+ top: 0 !important;
+ bottom: auto !important;
+}