mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(tweak): minor polish to date picker styling
This commit is contained in:
parent
465451c289
commit
f64385cfc9
@ -40,7 +40,6 @@ export class GrafanaApp {
|
|||||||
|
|
||||||
init() {
|
init() {
|
||||||
var app = angular.module('grafana', []);
|
var app = angular.module('grafana', []);
|
||||||
app.constant('grafanaVersion', "@grafanaVersion@");
|
|
||||||
|
|
||||||
moment.locale(config.bootData.user.locale);
|
moment.locale(config.bootData.user.locale);
|
||||||
|
|
||||||
|
@ -6,7 +6,6 @@ import "./directives/dash_class";
|
|||||||
import "./directives/confirm_click";
|
import "./directives/confirm_click";
|
||||||
import "./directives/dash_edit_link";
|
import "./directives/dash_edit_link";
|
||||||
import "./directives/dropdown_typeahead";
|
import "./directives/dropdown_typeahead";
|
||||||
import "./directives/grafana_version_check";
|
|
||||||
import "./directives/metric_segment";
|
import "./directives/metric_segment";
|
||||||
import "./directives/misc";
|
import "./directives/misc";
|
||||||
import "./directives/ng_model_on_blur";
|
import "./directives/ng_model_on_blur";
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
define([
|
|
||||||
'../core_module',
|
|
||||||
],
|
|
||||||
function (coreModule) {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
coreModule.default.directive('grafanaVersionCheck', function($http, contextSrv) {
|
|
||||||
return {
|
|
||||||
restrict: 'A',
|
|
||||||
link: function(scope, elem) {
|
|
||||||
if (contextSrv.version === 'master') {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$http({ method: 'GET', url: 'https://grafanarel.s3.amazonaws.com/latest.json' })
|
|
||||||
.then(function(response) {
|
|
||||||
if (!response.data || !response.data.version) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (contextSrv.version !== response.data.version) {
|
|
||||||
elem.append('<i class="icon-info-sign"></i> ' +
|
|
||||||
'<a href="http://grafana.org/download" target="_blank"> ' +
|
|
||||||
'New version available: ' + response.data.version +
|
|
||||||
'</a>');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
});
|
|
||||||
});
|
|
@ -65,7 +65,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gf-timepicker-component {
|
.gf-timepicker-component {
|
||||||
margin-bottom: 10px;
|
padding: $spacer/2 0;
|
||||||
|
|
||||||
td {
|
td {
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
@ -73,7 +74,7 @@
|
|||||||
@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl);
|
@include buttonBackground($btn-inverse-bg, $btn-inverse-bg-hl);
|
||||||
background-image: none;
|
background-image: none;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 6px 10px;
|
padding: 5px 9px;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
&.active span {
|
&.active span {
|
||||||
color: $blue;
|
color: $blue;
|
||||||
|
Loading…
Reference in New Issue
Block a user