about summary refs log tree commit diff stats
path: root/src/pages/stylesheets/styles.css
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/pages/stylesheets/styles.css
parentUpdate FUNDING.yml (diff)
downloadlibredirect-155eddbf07d73f12639ed6470497f925a33e32f2.zip
Updating and Cleaning UI #9
Diffstat (limited to 'src/pages/stylesheets/styles.css')
-rw-r--r--src/pages/stylesheets/styles.css615
1 files changed, 615 insertions, 0 deletions
diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css
new file mode 100644
index 00000000..363bdf3c
--- /dev/null
+++ b/src/pages/stylesheets/styles.css
@@ -0,0 +1,615 @@
+body {
+  --text: #fff;
+  --bg-main: #121212;
+  --bg-secondary: #202020;
+  --active: #fbc117;
+  --space: 5px;
+  --danger: #f04141;
+  --danger-light: #f9d0d5;
+  --dark-grey: #767676;
+  --light-grey: #c3c3c3;
+}
+
+body.light-theme {
+  --text: #000;
+  --bg-main: #e3e7ea;
+  --bg-secondary: #fff;
+}
+
+body {
+  width: 400px;
+  margin: auto;
+  padding: 0;
+  min-height: 572px;
+  font-family: Sans-Serif;
+  background-color: var(--bg-secondary);
+  color: var(--text);
+}
+
+input {
+  appearance: none;
+  -moz-appearance: none;
+  -webkit-appearance: none;
+}
+
+h1 {
+  font-size: 14px;
+  margin: 7px auto;
+}
+
+i {
+  font-size: 12px;
+}
+
+h2 {
+  clear: both;
+  font-size: 12px;
+  font-weight: normal;
+  margin: 0;
+}
+
+h3 {
+  font-size: 16px;
+}
+
+h1,
+h2 {
+  color: var(--text);
+}
+
+footer {
+  width: 100%;
+}
+
+
+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: solid;
+  border-color: #767676;
+  color: var(--text);
+}
+
+select{
+  margin: 0;
+  width: auto;
+  border-radius: 3px;
+}
+
+input[type="url"] {
+  padding: 5px;
+}
+
+input[type="radio"] {
+  appearance: radio;
+  -moz-appearance: radio;
+  -webkit-appearance: radio;
+}
+
+input[type="radio"]:checked+label {
+  background: transparent;
+}
+
+.checkbox-label {
+  margin-left: 5px;
+  background: grey;
+  border-radius: 25px;
+  color: var(--text);
+  cursor: pointer;
+  display: block;
+  float: right;
+  font-weight: bold;
+  height: 30px;
+  position: relative;
+  text-indent: -400px;
+  width: 50px;
+}
+
+.checkbox-label:after {
+  background: white;
+  border-radius: 90px;
+  content: "";
+  height: 20px;
+  left: var(--space);
+  position: absolute;
+  top: var(--space);
+  transition: 0.3s;
+  width: 20px;
+}
+
+input:checked+label {
+  background: var(--active);
+}
+
+input:checked+label:after {
+  left: calc(100% - var(--space));
+  transform: translateX(-100%);
+}
+
+.settings-block {
+  display: block;
+  padding: 5px 15px;
+}
+
+.settings-block h1 {
+  float: left;
+}
+
+.button {
+  border: var(--active) solid 1px;
+  color: var(--text);
+  stroke: var(--text);
+  display: block;
+  font-size: 12px;
+  font-weight: bold;
+  margin: var(--space) auto;
+  padding: 10px;
+  text-align: center;
+  text-decoration: none;
+  cursor: pointer;
+  -webkit-transition-duration: 0.4s;
+  transition-duration: 0.4s;
+}
+
+.button * {
+  vertical-align: middle;
+}
+
+.button:hover {
+  background-color: var(--active);
+  color: var(--text);
+  stroke: var(--text);
+}
+
+.button:active {
+  background-color: var(--active);
+  box-shadow: 0 var(--space) var(--bg-main);
+  transform: translateY(4px);
+}
+
+input:invalid {
+  color: var(--danger);
+  border-color: var(--danger);
+  background-color: var(--danger-light);
+}
+
+.margin-bottom {
+  margin-bottom: 20px;
+}
+
+.tab {
+  overflow: hidden;
+  background-color: var(--bg-secondary);
+  position: fixed;
+  top: 0;
+  width: 400px;
+  z-index: 2;
+}
+
+.tab button {
+  color: var(--text);
+  background-color: inherit;
+  float: left;
+  border: none;
+  outline: none;
+  cursor: pointer;
+  padding: 14px 16px;
+  transition: 0.3s;
+  border: solid 1px var(--bg-main);
+  width: 33.333%;
+  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);
+}
+
+.tab button.active {
+  background-color: var(--bg-main);
+}
+
+.tabcontent {
+  padding-top: 50px;
+  display: none;
+  background-color: var(--bg-main);
+  min-height: 510px;
+}
+
+div.exceptions {
+  clear: left;
+}
+
+div.exceptions>input {
+  width: 240px;
+  float: left;
+}
+
+#add-to-exceptions {
+  float: right;
+  border: var(--active) solid 1px;
+  background-color: var(--active);
+  color: var(--text);
+  font-weight: bold;
+  cursor: pointer;
+  border-radius: 50%;
+  padding: 1px 1px 0px 1px;
+  margin-right: 5px;
+}
+
+#add-to-exceptions svg {
+  height: 20px;
+  width: 20px;
+}
+
+ul {
+  padding: 0;
+  list-style-type: none;
+  color: var(--text);
+  margin: 20px 20px 0 20px;
+}
+
+li {
+  border-bottom: solid 0.5px var(--bg-secondary);
+  padding: 20px 0px 20px 20px;
+}
+
+#exceptions-items button {
+  float: right;
+  margin-right: -5px;
+  border: var(--active) solid 1px;
+  background-color: var(--active);
+  color: var(--text);
+  font-weight: bold;
+  cursor: pointer;
+  border-radius: 50%;
+  padding: 2px 2px 0px 2px;
+}
+
+.button svg {
+  height: 18px;
+  width: 18px;
+}
+
+.autocomplete {
+  position: relative;
+  display: inline-block;
+  width: 100%;
+}
+
+.autocomplete input {
+  background: url(../../assets/images/chevron-down.svg) right no-repeat;
+}
+
+.autocomplete-items {
+  position: absolute;
+  border: 1px solid var(--bg-main);
+  border-bottom: none;
+  border-top: none;
+  z-index: 99;
+  top: 85%;
+  left: 0;
+  right: 0;
+  overflow-y: auto;
+  max-height: 175px;
+  color: var(--text);
+  overflow-x: hidden;
+  max-width: 380px;
+}
+
+.autocomplete-items div {
+  padding: 10px;
+  cursor: pointer;
+  background-color: var(--bg-secondary);
+  border-bottom: 1px solid var(--bg-main);
+}
+
+.autocomplete-items div:hover {
+  background-color: var(--active);
+}
+
+.autocomplete-active {
+  background-color: var(--active);
+  color: var(--text);
+}
+
+.option {
+  width: 100%;
+}
+
+.option td {
+  vertical-align: middle;
+}
+
+input[type="range"] {
+  -webkit-appearance: none;
+  margin: 18px 0;
+  width: 100%;
+}
+
+input[type="range"]:focus {
+  outline: none;
+}
+
+input[type="range"]::-webkit-slider-runnable-track {
+  width: 100%;
+  height: 8.4px;
+  cursor: pointer;
+  border-color: var(--dark-grey), var(--light-grey);
+  background: var(--bg-main);
+  border-radius: 1.3px;
+  border: 0.2px inset var(--dark-grey);
+}
+
+input[type="range"]::-webkit-slider-thumb {
+  border-color: var(--active);
+  border: 1px solid var(--dark-grey);
+  height: 36px;
+  width: 16px;
+  border-radius: 3px;
+  background: var(--active);
+  cursor: pointer;
+  -webkit-appearance: none;
+  margin-top: -14px;
+}
+
+input[type="range"]:focus::-webkit-slider-runnable-track {
+  background: var(--bg-main);
+}
+
+input[type="range"]::-moz-range-track {
+  width: 100%;
+  height: 8.4px;
+  cursor: pointer;
+  border-color: var(--dark-grey), var(--light-grey);
+  background: var(--bg-main);
+  border-radius: 1.3px;
+  border: 0.2px inset var(--dark-grey);
+}
+
+input[type="range"]::-moz-range-thumb {
+  border-color: var(--active);
+  border: 1px solid var(--dark-grey);
+  height: 36px;
+  width: 16px;
+  border-radius: 3px;
+  background: var(--active);
+  cursor: pointer;
+}
+
+::placeholder {
+  color: var(--text);
+  opacity: 0.7;
+}
+
+input[type="url"]:focus {
+  outline: none;
+}
+
+@media (prefers-color-scheme: light) {
+  body {
+    --text: #000;
+    --text-secondary: #fff;
+    --bg-main: #e3e7ea;
+    --bg-secondary: #fff;
+  }
+
+  body.dark-theme {
+    --text: #fff;
+    --text-secondary: #000;
+    --bg-main: #3c4043;
+    --bg-secondary: #292a2d;
+  }
+
+  .popup {
+    background-color: var(--bg-secondary);
+  }
+}
+
+#volume-value {
+  float: right;
+}
+
+.collapsible {
+  background-color: var(--bg-main);
+  cursor: pointer;
+  color: var(--active);
+  padding: 18px;
+  width: 100%;
+  border: none;
+  text-align: left;
+  outline: none;
+  font-size: 15px;
+  border-bottom: solid var(--active);
+  font-weight: bold;
+}
+
+.collapsible:after {
+  content: "\25BE";
+  color: var(--active);
+  font-weight: bold;
+  float: right;
+  margin-left: 5px;
+}
+
+.collapsible-active,
+.collapsible:hover,
+.collapsible:hover::after {
+  background-color: var(--active);
+  color: var(--text-secondary);
+}
+
+.collapsible-active:after {
+  content: "\25B4";
+  color: var(--text-secondary);
+  font-weight: bold;
+  float: right;
+  margin-left: 5px;
+}
+
+.collapsible-content {
+  padding: 0 18px;
+  display: none;
+  overflow: hidden;
+}
+
+hr {
+  height: 2px;
+  background-color: var(--active);
+  border: none;
+}
+
+.new-badge {
+  position: relative;
+}
+
+.new-badge[data-new-badge]:after {
+  content: "New!";
+  position: absolute;
+  top: -10px;
+  right: -42px;
+  font-size: 0.9em;
+  background: var(--active);
+  color: white;
+  width: 35px;
+  height: 18px;
+  text-align: center;
+  line-height: 18px;
+  border-radius: 25px;
+  padding: 2px;
+  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