mirror of
https://github.com/stellarshenson/stellars-jupyterhub-ds.git
synced 2026-03-07 21:50:28 +00:00
style: use stock Bootstrap progress bar styling
- remove custom border, radius, and background overrides - match JupyterHub's built-in spawn progress bar appearance - set color via --bs-progress-bar-bg variable instead of fighting it - keep only 10px height override and width transition
This commit is contained in:
@@ -1645,16 +1645,10 @@ textarea.form-control {
|
||||
|
||||
#session-timer-bar .progress {
|
||||
height: 10px;
|
||||
border-radius: 2px;
|
||||
background-color: rgba(0, 0, 0, 0.06);
|
||||
border: 2px solid #446897; /* initial; JS syncs to bar color */
|
||||
transition: border-color 0.5s ease;
|
||||
}
|
||||
|
||||
#session-timer-bar .progress-bar {
|
||||
--bs-progress-bar-bg: transparent; /* clear Bootstrap default */
|
||||
transition: width 1s ease-in-out;
|
||||
border-radius: 1px;
|
||||
}
|
||||
|
||||
#session-time-text {
|
||||
@@ -1680,7 +1674,4 @@ textarea.form-control {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
/* Dark mode session timer */
|
||||
[data-bs-theme="dark"] #session-timer-bar .progress {
|
||||
background-color: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
/* Dark mode session timer - stock Bootstrap styling, no overrides needed */
|
||||
|
||||
@@ -97,10 +97,9 @@
|
||||
var color = getColor(pct);
|
||||
var css = rgbStr(color);
|
||||
|
||||
// progress bar + track border (setProperty to bypass Bootstrap variable)
|
||||
// progress bar color via Bootstrap CSS variable
|
||||
$progressBar.removeClass('bg-success bg-warning bg-danger');
|
||||
$progressBar[0].style.setProperty('background-color', css, 'important');
|
||||
$progressBar.closest('.progress').css('border-color', css);
|
||||
$progressBar[0].style.setProperty('--bs-progress-bar-bg', css);
|
||||
|
||||
// time text
|
||||
$timeText.css('color', css);
|
||||
|
||||
Reference in New Issue
Block a user