seekr / frontend /src /Components /IntialSetting.css
Hemang Thakur
a lot of changes
85a4a41
.showSetting {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: rgba(0, 0, 0, 0.2);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
overflow: hidden;
}
.showSetting-inner {
position: relative;
border-radius: 12px;
padding: 32px;
width: 45%;
max-width: 100%;
background-color: #1e1e1e;
max-height: 80vh; /* Limits height to 80% of the viewport */
overflow-y: auto; /* Enables vertical scrolling when content overflows */
}
/* Dark Themed Scrollbar */
.showSetting-inner::-webkit-scrollbar {
width: 8px; /* Width of the scrollbar */
}
.showSetting-inner::-webkit-scrollbar-track {
background: #2a2a2a; /* Darker track background */
border-radius: 5px;
}
.showSetting-inner::-webkit-scrollbar-thumb {
background: #444; /* Darker scrollbar handle */
border-radius: 5px;
}
.showSetting-inner::-webkit-scrollbar-thumb:hover {
background: #555; /* Lighter on hover */
}
/* Setting inner container */
.showSetting-inner {
position: relative;
scrollbar-color: #444 #2a2a2a; /* Scrollbar thumb and track */
scrollbar-width: thin;
padding-top: 4.5rem;
}
/* Ensure the close button stays fixed */
.showSetting-inner .close-btn {
position: absolute;
top: 16px;
right: 16px;
background: none;
color: white;
padding: 7px;
border-radius: 5px;
cursor: pointer;
}
/* Close button hover effect */
.showSetting-inner .close-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: white;
}
/* Ensure the title stays at the top */
.showSetting-inner .setting-size {
position: absolute;
font-weight: bold;
font-size: 1.5rem;
top: 16px;
left: 16px;
}
/* Form groups styling */
.form-group {
margin-bottom: 20px;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.form-group label {
font-size: large;
margin-bottom: 5px;
}
.sliders-container {
display: flex;
justify-content: space-between;
gap: 30px;
width: 100%;
}
.slider-item {
flex: 1; /* Each slider item will take up equal available space */
width: 100%;
}
/* Container for password input and icon */
.password-wrapper {
position: relative;
width: 100%;
}
/* Style the input to have extra padding on the right so text doesn’t run under the icon */
.password-wrapper input {
width: 100%;
padding-right: 40px; /* Adjust based on the icon size */
}
.password-wrapper .password-toggle {
position: absolute !important;
color: #DDD;
top: 50% !important;
left: 95% !important;
transform: translateY(-50%) !important;
}
/* Slider styling */
.slider-item {
text-align: center;
}
input, select, textarea {
background: #1E1E1E;
color: #DDD;
border: 1px solid #444;
padding: 10px;
border-radius: 5px;
width: 100%;
font-size: 16px;
transition: border 0.3s ease, background 0.3s ease;
}
/* Text for re-applying settings snackbar*/
.re-applying-settings-text {
color: #DDD;
margin-top: -0.5rem;
}
/* Spinner styling */
.re-applying-settings-custom-spinner {
width: 1.2rem !important;
height: 1.2rem !important;
border: 2.5px solid #ececece1 !important; /* Main Spinner */
border-top: 2.5px solid #303030 !important; /* Rotating path */
border-radius: 50% !important;
margin-top: -0.5rem !important;
animation: spin 0.9s linear infinite !important;
}
/* Spinner animation */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.showSetting-inner {
width: 90%;
max-height: 75vh; /* Adjust height for smaller screens */
}
}