From 8ba028a5b23a9021bb35c6f96671b59cb59d8db3 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 19 Jul 2018 23:05:57 +0200 Subject: [PATCH] git commit -am doesn't add new files --- js/lib/UiFactory.js | 0 js/modules/Interface.js | 16 +++ res/css/uw-common.css | 117 ++++++++++++++++++++++ res/settings/settings.css | 202 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 335 insertions(+) create mode 100644 js/lib/UiFactory.js create mode 100644 js/modules/Interface.js create mode 100644 res/css/uw-common.css create mode 100644 res/settings/settings.css diff --git a/js/lib/UiFactory.js b/js/lib/UiFactory.js new file mode 100644 index 0000000..e69de29 diff --git a/js/modules/Interface.js b/js/modules/Interface.js new file mode 100644 index 0000000..8f7e13f --- /dev/null +++ b/js/modules/Interface.js @@ -0,0 +1,16 @@ +class Interface { + constructor(videoData) { + this.conf = videoData; + this.player = videoData.player; + } + + injectUi() { + + this.detectorDiv = document.createElement('div'); + this.uiRoot = document.createElement('div'); + this.detectorDiv.appendChild(this.uiRoot); + + + + } +} diff --git a/res/css/uw-common.css b/res/css/uw-common.css new file mode 100644 index 0000000..bee5588 --- /dev/null +++ b/res/css/uw-common.css @@ -0,0 +1,117 @@ +a { + color: #af7f37; +} +a:hover { + color: #c0924e; +} + +.hidden { + display: none !important; +} + + + +/** layout stuff **/ + +.row { + display: block; + margin-top: 20px; + margin-bottom: 10px; +} + +.button-row { + display: block; + margin-top: 5px; + margin-bottom: 10px; +} + +.w24 { + width: 100px; +} + + + +/** input **/ + +input { + border: 1px solid #322; + padding: 0.5em; + padding-top: 0.5em; + padding-bottom: 0.5em; +} + +.invalid-input { + border: 1px solid #720 !important; + background-color: #410 !important; +} + + + + +/** buttons and stuff ***/ + +.button { + display: inline-block; + padding-top: 8px; + padding-bottom: 3px; + padding-left: 20px; + padding-right: 20px; + border: 1px solid #444; + margin-top: 3px; + margin-bottom: 3px; + color: #dbb; + text-align: center; +} + +.button:hover { + color: #fff; + background-color: #433221; +} + + + + +/** formatting **/ + +small{ + font-size: 0.75em; + font-weight: 200; +} + +.smallcaps{ + font-variant: small-caps; +} + +.center{ + text-align: center; + width: 100%; +} + + + + +/** misc **/ + +.color_warn { + color: #d6ba4a; +} + +.warning { + color: #d6ba4a; + padding-left: 35px; + float: right; +} + +.warning::before { + content: "⚠ "; + display: inline-block; + font-weight: bold; + font-size: 2.5em; + margin-left: -35px; + padding-right: 10px; +/* top: 0px; */ + float: left; +} + + + diff --git a/res/settings/settings.css b/res/settings/settings.css new file mode 100644 index 0000000..9da1b1b --- /dev/null +++ b/res/settings/settings.css @@ -0,0 +1,202 @@ +@import url("../css/font/overpass.css"); +@import url("../css/font/overpass-mono.css"); + +body { + background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5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A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==); + background-size: 75px; + background-color: #000000; + color: #ddd; + font-family: 'overpass', serif; + font-size: 1.2em; + width: 100%; + border: 0px; + margin: 0px; + padding: 0px; + text-align: center; + z-index: -1000; +} + +a, a:visited{ + color: #fa6607; + text-decoration: none; +} +a:hover{ + color: #fa6; +} + +.show{ + display: block !important; +} +.hide{ + display: none !important; +} +head{ + width: 100%; + border: 0px; + margin: 0px; + padding: 0px; +} + +h1,h2{ + color: #ff9; + font-weight: 300; +} +h1{ + font-size: 3.3em; +} +h2{ + font-size: 2.2em; +} +.sites_header{ + font-size: 1.6em; + color: #ff9; +} +.content{ + display: inline-block; + width: 52em; +} +.center{ + margin: 0 auto; +} +.basecolor { + color: #ddd !important; +} +.red{ + color: #ff3a00; +} +.disabled { + opacity: 0.69; +} +.left { + text-align: left; +} +.block { + display: inline-block; + margin-left: 1em; + margin-right: 1em; +} +.tabline { + background-color: #000; + width: 100%; + margin-bottom: 1.5em; + padding-top: 0.3em; + padding-bottom: 0.4em; + z-index: -200; +} +.tab { + color: #fa6607; +} +.tab:hover{ + text-shadow: #aa5 0px 0px 0.02em,#aa5 0px 0px 0.02em; +} +.tab-selected { + color: #ff9 !important; +} +#all{ + min-width: 100%; + min-height: 100vh; + background-image: url('img/settings/about-bg.png'); + background-position: calc(50vw + 20em) 10vh; + background-attachment: fixed; + background-size: auto 100%; + background-repeat: no-repeat; +} +.dup_keybinds{ + background-color: #720 !important; +} +input[type=text]{ + font-size: 1em; + padding-left: 0.6em; + margin-left: 1em; + width: 2em; + background-color: #000; + border: 1px #442 solid; +} +.uw_shortcuts_line{ + padding-top: 0.25em; + padding-left: 5em; +} +.uw_shortcuts_label{ + display: inline-block; + color: #fff; + width: 17.5em; +} +.uw_options_line{ + margin-top: 0.75em; + font-size: 1.1em; + width: 80%; + margin-left: 5%; +} +.uw_options_option{ + margin-left: 5%; +} +.uw_suboption{ + margin-left: 5em; + margin-top: 0.75em; + font-size: 0.85em; +} +.uw_options_desc, .uw_suboption_desc{ + margin-top: 0.33em; + font-size: 0.69em; + color: #aaa; +} +.uw_suboption_desc{ + margin-left: 5em; +} + +.buttonbar{ +/* width: 100%; */ + padding-left: 20em; + margin-bottom: 2em; +} +.button{ + display: inline-block; + margin-left: 1em; + margin-right: 1em; + padding-left: 1em; + padding-right: 1em; + padding-top: 0.4em; + width: 4em; + text-align: center; + background-color: rgba(0,0,0,0.66); + color: #ffc; + height: 1.7em; +} + +/** site options css **/ +.site_name { + padding-left: 1em; + padding-bottom: 0.3em; + color: #fff; + font-size: 1.1em; + height: 13em !important; + +} +.site_details { + font-size: 0.8em; +} +.site_title_ebox { + width: 10em !important; + font-size: 1.5em !important; + background-color: rgba(0,0,0,0) !important; + margin-left: 0px !important; + border: 0px !important; + color: #ffc !important; +} +.details_ebox { + width: 12em !important; + background-color: rgba(0,0,0,0) !important; + border: 0px !important; + color: #ffc !important; + margin-left: 0em !important; +} +.details_ebox:disabled { + color: #aaa !important; +} +.inline_button { + display: inline-block; + margin-top: -1.42em; +} +.inline_button:hover { + color: #fff; +} \ No newline at end of file