about summary refs log tree commit diff stats
path: root/src/assets
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-01-27 14:58:10 +0300
committerGitHub <noreply@github.com>2022-01-27 14:58:10 +0300
commit155eddbf07d73f12639ed6470497f925a33e32f2 (patch)
tree89e7a3ede5fd043d6511666a88aa77a042296491 /src/assets
parentUpdate FUNDING.yml (diff)
downloadlibredirect-155eddbf07d73f12639ed6470497f925a33e32f2.zip
Updating and Cleaning UI #9
Diffstat (limited to '')
-rw-r--r--src/assets/images/chevron-down.svg2
-rw-r--r--src/assets/images/icon128.pngbin1773 -> 0 bytes
-rw-r--r--src/assets/images/icon16.pngbin709 -> 0 bytes
-rw-r--r--src/assets/images/icon32.pngbin1162 -> 0 bytes
-rw-r--r--src/assets/images/icon48.pngbin690 -> 0 bytes
-rw-r--r--src/assets/images/logo-small.pngbin14128 -> 0 bytes
-rw-r--r--src/assets/images/logo-store.pngbin89803 -> 0 bytes
-rw-r--r--src/assets/images/logo-tile.pngbin14751 -> 0 bytes
-rw-r--r--src/assets/images/logo.pngbin16364 -> 0 bytes
-rw-r--r--src/pages/stylesheets/styles.css (renamed from src/assets/stylesheets/styles.css)223
10 files changed, 151 insertions, 74 deletions
diff --git a/src/assets/images/chevron-down.svg b/src/assets/images/chevron-down.svg
index 7679f267..4b093598 100644
--- a/src/assets/images/chevron-down.svg
+++ b/src/assets/images/chevron-down.svg
@@ -1,3 +1,3 @@
 <svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 512 512'>
-  <polyline points='112 184 256 328 400 184' style='fill:none;stroke:#FF5B56;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px'/>
+  <polyline points='112 184 256 328 400 184' style='fill:none;stroke:#FFFFFF;stroke-linecap:round;stroke-linejoin:round;stroke-width:48px'/>
 </svg>
\ No newline at end of file
diff --git a/src/assets/images/icon128.png b/src/assets/images/icon128.png
deleted file mode 100644
index cd16befd..00000000
--- a/src/assets/images/icon128.png
+++ /dev/null
Binary files differdiff --git a/src/assets/images/icon16.png b/src/assets/images/icon16.png
deleted file mode 100644
index f896608b..00000000
--- a/src/assets/images/icon16.png
+++ /dev/null
Binary files differdiff --git a/src/assets/images/icon32.png b/src/assets/images/icon32.png
deleted file mode 100644
index c5b417cf..00000000
--- a/src/assets/images/icon32.png
+++ /dev/null
Binary files differdiff --git a/src/assets/images/icon48.png b/src/assets/images/icon48.png
deleted file mode 100644
index 24dd5af7..00000000
--- a/src/assets/images/icon48.png
+++ /dev/null
Binary files differdiff --git a/src/assets/images/logo-small.png b/src/assets/images/logo-small.png
deleted file mode 100644
index 27ca660a..00000000
--- a/src/assets/images/logo-small.png
+++ /dev/null
Binary files differdiff --git a/src/assets/images/logo-store.png b/src/assets/images/logo-store.png
deleted file mode 100644
index f321de43..00000000
--- a/src/assets/images/logo-store.png
+++ /dev/null
Binary files differdiff --git a/src/assets/images/logo-tile.png b/src/assets/images/logo-tile.png
deleted file mode 100644
index 101c6b3a..00000000
--- a/src/assets/images/logo-tile.png
+++ /dev/null
Binary files differdiff --git a/src/assets/images/logo.png b/src/assets/images/logo.png
deleted file mode 100644
index ad854aaa..00000000
--- a/src/assets/images/logo.png
+++ /dev/null
Binary files differdiff --git a/src/assets/stylesheets/styles.css b/src/pages/stylesheets/styles.css
index a86cfa2b..363bdf3c 100644
--- a/src/assets/stylesheets/styles.css
+++ b/src/pages/stylesheets/styles.css
@@ -1,8 +1,8 @@
 body {
   --text: #fff;
-  --bg-main: #3c4043;
-  --bg-secondary: #292a2d;
-  --active: #ff5b56;
+  --bg-main: #121212;
+  --bg-secondary: #202020;
+  --active: #fbc117;
   --space: 5px;
   --danger: #f04141;
   --danger-light: #f9d0d5;
@@ -16,73 +16,22 @@ body.light-theme {
   --bg-secondary: #fff;
 }
 
-.light-theme.popup,
-.light-theme .popup {
-  background-color: var(--bg-secondary);
-}
-
 body {
-  margin: 0;
   width: 400px;
   margin: auto;
+  padding: 0;
   min-height: 572px;
   font-family: Sans-Serif;
   background-color: var(--bg-secondary);
   color: var(--text);
 }
 
-.popup {
-  width: 300px;
-  min-height: auto;
-  overflow: hidden;
-  background-color: var(--bg-main);
-}
-
 input {
   appearance: none;
   -moz-appearance: none;
   -webkit-appearance: none;
 }
 
-header {
-  background-color: var(--bg-main);
-  color: var(--text);
-  display: flex;
-  padding: var(--space);
-}
-
-header .logo-container {
-  width: 100%;
-  margin: var(--space) 0 var(--space) 0;
-  display: flex;
-  align-items: center;
-}
-
-header .logo-container img {
-  height: 30px;
-  float: left;
-}
-
-header .logo-container h1 {
-  font-size: 14px;
-  float: left;
-  margin-left: 15px;
-  text-transform: uppercase;
-  font-weight: normal;
-}
-
-header .privacy {
-  letter-spacing: 0.13em;
-}
-
-header .version {
-  font-size: 8.5px;
-  font-weight: bold;
-  position: absolute;
-  top: var(--space);
-  right: var(--space);
-}
-
 h1 {
   font-size: 14px;
   margin: 7px auto;
@@ -112,27 +61,29 @@ footer {
   width: 100%;
 }
 
-footer a.button {
-  margin: var(--space);
-}
 
 input[type="url"],
 input[type="text"],
 select {
   width: 100%;
+  margin: auto;
+  border-radius: 3px;
   box-sizing: border-box;
   margin-bottom: var(--space);
   background-color: var(--bg-main);
-  border-style: inset;
+  border-style: solid;
+  border-color: #767676;
   color: var(--text);
 }
 
-input[type="url"] {
-  padding: 1px 2px;
+select{
+  margin: 0;
+  width: auto;
+  border-radius: 3px;
 }
 
-input[type="checkbox"] {
-  opacity: 0;
+input[type="url"] {
+  padding: 5px;
 }
 
 input[type="radio"] {
@@ -141,7 +92,7 @@ input[type="radio"] {
   -webkit-appearance: radio;
 }
 
-input[type="radio"]:checked + label {
+input[type="radio"]:checked+label {
   background: transparent;
 }
 
@@ -172,18 +123,18 @@ input[type="radio"]:checked + label {
   width: 20px;
 }
 
-input:checked + label {
+input:checked+label {
   background: var(--active);
 }
 
-input:checked + label:after {
+input:checked+label:after {
   left: calc(100% - var(--space));
   transform: translateX(-100%);
 }
 
 .settings-block {
   display: block;
-  padding: 5px 10px 5px 10px;
+  padding: 5px 15px;
 }
 
 .settings-block h1 {
@@ -242,8 +193,6 @@ input:invalid {
 }
 
 .tab button {
-  border-top-left-radius: 10px;
-  border-top-right-radius: 10px;
   color: var(--text);
   background-color: inherit;
   float: left;
@@ -257,6 +206,14 @@ input:invalid {
   font-size: 14px;
 }
 
+.tab button.left {
+  border-top-left-radius: 7px;
+}
+
+.tab button.right {
+  border-top-right-radius: 7px;
+}
+
 .tab button:hover {
   background-color: var(--active);
 }
@@ -276,7 +233,7 @@ div.exceptions {
   clear: left;
 }
 
-div.exceptions > input {
+div.exceptions>input {
   width: 240px;
   float: left;
 }
@@ -334,7 +291,7 @@ li {
 }
 
 .autocomplete input {
-  background: url(../images/chevron-down.svg) right no-repeat;
+  background: url(../../assets/images/chevron-down.svg) right no-repeat;
 }
 
 .autocomplete-items {
@@ -438,8 +395,8 @@ input[type="range"]::-moz-range-thumb {
   opacity: 0.7;
 }
 
-*:focus {
-  outline: var(--active) solid 2px;
+input[type="url"]:focus {
+  outline: none;
 }
 
 @media (prefers-color-scheme: light) {
@@ -536,3 +493,123 @@ hr {
   box-shadow: 0 0 1px var(--bg-secondary);
   font-weight: bold;
 }
+
+
+
+
+.light-theme.popup,
+.light-theme .popup {
+  background-color: var(--bg-secondary);
+}
+
+body.light-theme {
+  --text: #000;
+  --bg-main: #e3e7ea;
+  --bg-secondary: #fff;
+}
+
+body.popup {
+  width: 200px;
+  min-height: auto;
+  background-color: var(--bg-main);
+}
+
+div.some-block {
+  padding: 0 15px;
+  justify-content: space-between;
+  display: flex;
+  align-items: center;
+  margin-top: 10px;
+  margin-bottom: 10px;
+
+}
+
+div.some-block h4 {
+  margin: 0;
+  width: 70%;
+}
+
+textarea {
+  resize: vertical;
+  width: 100%;
+  height: 200px;
+}
+
+div.some-block input[type="checkbox"] {
+  width: 48px;
+  height: 25px;
+  background-color: var(--light-grey);
+  border-radius: 50px;
+  transition: .4s;
+  cursor: pointer;
+}
+
+div.some-block input[type="checkbox"]:checked {
+  background-color: var(--active);
+
+}
+
+div.some-block input[type="checkbox"]:focus {
+  outline: none;
+}
+
+div.some-block input[type="checkbox"]::before {
+  content: "";
+  display: inline-block;
+  width: 20px;
+  height: 20px;
+  box-sizing: border-box;
+  position: relative;
+  top: 2.5px;
+  left: 4px;
+  height: 20px;
+  background-color: white;
+  border-radius: 50%;
+  transition: .4s;
+}
+
+div.some-block input[type="checkbox"]:checked::before {
+  left: 24px;
+}
+
+div.buttons {
+  margin-bottom: 15px;
+}
+
+a.button {
+  border-radius: 5px;
+  border: var(--active) solid 1px;
+  color: var(--text);
+  stroke: var(--text);
+  display: block;
+  font-size: 12px;
+  font-weight: bold;
+  margin: 7.5px 15px;
+  padding: 10px;
+  text-align: center;
+  text-decoration: none;
+  cursor: pointer;
+  transition-duration: 0.1s;
+}
+
+a.button * {
+  vertical-align: middle;
+}
+
+a.button:hover {
+  background-color: var(--active);
+  color: var(--text);
+  stroke: var(--text);
+}
+
+a.button:active {
+  background-color: var(--active);
+  box-shadow: 0 var(--space) var(--bg-main);
+  transform: translateY(1px);
+}
+
+
+a.button svg {
+  height: 18px;
+  width: 18px;
+}
\ No newline at end of file