more input types

This commit is contained in:
Candifloss 2024-10-25 16:43:15 +05:30
parent bc79d6912c
commit 42a47fe51e
11 changed files with 597 additions and 309 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.venv/ .venv/
test/scripts/csswatch.sh

View File

@ -32,7 +32,8 @@ body .form-container h2 {
color: #4e4e4e; color: #4e4e4e;
font-size: 28px; font-size: 28px;
margin-bottom: 20px; margin-bottom: 20px;
text-align: center; text-align: left;
display: block;
} }
body .form-container form { body .form-container form {
display: flex; display: flex;
@ -43,7 +44,6 @@ body .form-container form {
body .form-container form .form-group { body .form-container form .form-group {
flex: 1 1 calc(50% - 20px); flex: 1 1 calc(50% - 20px);
min-width: 250px; min-width: 250px;
margin-bottom: 20px;
} }
body .form-container form .form-group label { body .form-container form .form-group label {
display: block; display: block;
@ -55,6 +55,9 @@ body .form-container form .form-group input[type=text],
body .form-container form .form-group input[type=password], body .form-container form .form-group input[type=password],
body .form-container form .form-group input[type=email], body .form-container form .form-group input[type=email],
body .form-container form .form-group input[type=date], body .form-container form .form-group input[type=date],
body .form-container form .form-group input[type=number],
body .form-container form .form-group input[type=datetime-local],
body .form-container form .form-group input[type=tel],
body .form-container form .form-group select { body .form-container form .form-group select {
width: 100%; width: 100%;
padding: 12px; padding: 12px;
@ -68,30 +71,130 @@ body .form-container form .form-group input[type=text]:focus,
body .form-container form .form-group input[type=password]:focus, body .form-container form .form-group input[type=password]:focus,
body .form-container form .form-group input[type=email]:focus, body .form-container form .form-group input[type=email]:focus,
body .form-container form .form-group input[type=date]:focus, body .form-container form .form-group input[type=date]:focus,
body .form-container form .form-group input[type=number]:focus,
body .form-container form .form-group input[type=datetime-local]:focus,
body .form-container form .form-group input[type=tel]:focus,
body .form-container form .form-group select:focus { body .form-container form .form-group select:focus {
border-color: #007b8a; border-color: #007b8a;
outline: none; outline: none;
} }
body .form-container form .admin-access {
flex: 1 1 100%;
margin-bottom: 20px;
}
body .form-container form .admin-access label { body .form-container form .admin-access label {
display: block; display: block;
color: #4e4e4e; color: #4e4e4e;
font-size: 16px; font-size: 16px;
margin-bottom: 10px; margin-bottom: 5px;
} }
body .form-container form .admin-access .checkbox-group { body .form-container form .admin-access .checkbox-group {
display: flex; display: flex;
justify-content: flex-start;
gap: 10px; gap: 10px;
} }
body .form-container form .admin-access .checkbox-group input[type=checkbox] {
display: none;
}
body .form-container form .admin-access .checkbox-group label.checkbox {
cursor: pointer;
padding: 12px;
border: 1px solid rgba(220, 220, 220, 0.8);
border-radius: 6px;
background-color: rgba(245, 245, 245, 0.9);
font-size: 16px;
text-align: center;
width: 100%;
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
user-select: none;
}
body .form-container form .admin-access .checkbox-group label.checkbox:hover, body .form-container form .admin-access .checkbox-group label.checkbox:focus {
background-color: rgba(232, 232, 232, 0.9);
border-color: #007b8a;
}
body .form-container form .admin-access .checkbox-group input[type=checkbox]:checked + label.checkbox {
background-color: #009299;
color: #ffffff;
border-color: rgba(0, 170, 179, 0.8);
}
body .form-container form .role-dropdown { body .form-container form .role-dropdown {
flex: 1 1 calc(50% - 20px); flex: 1 1 calc(50% - 20px);
min-width: 250px; min-width: 250px;
padding: 0; padding: 0;
} }
body .form-container form .radio-group {
display: flex;
gap: 10px;
}
body .form-container form .radio-group input[type=radio] {
display: none;
}
body .form-container form .radio-group label.radio {
cursor: pointer;
padding: 12px;
border: 1px solid rgba(220, 220, 220, 0.8);
border-radius: 6px;
background-color: rgba(245, 245, 245, 0.9);
font-size: 16px;
text-align: center;
width: 100%;
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
user-select: none;
}
body .form-container form .radio-group label.radio:hover, body .form-container form .radio-group label.radio:focus {
background-color: rgba(232, 232, 232, 0.9);
border-color: #007b8a;
}
body .form-container form .radio-group input[type=radio]:checked + label.radio {
background-color: #009299;
color: #ffffff;
border-color: rgba(0, 170, 179, 0.8);
}
body .form-container form input[type=range] {
width: 100%;
height: 45px;
-webkit-appearance: none;
appearance: none;
border-radius: 6px;
background-color: rgba(245, 245, 245, 0.9);
border: 1px solid rgba(220, 220, 220, 0.8);
cursor: pointer;
padding: 0;
box-sizing: border-box;
}
body .form-container form input[type=range]::-webkit-slider-runnable-track {
width: 100%;
height: 100%;
border-radius: 6px;
background: linear-gradient(to right, #007b8a 0%, #007b8a var(--value), rgba(245, 245, 245, 0.9) var(--value));
}
body .form-container form input[type=range]::-moz-range-track {
width: 100%;
height: 100%;
border-radius: 6px;
background: linear-gradient(to right, #007b8a 0%, #007b8a var(--value), rgba(245, 245, 245, 0.9) var(--value));
}
body .form-container form input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 45px;
height: 45px;
border-radius: 50%;
background-color: #007b8a;
border: 2px solid rgba(220, 220, 220, 0.8);
cursor: pointer;
margin: 0;
padding: 0;
}
body .form-container form input[type=range]::-moz-range-thumb {
width: 24px;
height: 24px;
border-radius: 50%;
background-color: #007b8a;
border: 2px solid rgba(220, 220, 220, 0.8);
cursor: pointer;
margin: 0;
padding: 0;
}
body .form-container form input[type=range]:focus {
outline: none;
border-color: #007b8a;
}
body .form-container form .submit-button { body .form-container form .submit-button {
flex: 1 1 100%; flex: 1 1 100%;
display: flex; display: flex;
@ -99,7 +202,7 @@ body .form-container form .submit-button {
margin-top: 20px; margin-top: 20px;
} }
body .form-container form .submit-button button { body .form-container form .submit-button button {
width: 30%; width: 40%;
text-align: center; text-align: center;
padding: 12px; padding: 12px;
background-color: #007b8a; background-color: #007b8a;

View File

@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["../scss/_common.scss","../scss/adduser.scss","../scss/_colors.scss"],"names":[],"mappings":"AAAA;EACI;EACA;EACA;EACA;;;AAIJ;EACI;;;ACLJ;EACE;EACA,YCc0B;EDb1B;EACA;EACA;EACA;EACA;;AAGA;EACE,kBCOuB;EDNvB;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;EACE,OCFsB;EDGtB;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAGA;EACE;EACA;EACA;;AAGA;EACE;EACA,OCxBkB;EDyBlB;EACA;;AAIF;AAAA;AAAA;AAAA;AAAA;EAKE;EACA;EACA;EACA;EACA,kBCtCkB;EDuClB;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;EACE,cCzCwB;ED0CxB;;AAMN;EACE;EACA;;AAEA;EACE;EACA,OCzDkB;ED0DlB;EACA;;AAIF;EACE;EACA;EACA;;AAKJ;EACE;EACA;EACA;;AAIF;EACE;EACA;EACA;EACA;;AAEA;EACI;EACA;EACF;EACA,kBCpFc;EDqFd,OCnFmB;EDoFnB;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE,kBC9FkB;;ADiGpB;EACE","file":"adduser.css"} {"version":3,"sourceRoot":"","sources":["../scss/_common.scss","../scss/adduser.scss","../scss/_colors.scss"],"names":[],"mappings":"AAAA;EACI;EACA;EACA;EACA;;;AAIJ;EACI;;;ACLJ;EACI;EACA,YCcwB;EDbxB;EACA;EACA;EACA;EACA;;AAGA;EACI,kBCOmB;EDNnB;EACA;EACA;EACA;EACA;EACA;EACA;;AAGA;EACI,OCFgB;EDGhB;EACA;EACA;EACA;;AAIJ;EACI;EACA;EACA;EACA;;AAGA;EACI;EACA;;AAGA;EACI;EACA,OCxBQ;EDyBR;EACA;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAQI;EACA;EACA;EACA;EACA,kBCzCQ;ED0CR;EACA;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACI,cC5CY;ED6CZ;;AAMR;EACI;EACA,OCxDQ;EDyDR;EACA;;AAGJ;EACI;EACA;;AAGA;EACI;;AAIJ;EACI;EACA;EACA;EACA;EACA,kBC3EI;ED4EJ;EACA;EACA;EACA;EACA;;AAGA;EAEI,kBC7EY;ED8EZ,cCxEmB;;AD6E3B;EACI,kBCnFiB;EDoFjB,OCjFsB;EDkFtB,cC/EwB;;ADqFpC;EACI;EACA;EACA;;AAGJ;EACI;EACA;;AAGA;EACI;;AAIJ;EACI;EACA;EACA;EACA;EACA,kBCzHQ;ED0HR;EACA;EACA;EACA;EACA;;AAGA;EAEI,kBClHa;EDmHb,cC7GoB;;ADkH5B;EACI,kBCxHkB;EDyHlB,OCtHuB;EDuHvB,cCpHyB;;ADyHjC;EACI;EACA;EACA;EACA;EACA;EACA,kBCvJY;EDwJZ;EACA;EACA;EACA;;AAGA;EACI;EACA;EACA;EACA;;AAGJ;EACI;EACA;EACA;EACA;;AAIJ;EACI;EACA;EACA;EACA;EACA;EACA,kBChLI;EDiLJ;EACA;EAEA;EACA;;AAGJ;EACI;EACA;EACA;EACA,kBC5LI;ED6LJ;EACA;EACA;EACA;;AAGJ;EACI;EACA,cCtMgB;;AD2MxB;EACI;EACA;EACA;EACA;;AAEA;EACI;EACA;EACA;EACA,kBCpNI;EDqNJ,OCnNS;EDoNT;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI,kBC9NM;;ADiOV;EACI","file":"adduser.css"}

View File

@ -1 +1 @@
{"version":3,"sourceRoot":"","sources":["../scss/_common.scss","../scss/login.scss","../scss/_colors.scss"],"names":[],"mappings":"AAAA;EACI;EACA;EACA;EACA;;;AAIJ;EACI;;;ACNJ;EAEE;EACA,YCL4B;EDM5B;EACA;EACA;EACA;;AAGA;EACE;EACA;EACA;EACA;EACA;EACA;;AAGA;EACE;EACA;EACA;EACA;EACA;;AAKF;EACE;EACA,OChCqB;EDiCrB;;AAIF;EACE;EACA,OCtCyB;;AD2C7B;EACE,kBC1CoB;ED2CpB;EACA;EACA;EACA;EACA;;AAGA;EACE;EACA;EACA,OCnDmB;EDoDnB;;AAGF;EACE;EACA;EACA;;AAGA;AAAA;EAEE;EACA;EACA;EACA;EACA;EACA;EACA,kBCpEsB;EDqEtB;;AAEA;AAAA;EACI,cCrE0B;;ADuE9B;AAAA;EACE,cCvE4B;EDwE5B,kBC3E4B;ED4E5B;;AAIJ;EACE;EACA;EACA,kBC/Ea;EDgFb,OC5EkB;ED6ElB;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE,kBCzFiB;;AD4FnB;EACE;EACA","file":"login.css"} {"version":3,"sourceRoot":"","sources":["../scss/_common.scss","../scss/login.scss","../scss/_colors.scss"],"names":[],"mappings":"AAAA;EACI;EACA;EACA;EACA;;;AAIJ;EACI;;;ACNJ;EAEI;EACA,YCL0B;EDM1B;EACA;EACA;EACA;;AAGA;EACI;EACA;EACA;EACA;EACA;EACA;;AAGA;EACI;EACA;EACA;EACA;EACA;;AAKJ;EACI;EACA,OChCe;EDiCf;;AAIJ;EACI;EACA,OCtCmB;;AD2C3B;EACI,kBC1CgB;ED2ChB;EACA;EACA;EACA;EACA;;AAGA;EACI;EACA;EACA,OCnDa;EDoDb;;AAGJ;EACI;EACA;EACA;;AAGA;AAAA;EAEI;EACA;EACA;EACA;EACA;EACA;EACA,kBCpEc;EDqEd;;AAEA;AAAA;EACI,cCrEkB;;ADuEtB;AAAA;EACI,cCvEkB;EDwElB,kBC3EkB;ED4ElB;;AAIR;EACI;EACA;EACA,kBC/EK;EDgFL,OC5EU;ED6EV;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACI,kBCzFO;;AD4FX;EACI;EACA","file":"login.css"}

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/home/lcm/Works/ldapmanager/test/css/adduser.css"> <link rel="stylesheet" href="/home/ucadmin/Documents/Scripts/b/Test/ldapmanager/test/css/adduser.css">
<title>Add New User</title> <title>Add New User</title>
</head> </head>
<body> <body>
@ -26,21 +26,52 @@
<input type="password" id="password" name="password" placeholder="Password" required> <input type="password" id="password" name="password" placeholder="Password" required>
</div> </div>
<div class="form-group">
<label for="passwordconfirm">Confirm password</label>
<input type="password" id="passwordconfirm" name="passwordconfirm" placeholder="Re-enter password" required>
</div>
<div class="form-group">
<label for="designation">Designation</label>
<input type="text" id="designation" name="designation" placeholder="Designation" required>
</div>
<div class="form-group">
<label for="department">Department</label>
<input type="text" id="department" name="department" placeholder="Department">
</div>
<div class="form-group"> <div class="form-group">
<label for="email">Email</label> <label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Email Address" required> <input type="email" id="email" name="email" placeholder="Email Address" required>
</div> </div>
<div class="form-group">
<label for="mail-quota">Mail Quota (MB)</label>
<input type="number" id="mail-quota" name="mail_quota" placeholder="Enter mail quota in MB" value="0" min="0" step="1" required>
</div>
<div class="form-group"> <div class="form-group">
<label for="date-joining">Date of Joining</label> <label for="date-joining">Date of Joining</label>
<input type="date" id="date-joining" name="date_of_joining" required> <input type="date" id="date-joining" name="date_of_joining" value="2018-07-22" required>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="date-birth">Date of Birth</label> <label for="date-birth">Date of Birth</label>
<input type="date" id="date-birth" name="date_of_birth" required> <input type="date" id="date-birth" name="date_of_birth" value="2018-07-22" required>
</div> </div>
<div class="form-group">
<label for="mobile_number">Mobile Number</label>
<input type="tel" id="mobile_number" name="mobile_number" placeholder="Enter mobile number">
</div>
<div class="form-group">
<label for="experience_level">Experience Level</label>
<input type="range" id="experience_level" name="experience_level" min="0" max="10" step="1">
</div>
<div class="form-group role-dropdown"> <div class="form-group role-dropdown">
<label for="role">User Role</label> <label for="role">User Role</label>
<select id="role" name="role" required> <select id="role" name="role" required>
@ -51,13 +82,6 @@
</select> </select>
</div> </div>
<!-- New input field for testing -->
<div class="form-group">
<label for="department">Department</label>
<input type="text" id="department" name="department" placeholder="Department">
</div>
<div class="form-group admin-access"> <div class="form-group admin-access">
<label>Admin Access</label> <label>Admin Access</label>
<div class="checkbox-group"> <div class="checkbox-group">
@ -72,8 +96,23 @@
</div> </div>
</div> </div>
<div class="form-group">
<label for="password-expire-at">Password Expire At</label>
<input type="datetime-local" id="password-expire-at" name="password_expire_at" value="2018-06-12T19:30">
</div>
<div class="form-group">
<label>Account Status</label>
<div class="radio-group">
<input type="radio" id="active" name="account_status" value="active">
<label class="radio" for="active">Active</label>
<input type="radio" id="inactive" name="account_status" value="inactive">
<label class="radio" for="inactive">Inactive</label>
</div>
</div>
<!-- Submit Button -->
<div class="form-group submit-button"> <div class="form-group submit-button">
<button type="submit">Add User</button> <button type="submit">Add User</button>
</div> </div>

View File

@ -3,13 +3,13 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/home/lcm/Works/ldapmanager/test/css/login.css"> <link rel="stylesheet" href="/home/ucadmin/Documents/Scripts/b/Test/ldapmanager/test/css/login.css">
<title>Login Page</title> <title>Login Page</title>
</head> </head>
<body> <body>
<div class="left-container"> <div class="left-container">
<img src="/home/lcm/Works/ldapmanager/test/images/logo2.png" alt="Company Logo" class="logo"> <img src="/home/ucadmin/Documents/Scripts/b/Test/ldapmanager/test/images/logo2.png" alt="Company Logo" class="logo">
<h1>LDAP Manager</h1> <h1>LDAP Manager</h1>
<p>User management system</p> <p>User management system</p>
</div> </div>

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
idir="/home/lcm/Works/ldapmanager/test/scss" idir="/home/ucadmin/Documents/Scripts/b/Test/ldapmanager/test/scss"
odir="/home/lcm/Works/ldapmanager/test/css" odir="/home/ucadmin/Documents/Scripts/b/Test/ldapmanager/test/css"
inotifywait -e modify -m -r $idir | while read events; do inotifywait -e modify -m -r $idir | while read events; do
sass $idir/:$odir/ sass $idir/:$odir/
done; done;

View File

@ -30,4 +30,21 @@ $add-user-button-color: #007b8a; // Primary button color
$add-user-button-hover-color: #006b7a; // Button hover color $add-user-button-hover-color: #006b7a; // Button hover color
$add-user-button-text-color: #ffffff; // Button text color $add-user-button-text-color: #ffffff; // Button text color
$add-user-button-shadow: rgba(0, 123, 138, 0.3); // Button shadow color $add-user-button-shadow: rgba(0, 123, 138, 0.3); // Button shadow color
$add-user-description-color: rgba(220, 220, 220, 0.8); // Description text color $user-form-checkbox-button-color: #007b8a;
$user-form-checkbox-button-hover-color: rgba(232, 232, 232, 0.9);
$user-form-checkbox-button-active-color: #009299;
$user-form-checkbox-button-text-color: #007b8a;
$user-form-checkbox-button-hover-text-color: #007b8a;
$user-form-checkbox-button-active-text-color: #ffffff;
$user-form-checkbox-button-border-color: rgba(220, 220, 220, 0.8);
$user-form-checkbox-button-hover-border-color: #007b8a;
$user-form-checkbox-button-active-border-color: rgba(0, 170, 179, 0.8);
$user-form-radio-button-color: #007b8a;
$user-form-radio-button-hover-color: rgba(232, 232, 232, 0.9);
$user-form-radio-button-active-color: #009299;
$user-form-radio-button-text-color: #007b8a;
$user-form-radio-button-hover-text-color: #007b8a;
$user-form-radio-button-active-text-color: #ffffff;
$user-form-radio-button-border-color: rgba(220, 220, 220, 0.8);
$user-form-radio-button-hover-border-color: #007b8a;
$user-form-radio-button-active-border-color: rgba(0, 170, 179, 0.8);

View File

@ -27,7 +27,8 @@ body {
color: $add-user-form-title-color; // Form title color color: $add-user-form-title-color; // Form title color
font-size: 28px; font-size: 28px;
margin-bottom: 20px; margin-bottom: 20px;
text-align: center; // Center the title text-align: left;
display: block;
} }
// Form element // Form element
@ -41,7 +42,6 @@ body {
.form-group { .form-group {
flex: 1 1 calc(50% - 20px); // Take up half the row, accounting for gap flex: 1 1 calc(50% - 20px); // Take up half the row, accounting for gap
min-width: 250px; // Minimum width to prevent shrinking too much min-width: 250px; // Minimum width to prevent shrinking too much
margin-bottom: 20px; // Spacing between fields
// Label styling // Label styling
label { label {
@ -56,6 +56,9 @@ body {
input[type="password"], input[type="password"],
input[type="email"], input[type="email"],
input[type="date"], input[type="date"],
input[type="number"],
input[type="datetime-local"],
input[type="tel"],
select { select {
width: 100%; // Full width of the form group width: 100%; // Full width of the form group
padding: 12px; padding: 12px;
@ -72,23 +75,50 @@ body {
} }
} }
// Admin Access Checkboxes
.admin-access { .admin-access {
flex: 1 1 100%; // Full width for admin access checkboxes
margin-bottom: 20px; // Space below the checkboxes
label { label {
display: block; // Ensure label occupies full line display: block;
color: $add-user-form-title-color; color: $add-user-form-title-color;
font-size: 16px; font-size: 16px;
margin-bottom: 10px; // Space below the main label margin-bottom: 5px;
} }
// Container for checkboxes
.checkbox-group { .checkbox-group {
display: flex; // Use flex for checkboxes display: flex;
justify-content: flex-start; // Align items to the start gap: 10px;
gap: 10px; // Space between each checkbox label
// Hide the checkboxes
input[type="checkbox"] {
display: none;
}
// Style the label as a button to match input fields
label.checkbox {
cursor: pointer;
padding: 12px; // Match the padding with the input fields
border: 1px solid $user-form-checkbox-button-border-color; // Use the same border style
border-radius: 6px; // Match the border radius with other inputs
background-color: $add-user-input-background; // Use the same background color
font-size: 16px; // Font size consistency
text-align: center;
width: 100%; // Make the label full-width
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
user-select: none;
// Change background when active or focused
&:hover,
&:focus {
background-color: $user-form-checkbox-button-hover-color;
border-color: $user-form-checkbox-button-hover-border-color; // Use focus border color
}
}
// Change styles when the checkbox is checked
input[type="checkbox"]:checked + label.checkbox {
background-color: $user-form-checkbox-button-active-color;
color: $user-form-checkbox-button-active-text-color;
border-color: $user-form-checkbox-button-active-border-color;
}
} }
} }
@ -99,6 +129,104 @@ body {
padding: 0; // Reset any padding padding: 0; // Reset any padding
} }
.radio-group {
display: flex;
gap: 10px;
// Hide the radio buttons
input[type="radio"] {
display: none;
}
// Style the label as a button to match the checkboxes
label.radio {
cursor: pointer;
padding: 12px; // Match the padding with the other styled elements
border: 1px solid $add-user-input-border-color;
border-radius: 6px;
background-color: $add-user-input-background;
font-size: 16px;
text-align: center;
width: 100%; // Make the label full-width
transition: background-color 0.3s, color 0.3s, border-color 0.3s;
user-select: none;
// Change background when active or focused
&:hover,
&:focus {
background-color: $user-form-radio-button-hover-color;
border-color: $user-form-radio-button-hover-border-color;
}
}
// Change styles when the radio button is checked
input[type="radio"]:checked + label.radio {
background-color: $user-form-radio-button-active-color;
color: $user-form-radio-button-active-text-color;
border-color: $user-form-radio-button-active-border-color;
}
}
// Style the range input to match the other form inputs
input[type="range"] {
width: 100%; // Full width of the form group
height: 45px; // Match the height of the other input fields
-webkit-appearance: none; // Remove default styling
appearance: none;
border-radius: 6px; // Rounded corners, matching other inputs
background-color: $add-user-input-background; // Same background color as other inputs
border: 1px solid $add-user-input-border-color; // Input field border color
cursor: pointer; // Change cursor on hover
padding: 0; // Remove any default padding
box-sizing: border-box; // Ensure padding is included in total width/height
// Style the filled portion of the track
&::-webkit-slider-runnable-track {
width: 100%;
height: 100%;
border-radius: 6px; // Rounded corners
background: linear-gradient(to right, $add-user-button-color 0%, $add-user-button-color var(--value), $add-user-input-background var(--value)); // Gradient to indicate value
}
&::-moz-range-track {
width: 100%;
height: 100%;
border-radius: 6px;
background: linear-gradient(to right, $add-user-button-color 0%, $add-user-button-color var(--value), $add-user-input-background var(--value));
}
// Style the thumb
&::-webkit-slider-thumb {
-webkit-appearance: none; // Remove default appearance
appearance: none;
width: 45px; // Thumb size
height: 45px;
border-radius: 50%; // Make the thumb round
background-color: $add-user-button-color; // Thumb color
border: 2px solid $add-user-input-border-color; // Thumb border
cursor: pointer;
//margin-top: -8px; // Center the thumb vertically
margin: 0;
padding: 0;
}
&::-moz-range-thumb {
width: 24px;
height: 24px;
border-radius: 50%;
background-color: $add-user-button-color;
border: 2px solid $add-user-input-border-color;
cursor: pointer;
margin: 0;
padding: 0;
}
&:focus {
outline: none; // Remove default focus outline
border-color: $add-user-input-focus-border-color; // Change border color on focus
}
}
// Submit button styling // Submit button styling
.submit-button { .submit-button {
flex: 1 1 100%; // Full width for the submit button flex: 1 1 100%; // Full width for the submit button
@ -107,7 +235,7 @@ body {
margin-top: 20px; // Space above the button margin-top: 20px; // Space above the button
button { button {
width: 30%; width: 40%;
text-align: center; text-align: center;
padding: 12px; // Padding for button padding: 12px; // Padding for button
background-color: $add-user-button-color; // Primary button color background-color: $add-user-button-color; // Primary button color