Просмотр исходного кода

ux(less): began less / bootstrap less cleanup and restructuring

Torkel Ödegaard 10 лет назад
Родитель
Сommit
5274f93db7
37 измененных файлов с 13 добавлено и 819 удалено
  1. 0 24
      public/app/features/admin/adminSettingsCtrl.js
  2. 0 0
      public/less/bootstrap/alerts.less
  3. 0 2
      public/less/bootstrap/bootstrap.less
  4. 0 0
      public/less/bootstrap/button-groups.less
  5. 0 0
      public/less/bootstrap/buttons.less
  6. 0 0
      public/less/bootstrap/close.less
  7. 0 0
      public/less/bootstrap/code.less
  8. 0 0
      public/less/bootstrap/component-animations.less
  9. 0 0
      public/less/bootstrap/dropdowns.less
  10. 0 0
      public/less/bootstrap/forms.less
  11. 0 0
      public/less/bootstrap/grid.less
  12. 0 0
      public/less/bootstrap/labels-badges.less
  13. 0 0
      public/less/bootstrap/layouts.less
  14. 0 0
      public/less/bootstrap/media.less
  15. 0 0
      public/less/bootstrap/mixins.less
  16. 0 0
      public/less/bootstrap/modals.less
  17. 0 111
      public/less/bootstrap/navbar.less
  18. 0 0
      public/less/bootstrap/navs.less
  19. 0 0
      public/less/bootstrap/popovers.less
  20. 0 0
      public/less/bootstrap/reset.less
  21. 0 0
      public/less/bootstrap/responsive-1200px-min.less
  22. 0 0
      public/less/bootstrap/responsive-767px-max.less
  23. 0 0
      public/less/bootstrap/responsive-768px-979px.less
  24. 0 0
      public/less/bootstrap/responsive-utilities.less
  25. 0 15
      public/less/bootstrap/responsive.less
  26. 0 0
      public/less/bootstrap/scaffolding.less
  27. 0 0
      public/less/bootstrap/tables.less
  28. 0 0
      public/less/bootstrap/tooltip.less
  29. 0 0
      public/less/bootstrap/type.less
  30. 0 0
      public/less/bootstrap/utilities.less
  31. 1 184
      public/less/bootswatch.dark.less
  32. 0 170
      public/less/bootswatch.light.less
  33. 3 3
      public/less/grafana-responsive.less
  34. 3 3
      public/less/grafana.dark.less
  35. 3 3
      public/less/grafana.light.less
  36. 0 301
      public/vendor/bootstrap/less/variables.less
  37. 3 3
      tasks/options/less.js

+ 0 - 24
public/app/features/admin/adminSettingsCtrl.js

@@ -1,24 +0,0 @@
-define([
-  'angular',
-],
-function (angular) {
-  'use strict';
-
-  var module = angular.module('grafana.controllers');
-
-  module.controller('AdminSettingsCtrl', function($scope, backendSrv) {
-
-    $scope.init = function() {
-      $scope.getUsers();
-    };
-
-    $scope.getUsers = function() {
-      backendSrv.get('/api/admin/settings').then(function(settings) {
-        $scope.settings = settings;
-      });
-    };
-
-    $scope.init();
-
-  });
-});

+ 0 - 0
public/vendor/bootstrap/less/alerts.less → public/less/bootstrap/alerts.less


+ 0 - 2
public/vendor/bootstrap/less/bootstrap.less → public/less/bootstrap/bootstrap.less

@@ -8,8 +8,6 @@
  * Designed and built with all the love in the world by @mdo and @fat.
  * Designed and built with all the love in the world by @mdo and @fat.
  */
  */
 
 
-// Core variables and mixins
-@import "variables.less"; // Modify this for custom colors, font-sizes, etc
 @import "mixins.less";
 @import "mixins.less";
 
 
 // CSS Reset
 // CSS Reset

+ 0 - 0
public/vendor/bootstrap/less/button-groups.less → public/less/bootstrap/button-groups.less


+ 0 - 0
public/vendor/bootstrap/less/buttons.less → public/less/bootstrap/buttons.less


+ 0 - 0
public/vendor/bootstrap/less/close.less → public/less/bootstrap/close.less


+ 0 - 0
public/vendor/bootstrap/less/code.less → public/less/bootstrap/code.less


+ 0 - 0
public/vendor/bootstrap/less/component-animations.less → public/less/bootstrap/component-animations.less


+ 0 - 0
public/vendor/bootstrap/less/dropdowns.less → public/less/bootstrap/dropdowns.less


+ 0 - 0
public/vendor/bootstrap/less/forms.less → public/less/bootstrap/forms.less


+ 0 - 0
public/vendor/bootstrap/less/grid.less → public/less/bootstrap/grid.less


+ 0 - 0
public/vendor/bootstrap/less/labels-badges.less → public/less/bootstrap/labels-badges.less


+ 0 - 0
public/vendor/bootstrap/less/layouts.less → public/less/bootstrap/layouts.less


+ 0 - 0
public/vendor/bootstrap/less/media.less → public/less/bootstrap/media.less


+ 0 - 0
public/vendor/bootstrap/less/mixins.less → public/less/bootstrap/mixins.less


+ 0 - 0
public/vendor/bootstrap/less/modals.less → public/less/bootstrap/modals.less


+ 0 - 111
public/vendor/bootstrap/less/navbar.less → public/less/bootstrap/navbar.less

@@ -203,114 +203,3 @@
     .border-radius(6px 0 6px 6px);
     .border-radius(6px 0 6px 6px);
   }
   }
 }
 }
-
-
-// Inverted navbar
-// -------------------------
-
-.navbar-inverse {
-
-  .navbar-inner {
-    #gradient > .vertical(@navbarInverseBackgroundHighlight, @navbarInverseBackground);
-    border-color: @navbarInverseBorder;
-  }
-
-  .brand,
-  .nav > li > a {
-    color: @navbarInverseLinkColor;
-    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
-    &:hover,
-    &:focus {
-      color: @navbarInverseLinkColorHover;
-    }
-  }
-
-  .brand {
-    color: @navbarInverseBrandColor;
-  }
-
-  .navbar-text {
-    color: @navbarInverseText;
-  }
-
-  .nav > li > a:focus,
-  .nav > li > a:hover {
-    background-color: @navbarInverseLinkBackgroundHover;
-    color: @navbarInverseLinkColorHover;
-  }
-
-  .nav .active > a,
-  .nav .active > a:hover,
-  .nav .active > a:focus {
-    color: @navbarInverseLinkColorActive;
-    background-color: @navbarInverseLinkBackgroundActive;
-  }
-
-  // Inline text links
-  .navbar-link {
-    color: @navbarInverseLinkColor;
-    &:hover,
-    &:focus {
-      color: @navbarInverseLinkColorHover;
-    }
-  }
-
-  // Dividers in navbar
-  .divider-vertical {
-    border-left-color: @navbarInverseBackground;
-    border-right-color: @navbarInverseBackgroundHighlight;
-  }
-
-  // Dropdowns
-  .nav li.dropdown.open > .dropdown-toggle,
-  .nav li.dropdown.active > .dropdown-toggle,
-  .nav li.dropdown.open.active > .dropdown-toggle {
-    background-color: @navbarInverseLinkBackgroundActive;
-    color: @navbarInverseLinkColorActive;
-  }
-  .nav li.dropdown > a:hover .caret,
-  .nav li.dropdown > a:focus .caret {
-    border-top-color: @navbarInverseLinkColorActive;
-    border-bottom-color: @navbarInverseLinkColorActive;
-  }
-  .nav li.dropdown > .dropdown-toggle .caret {
-    border-top-color: @navbarInverseLinkColor;
-    border-bottom-color: @navbarInverseLinkColor;
-  }
-  .nav li.dropdown.open > .dropdown-toggle .caret,
-  .nav li.dropdown.active > .dropdown-toggle .caret,
-  .nav li.dropdown.open.active > .dropdown-toggle .caret {
-    border-top-color: @navbarInverseLinkColorActive;
-    border-bottom-color: @navbarInverseLinkColorActive;
-  }
-
-  // Navbar search
-  .navbar-search {
-    .search-query {
-      color: @white;
-      background-color: @navbarInverseSearchBackground;
-      border-color: @navbarInverseSearchBorder;
-      .box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15)");
-      .transition(none);
-      .placeholder(@navbarInverseSearchPlaceholderColor);
-
-      // Focus states (we use .focused since IE7-8 and down doesn't support :focus)
-      &:focus,
-      &.focused {
-        padding: 5px 15px;
-        color: @grayDark;
-        text-shadow: 0 1px 0 @white;
-        background-color: @navbarInverseSearchBackgroundFocus;
-        border: 0;
-        .box-shadow(0 0 3px rgba(0,0,0,.15));
-        outline: 0;
-      }
-    }
-  }
-
-  // Navbar collapse button
-  .btn-navbar {
-    .buttonBackground(darken(@navbarInverseBackgroundHighlight, 5%), darken(@navbarInverseBackground, 5%));
-  }
-
-}

+ 0 - 0
public/vendor/bootstrap/less/navs.less → public/less/bootstrap/navs.less


+ 0 - 0
public/vendor/bootstrap/less/popovers.less → public/less/bootstrap/popovers.less


+ 0 - 0
public/vendor/bootstrap/less/reset.less → public/less/bootstrap/reset.less


+ 0 - 0
public/vendor/bootstrap/less/responsive-1200px-min.less → public/less/bootstrap/responsive-1200px-min.less


+ 0 - 0
public/vendor/bootstrap/less/responsive-767px-max.less → public/less/bootstrap/responsive-767px-max.less


+ 0 - 0
public/vendor/bootstrap/less/responsive-768px-979px.less → public/less/bootstrap/responsive-768px-979px.less


+ 0 - 0
public/vendor/bootstrap/less/responsive-utilities.less → public/less/bootstrap/responsive-utilities.less


+ 0 - 15
public/vendor/bootstrap/less/responsive.less → public/less/bootstrap/responsive.less

@@ -18,25 +18,10 @@
 // -------------------------
 // -------------------------
 // Required since we compile the responsive stuff separately
 // Required since we compile the responsive stuff separately
 
 
-@import "variables.less"; // Modify this for custom colors, font-sizes, etc
 @import "mixins.less";
 @import "mixins.less";
-
-
-// RESPONSIVE CLASSES
-// ------------------
 @import "responsive-utilities.less";
 @import "responsive-utilities.less";
-
-
-// MEDIA QUERIES
-// ------------------
-
-// Large desktops
 @import "responsive-1200px-min.less";
 @import "responsive-1200px-min.less";
-
-// Tablets to regular desktops
 @import "responsive-768px-979px.less";
 @import "responsive-768px-979px.less";
-
-// Phones to portrait tablets and narrow desktops
 @import "responsive-767px-max.less";
 @import "responsive-767px-max.less";
 
 
 
 

+ 0 - 0
public/vendor/bootstrap/less/scaffolding.less → public/less/bootstrap/scaffolding.less


+ 0 - 0
public/vendor/bootstrap/less/tables.less → public/less/bootstrap/tables.less


+ 0 - 0
public/vendor/bootstrap/less/tooltip.less → public/less/bootstrap/tooltip.less


+ 0 - 0
public/vendor/bootstrap/less/type.less → public/less/bootstrap/type.less


+ 0 - 0
public/vendor/bootstrap/less/utilities.less → public/less/bootstrap/utilities.less


+ 1 - 184
public/less/bootswatch.dark.less

@@ -5,26 +5,6 @@
 // TYPOGRAPHY
 // TYPOGRAPHY
 // -----------------------------------------------------
 // -----------------------------------------------------
 
 
-label, input, button, select, textarea,
-.navbar .search-query:-moz-placeholder,
-.navbar .search-query::-webkit-input-placeholder {
-	font-family: 'Droid Sans', sans-serif;
-	color: @gray;
-}
-
-
-
-blockquote {
-	border-left: 5px solid @grayDark;
-
-	&.pull-right {
-		border-right: 5px solid @grayDark;
-	}
-}
-
-// SCAFFOLDING
-// -----------------------------------------------------
-
 html {
 html {
 	height: 100%;
 	height: 100%;
 }
 }
@@ -93,54 +73,9 @@ hr {
 		text-shadow: none;
 		text-shadow: none;
 		.placeholder(@gray);
 		.placeholder(@gray);
 	}
 	}
-
-	&-inverse {
-
-	}
 }
 }
 
 
 
 
-div.subnav {
-
-	margin: 0 1px;
-	background-color: @grayDarker;
-	background-image: none;
-	border: none;
-	border-bottom: 1px solid @grayDark;
-
-	.nav > li > a,
-	.nav > li:first-child > a,
-	.nav > li:first-child > a:hover {
-		padding: 11px 12px;
-		border: none;
-		background-color: @grayDarker;
-		color: @grayLight;
-	}
-
-	.nav > li > a:hover,
-	.nav > li.active > a,
-	.nav > li.active > a:hover,
-	.nav > li:first-child > a:hover {
-		padding: 11px 12px;
-		background: transparent;
-		border: none;
-		border-bottom: 1px solid @blue;
-		color: @white;
-	}
-
-	.nav li.nav-header {
-		text-shadow: none;
-	}
-
-
-
-
-	&-fixed {
-		top: @navbarHeight;
-		margin: 0;
-	}
-}
-
 // NAV
 // NAV
 // -----------------------------------------------------
 // -----------------------------------------------------
 
 
@@ -172,131 +107,13 @@ div.subnav {
 	}
 	}
 }
 }
 
 
-.nav-pills {
-
-	li > a:hover {
-		background-color: @blue;
-		color: @white;
-	}
-
-	li.disabled > a {
-		color: @textColor;
-	}
-
-	.open .dropdown-toggle {
-		background-color: #060606;
-	}
-
-	.dropdown-menu li > a:hover {
-		border: none;
-	}
-}
-
-.nav-list {
-
-	li > a {
-		text-shadow: none;
-	}
-
-	li > a:hover {
-		background-color: @blue;
-		color: @white;
-	}
-
-	.nav-header {
-		text-shadow: none;
-	}
-
-	.divider {
-		background-color: transparent;
-		border-bottom: 1px solid @grayDark;
-	}
-}
-
-.nav-stacked {
-
-	li > a {
-		border: 1px solid @grayDark !important;
-	}
-
-	li > a:hover,
-	li.active > a {
-		background-color: @blue;
-		color: @white;
-	}
-}
-
-.tabbable  {
-	.nav-tabs,
-	.nav-tabs li.active > a {
-		border-color: @grayDark;
-	}
-}
-
-.breadcrumb {
-
-	background-color: transparent;
-	background-image: none;
-	border-width: 0;
-	.box-shadow(none);
-	font-size: 14px;
-
-	li {
-		text-shadow: none;
-	}
-
-	li > a {
-		color: @blue;
-		text-shadow: none;
-	}
-}
-
-.pagination {
-
-	ul {
-		.box-shadow(none);
-	}
-
-	ul > li > a:hover,
-	ul > .active > a,
-	ul > .active > span {
-		// color: @white;
-	}
-
-	ul > .disabled > a,
-	ul > .disabled > a:hover,
-	ul > .disabled > span,
-	ul > .disabled > span:hover {
-		background-color: rgba(0, 0, 0, 0.2);
-	}
-}
-
-.pager {
-
-	li > a,
-	li > span {
-		background-color: @bodyBackground;
-		border: none;
-
-		&:hover {
-			background-color: @blue;
-		}
-	}
-
-	.disabled a,
-	.disabled a:hover {
-		background-color: @bodyBackground;
-	}
-
-}
-
 // BUTTONS
 // BUTTONS
 // -----------------------------------------------------
 // -----------------------------------------------------
+
 .btn {
 .btn {
 	padding: 8px 12px;
 	padding: 8px 12px;
 	margin-right:10px;
 	margin-right:10px;
 	background-image: none;
 	background-image: none;
-	// .box-shadow(0px 0px 8px @bodyBackground);
 	border: none;
 	border: none;
 	.border-radius(0px);
 	.border-radius(0px);
 	text-shadow: none;
 	text-shadow: none;

+ 0 - 170
public/less/bootswatch.light.less

@@ -87,64 +87,12 @@ a.text-success:hover { color: darken(@green, 10%); }
 	.navbar-search .search-query {
 	.navbar-search .search-query {
 		line-height: normal;
 		line-height: normal;
 	}
 	}
-
-	&-inverse {
-
-		.brand,
-		.nav > li > a {
-			text-shadow: none;
-		}
-
-		.brand:hover,
-		.nav > .active > a,
-		.nav > .active > a:hover,
-		.nav > .active > a:focus {
-			background-color: @navbarInverseLinkBackgroundHover;
-			.box-shadow(none);
-			color: @white;
-		}
-
-		.navbar-search .search-query {
-			color: @grayDarker;
-		}
-	}
-}
-
-div.subnav {
-
-	margin: 0 1px;
-	background: @grayLight none;
-	.box-shadow(none);
-	border: none;
-	.border-radius(0);
-
-	.nav {
-		background-color: transparent;
-	}
-
-	.nav > li > a {
-		border-color: transparent;
-	}
-
-	.nav > .active > a,
-	.nav > .active > a:hover {
-		border-color: transparent;
-		background-color: @black;
-		color: @white;
-		.box-shadow(none);
-	}
-
-	&-fixed {
-		top: @navbarHeight + 1;
-		margin: 0;
-	}
 }
 }
 
 
 // NAV
 // NAV
 // -----------------------------------------------------
 // -----------------------------------------------------
 
 
 .nav {
 .nav {
-
 	.open .dropdown-toggle,
 	.open .dropdown-toggle,
 	& > li.dropdown.open.active > a:hover {
 	& > li.dropdown.open.active > a:hover {
 		color: @blue;
 		color: @blue;
@@ -187,121 +135,6 @@ div.subnav {
 	}
 	}
 }
 }
 
 
-.nav-pills {
-
-	& > li > a {
-		//background-color: @grayLight;
-		.border-radius(0);
-		color: @black;
-
-		&:hover {
-			background-color: @black;
-			color: @white;
-		}
-	}
-
-	& > .disabled > a,
-	& > .disabled > a:hover {
-		background-color: @grayLighter;
-		color: @grayDark;
-	}
-}
-
-.nav-list {
-
-	& > li > a {
-		color: @grayDarker;
-
-		&:hover {
-			background-color: @blue;
-			color: @white;
-			text-shadow: none;
-		}
-	}
-
-	.nav-header {
-		color: @grayDarker;
-	}
-
-	.divider {
-		background-color: @gray;
-		border-bottom: none;
-	}
-}
-
-.pagination {
-
-	ul {
-
-		.box-shadow(none);
-
-		& > li > a,
-		& > li > span {
-			margin-right: 6px;
-			color: @grayDarker;
-
-			&:hover {
-				background-color: @grayDarker;
-				color: @white;
-			}
-		}
-
-		& > li:last-child > a,
-		& > li:last-child > span {
-			margin-right: 0;
-		}
-
-		& > .active > a,
-		& > .active > span {
-			color: @white;
-		}
-
-		& > .disabled > span,
-		& > .disabled > a,
-		& > .disabled > a:hover {
-			background-color: @grayLighter;
-			color: @grayDark;
-		}
-	}
-}
-
-.pager {
-
-	li > a,
-	li > span {
-		background-color: @grayLight;
-		border: none;
-		.border-radius(0);
-		color: @grayDarker;
-
-		&:hover {
-			background-color: @grayDarker;
-			color: @white;
-		}
-	}
-
-	.disabled > a,
-	.disabled > a:hover,
-	.disabled > span {
-		background-color: @grayLighter;
-		color: @grayDark;
-	}
-
-}
-
-.breadcrumb {
-	background-color: @grayLight;
-
-	li {
-		text-shadow: none;
-	}
-
-	.divider,
-	.active {
-		color: @grayDarker;
-		text-shadow: none;
-	}
-}
 
 
 // BUTTONS
 // BUTTONS
 // -----------------------------------------------------
 // -----------------------------------------------------
@@ -319,9 +152,6 @@ div.subnav {
 	}
 	}
 }
 }
 
 
-.btn-inverse {
-}
-
 .btn-large {
 .btn-large {
   padding: 14px 23px;
   padding: 14px 23px;
 }
 }

+ 3 - 3
public/less/grafana-responsive.less

@@ -1,4 +1,5 @@
-@import "responsive.less";
+@import "variables.dark.less";
+@import "bootstrap/responsive.less";
 
 
 @gridColumnWidth:         70px;
 @gridColumnWidth:         70px;
 @gridGutterWidth:         10px;
 @gridGutterWidth:         10px;
@@ -68,7 +69,7 @@
     display: none;
     display: none;
   }
   }
   .page-container {
   .page-container {
-    padding: 0 20px;
+    padding: 10px 20px;
   }
   }
 }
 }
 
 
@@ -92,7 +93,6 @@
     .dashnav-action-icons {
     .dashnav-action-icons {
       display: none;
       display: none;
     }
     }
-
     .dashnav-back-to-dashboard  {
     .dashnav-back-to-dashboard  {
       display: block;
       display: block;
     }
     }

+ 3 - 3
public/less/bootstrap.dark.less → public/less/grafana.dark.less

@@ -1,5 +1,5 @@
-@import "bootstrap.less";
+@import "variables.dark.less";
+@import "bootstrap/bootstrap.less";
 @import "bootswatch.dark.less";
 @import "bootswatch.dark.less";
 @import "overrides.less";
 @import "overrides.less";
-@import "variables.dark.less";
-@import "grafana.less";
+@import "grafana.less";

+ 3 - 3
public/less/bootstrap.light.less → public/less/grafana.light.less

@@ -1,5 +1,5 @@
-@import "bootstrap.less";
+@import "variables.light.less";
+@import "bootstrap/bootstrap.less";
 @import "bootswatch.light.less";
 @import "bootswatch.light.less";
 @import "overrides.less";
 @import "overrides.less";
-@import "variables.light.less";
-@import "grafana.less";
+@import "grafana.less";

+ 0 - 301
public/vendor/bootstrap/less/variables.less

@@ -1,301 +0,0 @@
-//
-// Variables
-// --------------------------------------------------
-
-
-// Global values
-// --------------------------------------------------
-
-
-// Grays
-// -------------------------
-@black:                 #000;
-@grayDarker:            #222;
-@grayDark:              #333;
-@gray:                  #555;
-@grayLight:             #999;
-@grayLighter:           #eee;
-@white:                 #fff;
-
-
-// Accent colors
-// -------------------------
-@blue:                  #049cdb;
-@blueDark:              #0064cd;
-@green:                 #46a546;
-@red:                   #9d261d;
-@yellow:                #ffc40d;
-@orange:                #f89406;
-@pink:                  #c3325f;
-@purple:                #7a43b6;
-
-
-// Scaffolding
-// -------------------------
-@bodyBackground:        @white;
-@textColor:             @grayDark;
-
-
-// Links
-// -------------------------
-@linkColor:             #08c;
-@linkColorHover:        darken(@linkColor, 15%);
-
-
-// Typography
-// -------------------------
-@sansFontFamily:        "Helvetica Neue", Helvetica, Arial, sans-serif;
-@serifFontFamily:       Georgia, "Times New Roman", Times, serif;
-@monoFontFamily:        Monaco, Menlo, Consolas, "Courier New", monospace;
-
-@baseFontSize:          14px;
-@baseFontFamily:        @sansFontFamily;
-@baseLineHeight:        20px;
-@altFontFamily:         @serifFontFamily;
-
-@headingsFontFamily:    inherit; // empty to use BS default, @baseFontFamily
-@headingsFontWeight:    bold;    // instead of browser default, bold
-@headingsColor:         inherit; // empty to use BS default, @textColor
-
-
-// Component sizing
-// -------------------------
-// Based on 14px font-size and 20px line-height
-
-@fontSizeLarge:         @baseFontSize * 1.25; // ~18px
-@fontSizeSmall:         @baseFontSize * 0.85; // ~12px
-@fontSizeMini:          @baseFontSize * 0.75; // ~11px
-
-@paddingLarge:          11px 19px; // 44px
-@paddingSmall:          2px 10px;  // 26px
-@paddingMini:           0 6px;   // 22px
-
-@baseBorderRadius:      4px;
-@borderRadiusLarge:     6px;
-@borderRadiusSmall:     3px;
-
-
-// Tables
-// -------------------------
-@tableBackground:                   transparent; // overall background-color
-@tableBackgroundAccent:             #f9f9f9; // for striping
-@tableBackgroundHover:              #f5f5f5; // for hover
-@tableBorder:                       #ddd; // table and cell border
-
-// Buttons
-// -------------------------
-@btnBackground:                     @white;
-@btnBackgroundHighlight:            darken(@white, 10%);
-@btnBorder:                         #ccc;
-
-@btnPrimaryBackground:              @linkColor;
-@btnPrimaryBackgroundHighlight:     spin(@btnPrimaryBackground, 20%);
-
-@btnInfoBackground:                 #5bc0de;
-@btnInfoBackgroundHighlight:        #2f96b4;
-
-@btnSuccessBackground:              #62c462;
-@btnSuccessBackgroundHighlight:     #51a351;
-
-@btnWarningBackground:              lighten(@orange, 15%);
-@btnWarningBackgroundHighlight:     @orange;
-
-@btnDangerBackground:               #ee5f5b;
-@btnDangerBackgroundHighlight:      #bd362f;
-
-@btnInverseBackground:              #444;
-@btnInverseBackgroundHighlight:     @grayDarker;
-
-
-// Forms
-// -------------------------
-@inputBackground:               @white;
-@inputBorder:                   #ccc;
-@inputBorderRadius:             @baseBorderRadius;
-@inputDisabledBackground:       @grayLighter;
-@formActionsBackground:         #f5f5f5;
-@inputHeight:                   @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
-
-
-// Dropdowns
-// -------------------------
-@dropdownBackground:            @white;
-@dropdownBorder:                rgba(0,0,0,.2);
-@dropdownDividerTop:            #e5e5e5;
-@dropdownDividerBottom:         @white;
-
-@dropdownLinkColor:             @grayDark;
-@dropdownLinkColorHover:        @white;
-@dropdownLinkColorActive:       @white;
-
-@dropdownLinkBackgroundActive:  @linkColor;
-@dropdownLinkBackgroundHover:   @dropdownLinkBackgroundActive;
-
-
-
-// COMPONENT VARIABLES
-// --------------------------------------------------
-
-
-// Z-index master list
-// -------------------------
-// Used for a bird's eye view of components dependent on the z-axis
-// Try to avoid customizing these :)
-@zindexDropdown:          1000;
-@zindexPopover:           1010;
-@zindexTooltip:           1030;
-@zindexFixedNavbar:       1030;
-@zindexModalBackdrop:     1040;
-@zindexModal:             1050;
-
-
-// Sprite icons path
-// -------------------------
-@iconSpritePath:          "../img/glyphicons-halflings.png";
-@iconWhiteSpritePath:     "../img/glyphicons-halflings-white.png";
-
-
-// Input placeholder text color
-// -------------------------
-@placeholderText:         @grayLight;
-
-
-// Hr border color
-// -------------------------
-@hrBorder:                @grayLighter;
-
-
-// Horizontal forms & lists
-// -------------------------
-@horizontalComponentOffset:       180px;
-
-
-// Wells
-// -------------------------
-@wellBackground:                  #f5f5f5;
-
-
-// Navbar
-// -------------------------
-@navbarCollapseWidth:             979px;
-@navbarCollapseDesktopWidth:      @navbarCollapseWidth + 1;
-
-@navbarHeight:                    40px;
-@navbarBackgroundHighlight:       #ffffff;
-@navbarBackground:                darken(@navbarBackgroundHighlight, 5%);
-@navbarBorder:                    darken(@navbarBackground, 12%);
-
-@navbarText:                      #777;
-@navbarLinkColor:                 #777;
-@navbarLinkColorHover:            @grayDark;
-@navbarLinkColorActive:           @gray;
-@navbarLinkBackgroundHover:       transparent;
-@navbarLinkBackgroundActive:      darken(@navbarBackground, 5%);
-
-@navbarBrandColor:                @navbarLinkColor;
-
-// Inverted navbar
-@navbarInverseBackground:                #111111;
-@navbarInverseBackgroundHighlight:       #222222;
-@navbarInverseBorder:                    #252525;
-
-@navbarInverseText:                      @grayLight;
-@navbarInverseLinkColor:                 @grayLight;
-@navbarInverseLinkColorHover:            @white;
-@navbarInverseLinkColorActive:           @navbarInverseLinkColorHover;
-@navbarInverseLinkBackgroundHover:       transparent;
-@navbarInverseLinkBackgroundActive:      @navbarInverseBackground;
-
-@navbarInverseSearchBackground:          lighten(@navbarInverseBackground, 25%);
-@navbarInverseSearchBackgroundFocus:     @white;
-@navbarInverseSearchBorder:              @navbarInverseBackground;
-@navbarInverseSearchPlaceholderColor:    #ccc;
-
-@navbarInverseBrandColor:                @navbarInverseLinkColor;
-
-
-// Pagination
-// -------------------------
-@paginationBackground:                #fff;
-@paginationBorder:                    #ddd;
-@paginationActiveBackground:          #f5f5f5;
-
-
-// Hero unit
-// -------------------------
-@heroUnitBackground:              @grayLighter;
-@heroUnitHeadingColor:            inherit;
-@heroUnitLeadColor:               inherit;
-
-
-// Form states and alerts
-// -------------------------
-@warningText:             #c09853;
-@warningBackground:       #fcf8e3;
-@warningBorder:           darken(spin(@warningBackground, -10), 3%);
-
-@errorText:               #b94a48;
-@errorBackground:         #f2dede;
-@errorBorder:             darken(spin(@errorBackground, -10), 3%);
-
-@successText:             #468847;
-@successBackground:       #dff0d8;
-@successBorder:           darken(spin(@successBackground, -10), 5%);
-
-@infoText:                #3a87ad;
-@infoBackground:          #d9edf7;
-@infoBorder:              darken(spin(@infoBackground, -10), 7%);
-
-
-// Tooltips and popovers
-// -------------------------
-@tooltipColor:            #fff;
-@tooltipBackground:       #000;
-@tooltipArrowWidth:       5px;
-@tooltipArrowColor:       @tooltipBackground;
-
-@popoverBackground:       #fff;
-@popoverArrowWidth:       10px;
-@popoverArrowColor:       #fff;
-@popoverTitleBackground:  darken(@popoverBackground, 3%);
-
-// Special enhancement for popovers
-@popoverArrowOuterWidth:  @popoverArrowWidth + 1;
-@popoverArrowOuterColor:  rgba(0,0,0,.25);
-
-
-
-// GRID
-// --------------------------------------------------
-
-
-// Default 940px grid
-// -------------------------
-@gridColumns:             12;
-@gridColumnWidth:         60px;
-@gridGutterWidth:         20px;
-@gridRowWidth:            (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
-
-// 1200px min
-@gridColumnWidth1200:     70px;
-@gridGutterWidth1200:     30px;
-@gridRowWidth1200:        (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
-
-// 768px-979px
-@gridColumnWidth768:      42px;
-@gridGutterWidth768:      20px;
-@gridRowWidth768:         (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
-
-
-// Fluid grid
-// -------------------------
-@fluidGridColumnWidth:    percentage(@gridColumnWidth/@gridRowWidth);
-@fluidGridGutterWidth:    percentage(@gridGutterWidth/@gridRowWidth);
-
-// 1200px min
-@fluidGridColumnWidth1200:     percentage(@gridColumnWidth1200/@gridRowWidth1200);
-@fluidGridGutterWidth1200:     percentage(@gridGutterWidth1200/@gridRowWidth1200);
-
-// 768px-979px
-@fluidGridColumnWidth768:      percentage(@gridColumnWidth768/@gridRowWidth768);
-@fluidGridGutterWidth768:      percentage(@gridGutterWidth768/@gridRowWidth768);

+ 3 - 3
tasks/options/less.js

@@ -3,12 +3,12 @@ module.exports = function(config) {
   return {
   return {
     src:{
     src:{
       options: {
       options: {
-        paths: ["<%= srcDir %>/vendor/bootstrap/less", "<%= srcDir %>/less"],
+        paths: ["<%= srcDir %>/less"],
         yuicompress: true
         yuicompress: true
       },
       },
       files: {
       files: {
-        "<%= genDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/less/bootstrap.dark.less",
-        "<%= genDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/less/bootstrap.light.less",
+        "<%= genDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/less/grafana.dark.less",
+        "<%= genDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/less/grafana.light.less",
         "<%= genDir %>/css/bootstrap-responsive.min.css": "<%= srcDir %>/less/grafana-responsive.less"
         "<%= genDir %>/css/bootstrap-responsive.min.css": "<%= srcDir %>/less/grafana-responsive.less"
       }
       }
     }
     }