From 7c5800baa377ae5007d6754148ad7aa82c74a06d Mon Sep 17 00:00:00 2001 From: Dano Alexander Date: Thu, 17 Sep 2020 19:10:37 +0300 Subject: [PATCH] Post-review edits --- .gitignore | 3 + src/shared/css/_popup.css | 76 ------------------------- src/shared/js/components/Popup/Popup.js | 2 +- 3 files changed, 4 insertions(+), 77 deletions(-) delete mode 100644 src/shared/css/_popup.css diff --git a/.gitignore b/.gitignore index c2cc010..641cab9 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,9 @@ pids *.seed *.pid.lock +# misc +.DS_Store + # Directory for instrumented libs generated by jscoverage/JSCover lib-cov diff --git a/src/shared/css/_popup.css b/src/shared/css/_popup.css deleted file mode 100644 index 2af2021..0000000 --- a/src/shared/css/_popup.css +++ /dev/null @@ -1,76 +0,0 @@ -/* Sidekick popup styles */ - -body { - margin: 0; -} - -header { - padding: 0 10px; -} - -main { - padding: 2px 10px 10px; -} - -h1 { - color: #00a7f7; - font-size: 12px; -} - -.enable { - min-width: 125px; - padding-top: 10px; - border-top: 1px solid #ddd; - white-space: nowrap; -} - -.enable span { - display: block; - margin-bottom: 7px; -} - -input[type=checkbox]{ - display: none; - height: 0; - width: 0; -} - -label { - position: relative; - display: block; - cursor: pointer; - width: 40px; - height: 20px; - background: grey; - border-radius: 40px; -} - -label:after { - content: ''; - position: absolute; - top: 1px; - left: 1px; - width: 18px; - height: 18px; - background: #fff; - border-radius: 50%; - transition: 0.3s; -} - -input:checked + label { - background: #00a7f7; -} - -input:checked + label:after { - left: calc(100% - 1px); - transform: translateX(-100%); -} - -label:active:after { - width: 130px; -} - -.version { - float: right; - padding-right: 10px; -} diff --git a/src/shared/js/components/Popup/Popup.js b/src/shared/js/components/Popup/Popup.js index 690c259..cf16bb9 100644 --- a/src/shared/js/components/Popup/Popup.js +++ b/src/shared/js/components/Popup/Popup.js @@ -39,7 +39,7 @@ function Popup() {
Is Enabled: {sideKickEnabled ? 'Yes' : 'No'}
);