From 93f148ab192bcfd538250f5c2c5faa2c3cb0c18d Mon Sep 17 00:00:00 2001 From: Jason Rappaport Date: Wed, 17 Mar 2021 20:19:48 -0400 Subject: [PATCH] Fix facebook messenger icon for upcoming badge --- .../{Messenger.png => Facebook Messenger.png} | Bin gc-btt-settings.html | 157 ++++++++++-------- 2 files changed, 89 insertions(+), 68 deletions(-) rename app-icons/{Messenger.png => Facebook Messenger.png} (100%) diff --git a/app-icons/Messenger.png b/app-icons/Facebook Messenger.png similarity index 100% rename from app-icons/Messenger.png rename to app-icons/Facebook Messenger.png diff --git a/gc-btt-settings.html b/gc-btt-settings.html index b4e663d..f6f2633 100644 --- a/gc-btt-settings.html +++ b/gc-btt-settings.html @@ -480,37 +480,63 @@ /* Radio Switch Styles */ + #presets .radio-switch:active:after { + position: absolute; + content: " "; + top: 0; + bottom: 0; + left: -16px; + right: 0; + background: rgba(255,255,255,.03); + } + .radio-switch label { padding-top: 4px; padding-bottom: 4px; + display: flex; + flex-direction: row; + } + + .form-switch.radio-switch .description { + top: 0; + margin-bottom: 0; + z-index: 2; } .radio-switch small { margin-left: 0; } - .radio-switch .token { - position: relative; - line-height: normal; - bottom: 0; - right: 0; - left: 0; - top: 0; - width: auto; - white-space: nowrap; + .radio-switch .active { + color: #1384fe; + line-height: 36px; + width: 200px; + font-size: 21px; + font-weight: bold; + text-align: right; } - .radio-switch .token .active { + .radio-switch .active span { display: none; + position: relative; + top: 50%; + margin-top: -18px; + vertical-align: center; + white-space: nowrap; } - .radio-switch .token .inactive { + .radio-switch .default .active.default span, + .radio-switch .minimalist .active.minimalist span, + .radio-switch .gcs-daily-driver .active.gcs-daily-driver span { display: block; } + + /* Active preset display box */ .active-preset-display .form-switch label { display: flex; flex-direction: row; + padding: 4px 0; } .active-preset-display .form-switch label .description { @@ -519,19 +545,21 @@ .active-preset-display .form-switch label .action .token { margin-top: 13px; + line-height: normal; } - .active-preset-display .radio-switch .description span, - .active-preset-display .radio-switch .description small, - .active-preset-display .radio-switch .token { + .active-preset-display .form-switch .description span, + .active-preset-display .form-switch .description small, + .active-preset-display .form-switch .token { display: none; } - .active-preset-display .radio-switch .description small { + .active-preset-display .form-switch .description small { + margin: 0; margin-top: -4px; } - .active-preset-display .radio-switch .description small a { + .active-preset-display .form-switch .description small a { position: relative; top: 0; bottom: 0; @@ -543,33 +571,32 @@ margin-top: 4px; } - .active-preset-display .radio-switch .loading .loading, - .active-preset-display .radio-switch .custom .custom, - .active-preset-display .radio-switch .default .default, - .active-preset-display .radio-switch .minimalist .minimalist, - .active-preset-display .radio-switch .gcs-daily-driver .gcs-daily-driver { + .active-preset-display .form-switch .loading .loading, + .active-preset-display .form-switch .custom .custom, + .active-preset-display .form-switch .default .default, + .active-preset-display .form-switch .minimalist .minimalist, + .active-preset-display .form-switch .gcs-daily-driver .gcs-daily-driver { display: block; } - ul:not(.active-preset-display) .radio-switch .default .token.default, - ul:not(.active-preset-display) .radio-switch .minimalist .token.minimalist, - ul:not(.active-preset-display) .radio-switch .gcs-daily-driver .token.gcs-daily-driver { - background: limegreen; - border-color: limegreen; - } - - .radio-switch .default .token.default .inactive, - .radio-switch .minimalist .token.minimalist .inactive, - .radio-switch .gcs-daily-driver .token.gcs-daily-driver .inactive { - display: none; + #general .active-preset-display #activePreset.loading:before, + #general .active-preset-display #activePreset.custom:before, + #general .active-preset-display #activePreset.default:before, + #general .active-preset-display #activePreset.minimalist:before, + #general .active-preset-display #activePreset.gcs-daily-driver:before { + content: " "; + position: absolute; + top: -9px; + bottom: -9px; + left: -17px; + right: -9px; + border: 1px solid #1384fe; + border-radius: 4px; } - .radio-switch .default .token.default .active, - .radio-switch .minimalist .token.minimalist .active, - .radio-switch .gcs-daily-driver .token.gcs-daily-driver .active { - display: block; + #general .active-preset-display #activePreset.custom:before { + border-color: #fe9e0b; } -