From 6ad6aae4be828f8b7bc6f0cbebb58cfdc89c49f6 Mon Sep 17 00:00:00 2001 From: Kamesuta Date: Sat, 5 Dec 2020 18:22:04 +0900 Subject: [PATCH] Add Button --- app/assets/css/launcher.css | 31 +++++++++++++------------- app/landing.ejs | 44 ++++++++++++++++++++++++++----------- 2 files changed, 47 insertions(+), 28 deletions(-) diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css index 9c17df43..e7af0b6b 100644 --- a/app/assets/css/launcher.css +++ b/app/assets/css/launcher.css @@ -2321,7 +2321,7 @@ input:checked + .toggleSwitchSlider:before { position: relative; z-index: 500; transition: top 2s ease; - top: 10px; + top: 23px; } #landingContainer > #lower > #right { position: relative; @@ -2913,8 +2913,8 @@ input:checked + .toggleSwitchSlider:before { .settingsTooltip { visibility: hidden; opacity: 0; - width: 75px; - height: 20px; + min-width: 75px; + min-height: 20px; background-color: rgba(0, 0, 0, 0.75); text-align: center; border-radius: 4px; @@ -3130,37 +3130,38 @@ input:checked + .toggleSwitchSlider:before { * * */ /* Button which opens the news view. */ -#newsButton { +.newsButton { background: none; border: none; cursor: pointer; outline: none; + text-decoration:none; } -#newsButton:hover #newsButtonText, -#newsButton:focus #newsButtonText { +.newsButton:hover .newsButtonText, +.newsButton:focus .newsButtonText { text-shadow: 0px 0px 20px #fff, 0px 0px 20px #fff; } -#newsButton:active { +.newsButton:active { color: #c7c7c7; text-shadow: 0px 0px 20px #c7c7c7, 0px 0px 20px #c7c7c7; } -#newsButton:hover #newsButtonSVG, -#newsButton:focus #newsButtonSVG { +.newsButton:hover .newsButtonSVG, +.newsButton:focus .newsButtonSVG { -webkit-filter: drop-shadow(0px 0px 2px #fff); } -#newsButton:active #newsButtonSVG .arrowLine { +.newsButton:active .newsButtonSVG .arrowLine { stroke: #c7c7c7; } -#newsButton:active #newsButtonSVG { +.newsButton:active .newsButtonSVG { -webkit-filter: drop-shadow(0px 0px 2px #c7c7c7); } -#newsButton:disabled #newsButtonSVG .arrowLine { +.newsButton:disabled .newsButtonSVG .arrowLine { stroke: rgba(255, 255, 255, 0.75); } /* Icon which indicates there is new news. */ -#newsButtonAlert { +.newsButtonAlert { width: 5px; height: 5px; position: absolute; @@ -3171,14 +3172,14 @@ input:checked + .toggleSwitchSlider:before { } /* Arrow image which floats above the news button. */ -#newsButtonSVG { +.newsButtonSVG { height: 11px; margin-left: -2px; transition: 0.25s ease; } /* Span which contains the news button text. */ -#newsButtonText { +.newsButtonText { color: white; font-weight: 900; letter-spacing: 2px; diff --git a/app/landing.ejs b/app/landing.ejs index 9d0b784a..5db876a4 100644 --- a/app/landing.ejs +++ b/app/landing.ejs @@ -49,15 +49,28 @@
-
- - - - - - - - +
+ +
+
+
- - +
+ - NEWS + NEWS +