diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 52197bf5..5859d1c4 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -1,56 +1,16 @@ -/* - * Keep in sync with `assets/stylesheets/_bootstrap.scss` from - * `bootstrap-rubygem`. - */ - +// 1. Include functions & variables first @import "bootstrap/functions"; - -$custom-colors: ( "bootstrap": #563d7c, "simpleform": #00617f ); - @import "bootstrap/variables"; -@import "bootstrap/mixins"; +$custom-colors: ( + "bootstrap": #563d7c, + "simpleform": #00617f +); $theme-colors: map-merge($theme-colors, $custom-colors); -@import "bootstrap/utilities"; - -// Layout & components -@import "bootstrap/root"; -@import "bootstrap/reboot"; -@import "bootstrap/type"; -@import "bootstrap/images"; -@import "bootstrap/containers"; -@import "bootstrap/grid"; -@import "bootstrap/tables"; -@import "bootstrap/forms"; -@import "bootstrap/buttons"; -@import "bootstrap/transitions"; -@import "bootstrap/dropdown"; -@import "bootstrap/button-group"; -@import "bootstrap/nav"; -@import "bootstrap/navbar"; -@import "bootstrap/card"; -@import "bootstrap/accordion"; -@import "bootstrap/breadcrumb"; -@import "bootstrap/pagination"; -@import "bootstrap/badge"; -@import "bootstrap/alert"; -@import "bootstrap/progress"; -@import "bootstrap/list-group"; -@import "bootstrap/close"; -@import "bootstrap/toasts"; -@import "bootstrap/modal"; -@import "bootstrap/tooltip"; -@import "bootstrap/popover"; -@import "bootstrap/carousel"; -@import "bootstrap/spinners"; -@import "bootstrap/offcanvas"; - -// Helpers -@import "bootstrap/helpers"; +// Custom bootstrap variables must be set or imported *before* bootstrap. +@import "bootstrap"; -// Utilities -@import "bootstrap/utilities/api"; // App sections @import "application/breadcrumb"; diff --git a/app/views/examples/input_groups/_bootstrap.html.erb b/app/views/examples/input_groups/_bootstrap.html.erb index 07eb1137..6368ee65 100644 --- a/app/views/examples/input_groups/_bootstrap.html.erb +++ b/app/views/examples/input_groups/_bootstrap.html.erb @@ -4,7 +4,7 @@