From f7c373481d040f88fc8956a082a97004101d4def Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 22 Dec 2020 03:14:03 +0100 Subject: [PATCH] Add popup for Edge --- .gitignore | 2 + src/csui/PlayerUiComponent.vue | 131 +++++++++++++++++++++++++++++---- src/manifest.json | 3 +- 3 files changed, 122 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 6578331..24dca4f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ build/ *.pem *.kate-swp + +src/res/img/git-ignore/ diff --git a/src/csui/PlayerUiComponent.vue b/src/csui/PlayerUiComponent.vue index c9af662..a02ba84 100644 --- a/src/csui/PlayerUiComponent.vue +++ b/src/csui/PlayerUiComponent.vue @@ -1,12 +1,60 @@ @@ -47,17 +96,73 @@ export default { @import '../res/css/common.scss'; .uw-ultrawidify-container-root { + font-family: 'Overpass'; + .uw-hover { position: absolute; - top: 20%; - left: 20%; - width: 100px; - height: 100px; + top: 5%; + left: 5%; + width: 90%; + height: 90%; color: #fff; - background-color: #000; + background-color: rgba(84, 8, 8, 0.786); + + pointer-events: auto; + overflow: hidden; + + p, h1, h2, h3 { + margin: 0.75em; + display: block; + // display: inline-block; + } + + i { + font-family: 'Overpass Mono', monospace; + } + + a { + cursor: pointer; + } + + p { + font-size: 16px; + } + h1 { + font-size: 36px; + } + + sup { + vertical-align: super; + font-size: smaller; + } + + .text { + flex-grow: 1; + flex-shrink: 0; + max-width: 666px; + min-width: 420px; + } + + .image-examples { + flex-grow: auto; + flex-shrink: 1; + min-width: 720px; + + img { + width: 100%; + } + } } - .uw-hover:hover { - background-color: #f00; + + .pad { + padding: 16px; + height: 100%; + width: 100%; + // padding-bottom: 10%; + overflow-y: auto; + } + .flex-row { + justify-content: space-around; } } diff --git a/src/manifest.json b/src/manifest.json index bbb829d..320bc91 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -50,7 +50,8 @@ "res/fonts/*", "res/css/*", "res/img/settings/about-bg.png", - "res/icons/*" + "res/icons/*", + "res/img/*" ], "permissions": [ "storage",