Commit 903dfc61 by Torkel Ödegaard

Merge branch 'master' of github.com:torkelo/grafana

Conflicts:
	src/app/panels/graphite/module.html
parents a0cee353 3e0b9261
...@@ -13,13 +13,14 @@ function (angular) { ...@@ -13,13 +13,14 @@ function (angular) {
'<div class="row-fluid panel-extra"><div class="panel-extra-container">' + '<div class="row-fluid panel-extra"><div class="panel-extra-container">' +
'<span class="extra row-button" ng-show="panel.editable != false">' + '<span class="row-button extra" ng-show="panelMeta.loading == true">' +
'<span ng-click="remove_panel_from_row(row,panel)" class="pointer">'+ '<span>'+
'<i class="icon-remove pointer" bs-tooltip="\'Remove\'"></i></span>'+ '<i class="icon-spinner icon-spin icon-large"></i>' +
'</span>'+
'</span>' + '</span>' +
'<span class="extra row-button" ng-hide="panel.draggable == false">' + '<span ng-if="panelMeta.menuItems" class="dropdown" ng-show="panel.title">' +
'<span class="pointer" bs-tooltip="\'Drag here to move\'"' + '<span class="panel-text panel-title pointer" bs-dropdown="panelMeta.menuItems" tabindex="1" ' +
'data-drag=true data-jqyoui-options="{revert: \'invalid\',helper:\'clone\'}"'+ 'data-drag=true data-jqyoui-options="{revert: \'invalid\',helper:\'clone\'}"'+
' jqyoui-draggable="'+ ' jqyoui-draggable="'+
'{'+ '{'+
...@@ -28,27 +29,8 @@ function (angular) { ...@@ -28,27 +29,8 @@ function (angular) {
'index:{{$index}},'+ 'index:{{$index}},'+
'onStart:\'panelMoveStart\','+ 'onStart:\'panelMoveStart\','+
'onStop:\'panelMoveStop\''+ 'onStop:\'panelMoveStop\''+
'}" ng-model="row.panels"><i class="icon-move"></i></span>'+ '}" ng-model="row.panels" ' +
'</span>' + '>' +
'<span class="row-button extra" ng-show="panel.editable != false">' +
'<span config-modal class="pointer">'+
'<i class="icon-cog pointer" bs-tooltip="\'Configure\'"></i></span>'+
'</span>' +
'<span ng-repeat="task in panelMeta.modals" class="row-button extra" ng-show="task.show">' +
'<span bs-modal="task.partial" class="pointer"><i ' +
'bs-tooltip="task.description" ng-class="task.icon" class="pointer"></i></span>'+
'</span>' +
'<span class="row-button extra" ng-show="panelMeta.loading == true">' +
'<span>'+
'<i class="icon-spinner icon-spin icon-large"></i>' +
'</span>'+
'</span>' +
'<span ng-if="panelMeta.menuItems" class="dropdown" ng-show="panel.title">' +
'<span class="panel-text panel-title pointer" bs-dropdown="panelMeta.menuItems" tabindex="1">' +
'{{panel.title}}' + '{{panel.title}}' +
'</span>' + '</span>' +
'</span>'+ '</span>'+
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
ng-class="{'pull-right': series.yaxis === 2, 'hidden-series': hiddenSeries[series.alias]}" ng-class="{'pull-right': series.yaxis === 2, 'hidden-series': hiddenSeries[series.alias]}"
ng-repeat='series in legend' ng-repeat='series in legend'
class="histogram-legend"> class="histogram-legend">
<i class='icon-circle pointer' <i class='icon-minus pointer'
ng-style="{color: series.color}" ng-style="{color: series.color}"
bs-popover="'colorPopup.html'" bs-popover="'colorPopup.html'"
data-unique="1" data-unique="1"
......
...@@ -2,41 +2,6 @@ ...@@ -2,41 +2,6 @@
ng-init="init()" ng-init="init()"
style="min-height:{{panel.height || row.height}}" style="min-height:{{panel.height || row.height}}"
ng-class="{'panel-fullscreen': fullscreen}"> ng-class="{'panel-fullscreen': fullscreen}">
<style>
.histogram-legend {
display:inline-block;
padding-right:5px
}
.histogram-legend-dot {
display:inline-block;
height:10px;
width:10px;
border-radius:5px;
}
.histogram-legend-item {
display:inline-block;
}
.histogram-chart {
position:relative;
}
.histogram-options {
padding: 5px;
margin-right: 15px;
margin-bottom: 0px;
}
.histogram-options label {
margin: 0px 0px 0px 10px !important;
}
.histogram-options span {
white-space: nowrap;
}
/* this is actually should be in bootstrap */
.form-inline .checkbox {
display: inline-block;
}
</style>
<div> <div>
<span ng-show='panel.options'> <span ng-show='panel.options'>
<a class="link underline small" ng-show='panel.options' ng-click="options=!options"> <a class="link underline small" ng-show='panel.options' ng-click="options=!options">
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,16 +2,6 @@ ...@@ -2,16 +2,6 @@
// Bootswatch // Bootswatch
// ----------------------------------------------------- // -----------------------------------------------------
// KIBANA
.panelCont {
outline: 1px solid darken(@bodyBackground, 10%);
border-top: 1px solid lighten(@bodyBackground, 10%);
padding: 0px 10px 10px 10px;
background: darken(@bodyBackground, 3%);
margin: 0px;
}
// TYPOGRAPHY // TYPOGRAPHY
// ----------------------------------------------------- // -----------------------------------------------------
......
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
@import "bootswatch.light.less"; @import "bootswatch.light.less";
@import "overrides.less"; @import "overrides.less";
@import "variables.light.less"; @import "variables.light.less";
@import "grafana.less";
\ No newline at end of file
@import "responsive.less";
@gridColumnWidth: 70px;
@gridGutterWidth: 10px;
@gridColumnWidth768: 52px;
@gridGutterWidth768: 10px;
@gridColumnWidth1200: 90px;
@gridGutterWidth1200: 10px;
// 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);
// Global color overrides
// ---------------------------------------------------------
//@grayDark: #3A3F44;
//@grayDarker: #272B30;
@grayDark: #303030;
@grayLighter: #BBBFC2;
.navbar-static-top { .navbar-static-top {
border-bottom: 1px solid black; border-bottom: 1px solid black;
...@@ -11,7 +5,7 @@ ...@@ -11,7 +5,7 @@
.grafana-dashboard-hide-controls { .grafana-dashboard-hide-controls {
padding: 0; padding: 0;
.extra, .grafana-row { .grafana-row {
display: none; display: none;
} }
} }
...@@ -35,11 +29,7 @@ ...@@ -35,11 +29,7 @@
} }
.filter-pulldown { .filter-pulldown {
background: rgba(31, 31, 31, 0.42); background: #292929;
border-top: 1px solid #444;
border-left: 1px solid @grayDarker;
border-right: 1px solid @grayDarker;
border-bottom: 1px solid @grayDarker;
} }
.top-row-close { .top-row-close {
...@@ -51,19 +41,6 @@ ...@@ -51,19 +41,6 @@
background: none; background: none;
} }
.panelCont {
padding: 0px 10px;
}
.panel div.panel-extra div.panel-extra-container {
margin-right: -10px;
margin-top: 0px;
}
.panel-title {
font-size: 0.9em;
}
.row-button { .row-button {
width: 24px; width: 24px;
} }
...@@ -141,6 +118,8 @@ ...@@ -141,6 +118,8 @@
right: -10000px; right: -10000px;
} }
// Graphite Graph Legends
.grafana-legend-container { .grafana-legend-container {
margin: 4px 15px; margin: 4px 15px;
text-align: left; text-align: left;
...@@ -150,6 +129,30 @@ ...@@ -150,6 +129,30 @@
padding: 0; padding: 0;
} }
.histogram-legend {
display:inline-block;
padding: 0 4px;
i {
position: relative;
top: 3px;
}
}
.histogram-legend-dot {
display:inline-block;
height:10px;
width:10px;
border-radius:5px;
}
.histogram-legend-item {
display:inline-block;
}
.histogram-chart {
position:relative;
}
.histogram-legend-popover { .histogram-legend-popover {
width: 150px; width: 150px;
......
...@@ -51,13 +51,12 @@ code, pre { ...@@ -51,13 +51,12 @@ code, pre {
background-color: @grayLighter; background-color: @grayLighter;
} }
// KIBANA
.panelCont { .panelCont {
padding: 0px 10px 10px 10px; padding: 0px 10px 10px 10px;
background: @kibanaPanelBackground; background: @kibanaPanelBackground;
//box-shadow: 0px 0px 8px rgba(30, 30, 30, 0.75);
margin: 0px; margin: 0px;
border: 1px solid rgba(100, 100, 100, 0.25); //border: 1px solid rgba(100, 100, 100, 0.25);
//outline: 1px solid darken(@bodyBackground, 10%);
} }
div.editor-row { div.editor-row {
...@@ -234,13 +233,17 @@ form input.ng-invalid { ...@@ -234,13 +233,17 @@ form input.ng-invalid {
.panel-title { .panel-title {
border: 0px; border: 0px;
text-transform: uppercase; //text-transform: uppercase;
font-weight: bold; font-weight: bold;
} }
.panel div.panel-extra div.panel-extra-container { .panel div.panel-extra div.panel-extra-container {
margin-right: 0px; margin-right: -10px;
margin-top: 7px; margin-top: 3px;
text-align: center;
ul {
text-align: left;
}
} }
.panel div.panel-extra { .panel div.panel-extra {
......
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
// ------------------------- // -------------------------
@black: #000; @black: #000;
@gray: #bbb; @gray: #bbb;
@grayDark: #333; @grayDark: #303030;
@grayDarker: #1f1f1f; @grayDarker: #1f1f1f;
@grayLight: #ADAFAE; @grayLight: #ADAFAE;
@grayLighter: #eee; @grayLighter: #BBBFC2;
@white: #fff; @white: #fff;
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
// Scaffolding // Scaffolding
// ------------------------- // -------------------------
@bodyBackground: @grayDark; @bodyBackground: rgb(22,22,22);
@textColor: @grayLighter; @textColor: @grayLighter;
......
...@@ -17,7 +17,8 @@ module.exports = function(config) { ...@@ -17,7 +17,8 @@ module.exports = function(config) {
}, },
files: { files: {
"<%= srcDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/vendor/bootstrap/less/bootstrap.dark.less", "<%= srcDir %>/css/bootstrap.dark.min.css": "<%= srcDir %>/vendor/bootstrap/less/bootstrap.dark.less",
"<%= srcDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/vendor/bootstrap/less/bootstrap.light.less" "<%= srcDir %>/css/bootstrap.light.min.css": "<%= srcDir %>/vendor/bootstrap/less/bootstrap.light.less",
"<%= srcDir %>/css/bootstrap-responsive.min.css": "<%= srcDir %>/vendor/bootstrap/less/grafana-responsive.less"
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment