mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
start using some css variables where we can
This commit is contained in:
@@ -318,7 +318,7 @@ const ServerDashboard = (props) => {
|
|||||||
}, {});
|
}, {});
|
||||||
return (
|
return (
|
||||||
<ReactObjectTableViewer
|
<ReactObjectTableViewer
|
||||||
className="table-striped table-bordered"
|
className="table table-striped table-bordered"
|
||||||
style={{
|
style={{
|
||||||
padding: "3px 6px",
|
padding: "3px 6px",
|
||||||
margin: "auto",
|
margin: "auto",
|
||||||
|
20
share/jupyterhub/static/scss/cssvariables.css
Normal file
20
share/jupyterhub/static/scss/cssvariables.css
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/* CSS variables
|
||||||
|
note: SCSS variable overrides must be loaded _before_ bootstrap (variables.scss)
|
||||||
|
while CSS variable overrides must be loaded _after_ bootstrap (cssvariables.scss)
|
||||||
|
*/
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
/* higher contrast nav links by default */
|
||||||
|
--bs-navbar-color: rgba(black, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-nav {
|
||||||
|
/* no color change on nav links
|
||||||
|
darken background on hover, no change to text
|
||||||
|
background part is in page.scss
|
||||||
|
*/
|
||||||
|
|
||||||
|
--bs-nav-link-color: var(--bs-navbar-color);
|
||||||
|
--bs-nav-link-hover-color: var(--bs-nav-link-color);
|
||||||
|
--bs-nav-link-active-color: var(--bs-nav-link-color);
|
||||||
|
}
|
@@ -39,6 +39,9 @@
|
|||||||
// 7. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss`
|
// 7. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss`
|
||||||
// @import "../components/bootstrap/scss/utilities/api";
|
// @import "../components/bootstrap/scss/utilities/api";
|
||||||
|
|
||||||
|
// CSS variables must be loaded _after_ bootstrap to override
|
||||||
|
@import "./cssvariables";
|
||||||
|
|
||||||
// redefine .btn-xs, removed in bootstrap 4
|
// redefine .btn-xs, removed in bootstrap 4
|
||||||
.btn-xs {
|
.btn-xs {
|
||||||
// $padding-y, $padding-x, $font-size, $border-radius
|
// $padding-y, $padding-x, $font-size, $border-radius
|
||||||
|
@@ -1,10 +1,4 @@
|
|||||||
$border-radius-large: 5px;
|
$border-radius-large: 5px;
|
||||||
$navbar-height: 40px;
|
|
||||||
|
|
||||||
// darken background on hover, no change to text
|
|
||||||
// background part is in page.scss
|
|
||||||
$nav-link-color: var(--bs-navbar-color);
|
|
||||||
$nav-link-hover-color: $nav-link-color;
|
|
||||||
|
|
||||||
$jupyter-orange: #f37524;
|
$jupyter-orange: #f37524;
|
||||||
$jupyter-red: #e34f21;
|
$jupyter-red: #e34f21;
|
||||||
|
Reference in New Issue
Block a user