Skip to content

Commit

Permalink
set more bootstrap background colors
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrindt committed Jun 27, 2023
1 parent d4153dc commit 666f965
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
13 changes: 5 additions & 8 deletions ephios/static/ephios/scss/ephios_bootstrap_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,19 @@ $light: $gray-250;
$dark: $gray-900;

$custom-theme-colors: (
"primary": $primary,
"secondary": $secondary,
"success": $success,
"info": $info,
"warning": $warning,
"danger": $danger,
"light": $light,
"dark": $dark,
"brand": $brand-color,
);

// Looks
//$link-decoration: none;

// TOOD this needs to be adapted for dark-theme
$body-bg: $gray-200;
$input-bg: $gray-100;
$dropdown-bg: $gray-100;
$card-bg: $gray-100;
$card-cap-bg: $gray-100;
$list-group-bg: $gray-100;

$text-muted: $gray-550;

Expand Down
17 changes: 9 additions & 8 deletions ephios/static/ephios/scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
// this file is based on the guide at https://getbootstrap.com/docs/5.3/customize/sass/#importing

// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc)
@import "../../bootstrap/scss/functions";

// 2. Include any default variable overrides here
@import "ephios_bootstrap_variables";

// bootstrap variables come next
// 3. Include remainder of required Bootstrap stylesheets (including any separate color mode stylesheets)
@import "../../bootstrap/scss/variables";
@import "../../bootstrap/scss/variables-dark";


// Sass map overrides here
// https://getbootstrap.com/docs/5.3/migration/#new-_mapsscss
// 4. Include any default map overrides here
$theme-colors: map-merge($theme-colors, $custom-theme-colors);

// 3. Include bootstrap
// 5. Include remainder of required parts
@import "../../bootstrap/scss/maps";
@import "../../bootstrap/scss/mixins";
@import "../../bootstrap/scss/utilities";

// Layout & components
// 6. Optionally include any other parts as needed
@import "../../bootstrap/scss/root";
@import "../../bootstrap/scss/reboot";
@import "../../bootstrap/scss/type";
Expand Down Expand Up @@ -50,11 +51,11 @@ $theme-colors: map-merge($theme-colors, $custom-theme-colors);
@import "../../bootstrap/scss/spinners";
@import "../../bootstrap/scss/offcanvas";
@import "../../bootstrap/scss/placeholders";

// Helpers and utilities
@import "../../bootstrap/scss/helpers";

// 7. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss`
@import "../../bootstrap/scss/utilities/api";

// 4. Add additional custom code here
// 8. Add additional custom code here
@import "ephios_utilities";
@import "ephios_custom";

0 comments on commit 666f965

Please sign in to comment.