From 9f5eec26bb1d59a258bbf87188b82c739a2bfa09 Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Thu, 19 Mar 2015 16:11:30 -0400
Subject: [PATCH] Recompile bootstrap-custom.css.

Added a just-custom.less. Replace @import "bootstrap/bootstrap" with @import "just-custom" to compile only the custom styles of bootstrap3. Disabling the compress setting in the VuFindTheme/LessCompiler is recommended.
---
 themes/bootstrap3/css/bootstrap-custom.css | 47 ----------------------
 themes/bootstrap3/less/just-custom.less    |  4 ++
 2 files changed, 4 insertions(+), 47 deletions(-)
 create mode 100644 themes/bootstrap3/less/just-custom.less

diff --git a/themes/bootstrap3/css/bootstrap-custom.css b/themes/bootstrap3/css/bootstrap-custom.css
index e0c31e606a8..f6f76761ad9 100644
--- a/themes/bootstrap3/css/bootstrap-custom.css
+++ b/themes/bootstrap3/css/bootstrap-custom.css
@@ -168,53 +168,6 @@ a.list-group-item-danger.active:focus {
   margin-bottom: 0;
   line-height: 1.3;
 }
-/*
-// Reset and dependencies
-@import "normalize.less";
-@import "print.less";
-@import "glyphicons.less";
-
-// Core CSS
-@import "scaffolding.less";
-@import "type.less";
-@import "code.less";
-@import "grid.less";
-@import "tables.less";
-@import "forms.less";
-@import "buttons.less";
-
-// Components
-@import "component-animations.less";
-@import "dropdowns.less";
-@import "button-groups.less";
-@import "input-groups.less";
-@import "navs.less";
-@import "navbar.less";
-@import "breadcrumbs.less";
-@import "pagination.less";
-@import "pager.less";
-@import "labels.less";
-@import "badges.less";
-@import "jumbotron.less";
-@import "thumbnails.less";
-@import "alerts.less";
-@import "progress-bars.less";
-@import "media.less";
-@import "panels.less";
-@import "responsive-embed.less";
-@import "wells.less";
-@import "close.less";
-
-// Components w/ JavaScript
-@import "modals.less";
-@import "tooltip.less";
-@import "popovers.less";
-@import "carousel.less";
-
-// Utility classes
-@import "utilities.less";
-@import "responsive-utilities.less";
-*/
 /* mixins */
 .sr-only {
   clip: rect(1px, 1px, 1px, 1px);
diff --git a/themes/bootstrap3/less/just-custom.less b/themes/bootstrap3/less/just-custom.less
new file mode 100644
index 00000000000..d0ff10a8c7b
--- /dev/null
+++ b/themes/bootstrap3/less/just-custom.less
@@ -0,0 +1,4 @@
+// Core variables and mixins to make the bootstrap-custom.css
+@import "bootstrap/variables.less";
+@import "bootstrap/mixins.less";
+@import "bootstrap/list-group.less";
\ No newline at end of file
-- 
GitLab