diff --git a/src/ui/player/player.sass b/src/ui/player/player.sass deleted file mode 100644 index ce83236..0000000 --- a/src/ui/player/player.sass +++ /dev/null @@ -1,28 +0,0 @@ -body - background-color: #131313 - -html, body, video - width: 100% - height: 100% - margin: 0 - -video - position: absolute - top: 0 - left: 0 - -#message-container - visibility: hidden - display: flex - justify-content: center - align-items: center - flex-direction: column - color: white - text-align: center - height: 100% - - & * - visibility: inherit - - & a, & a:visited - color: red diff --git a/src/ui/player/player.scss b/src/ui/player/player.scss new file mode 100644 index 0000000..1675fd6 --- /dev/null +++ b/src/ui/player/player.scss @@ -0,0 +1,34 @@ +body { + background-color: #131313; +} + +html, body, video { + width: 100%; + height: 100%; + margin: 0; +} + +video { + position: absolute; + top: 0; + left: 0; +} + +#message-container { + visibility: hidden; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + color: white; + text-align: center; + height: 100%; + + & * { + visibility: inherit; + } + + & a, & a:visited { + color: red + } +} diff --git a/src/ui/popup/popup.sass b/src/ui/popup/popup.sass deleted file mode 100644 index 91641f2..0000000 --- a/src/ui/popup/popup.sass +++ /dev/null @@ -1,56 +0,0 @@ -body - background-color: #2b2a33 - font-weight: bold - max-height: 500px - overflow-x: hidden - overflow-y: auto - -a, p - color: white - font-size: 16px - margin: 5px 0 - cursor: default - -a - border: 1px solid #281515 - cursor: pointer - font-weight: normal - padding: 5px 8px - - &.active - background-color: rgba(255, 65, 65, 0.74) - cursor: default - - &.disabled - background-color: grey - cursor: not-allowed - - &#error - border: none - display: block - font-weight: lighter - font-size: 0.8rem - text-align: center - padding: 10px 0 5px 0 - -hr - margin: 3px 0 - - -#all - display: flex - justify-content: center - margin: 10px 0 - - -.low-reliability - text-decoration: underline - text-decoration-color: rgb(255, 0, 0) - -.normal-reliability - text-decoration: underline - text-decoration-color: yellow - -.high-reliability - text-decoration: underline - text-decoration-color: #00ff00 diff --git a/src/ui/popup/popup.scss b/src/ui/popup/popup.scss new file mode 100644 index 0000000..f578333 --- /dev/null +++ b/src/ui/popup/popup.scss @@ -0,0 +1,66 @@ +body { + background-color: #2b2a33; + font-weight: bold; + max-height: 500px; + overflow-x: hidden; + overflow-y: auto; +} + +a, p { + color: white; + font-size: 16px; + margin: 5px 0; + cursor: default; +} + +a { + border: 1px solid #281515; + cursor: pointer; + font-weight: normal; + padding: 5px 8px; + + &.active { + background-color: rgba(255, 65, 65, 0.74); + cursor: default; + } + + &.disabled { + background-color: grey; + cursor: not-allowed; + } + + &#error { + border: none; + display: block; + font-weight: lighter; + font-size: 0.8rem; + text-align: center; + padding: 10px 0 5px 0; + } + +} + +hr { + margin: 3px 0; +} + +#all { + display: flex; + justify-content: center; + margin: 10px 0 +} + +.low-reliability { + text-decoration: underline; + text-decoration-color: rgb(255, 0, 0); +} + +.normal-reliability { + text-decoration: underline; + text-decoration-color: yellow; +} + +.high-reliability { + text-decoration: underline; + text-decoration-color: #00ff00; +} diff --git a/tasks/build.ts b/tasks/build.ts index b5db602..5e963e2 100644 --- a/tasks/build.ts +++ b/tasks/build.ts @@ -47,8 +47,8 @@ async function buildHtml() { async function buildCss() { const files = { - 'src/ui/popup/popup.sass': 'build/ui/popup/popup.css', - 'src/ui/player/player.sass': 'build/ui/player/player.css' + 'src/ui/popup/popup.scss': 'build/ui/popup/popup.css', + 'src/ui/player/player.scss': 'build/ui/player/player.css' } for (const [src, dst] of Object.entries(files)) {