Refactor CSS

This commit is contained in:
mhdzumair
2024-02-16 01:35:12 +05:30
parent 89a4269e46
commit 794e0ba9bc
2 changed files with 1 additions and 7 deletions
+1 -2
View File
@@ -229,8 +229,7 @@ input[type="text"]:focus, input[type="password"]:focus, select.form-control:focu
.form-range::-webkit-slider-runnable-track {
width: 100%;
height: 10px;
/* background: linear-gradient(to right, #4a47a3 0%, #4a47a3 50%, #ddd 50%); */
background: linear-gradient(to right, #4a47a3 0%, #4a47a3 calc(var(--value) * 100% - 10px), #ddd calc(var(--value) * 100% - 10px), #ddd 100%);
background: linear-gradient(to right, #4a47a3 calc(var(--value) * 100%), #ddd 100%, #ddd 100%);
border-radius: 5px;
}
-5
View File
@@ -2,7 +2,6 @@
const oAuthBtn = document.getElementById('oauth_btn');
let currentAuthorizationToken = null;
const servicesRequiringCredentials = ['pikpak',];
const rangeInput = document.querySelector('.form-range');
const providerSignupLinks = {
pikpak: 'https://mypikpak.com/drive/activity/invited?invitation-code=52875535',
seedr: 'https://www.seedr.cc/?r=2726511',
@@ -308,7 +307,3 @@ document.addEventListener('DOMContentLoaded', function () {
return new bootstrap.Tooltip(tooltipTriggerEl)
});
});
rangeInput.addEventListener('input', function() {
this.style.setProperty('--value', (this.value - this.min) / (this.max - this.min));
});