From 46f7bd2820dd2d3ad52a0408bd33a8fb39df459d Mon Sep 17 00:00:00 2001 From: Stuart Nelson Date: Fri, 9 Jan 2015 13:55:01 +0100 Subject: [PATCH] graph controls --- web/static/css/graph.css | 41 ++++++++++++++++- web/static/js/graph_template.handlebar | 64 +++++++++++++------------- 2 files changed, 71 insertions(+), 34 deletions(-) diff --git a/web/static/css/graph.css b/web/static/css/graph.css index 6c83e06cb..322d9884f 100644 --- a/web/static/css/graph.css +++ b/web/static/css/graph.css @@ -51,6 +51,7 @@ a:active { color: black; } } .y_axis { + overflow: hidden; position: absolute; top: 1px; bottom: 0; @@ -198,10 +199,46 @@ select name="insert_metric" { } input[name="end_input"], input[name="range_input"] { - margin-left: -4px; - margin-right: -4px; + margin-left: 4px; + margin-right: 4px; } .error { margin: 2px; } + +.btn { + border-radius: 0; +} + +.prometheus_input_group { + display: inline-block; + margin: 10px 0; + overflow: auto; +} + +.prometheus_input_group .prometheus_checkbox { + height: 25px; + line-height: 2; +} + +.prometheus_input_group .input { + width: 100px; + height: 29px; + padding: 6px 12px; + font-size: 14px; + line-height: 1.42857143; + color: #555; + background-color: #fff; + background-image: none; + border: 1px solid #ccc; + -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); + -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; + -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; + transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; +} + +.prometheus_input_group .date_input { + width: 200px; +} diff --git a/web/static/js/graph_template.handlebar b/web/static/js/graph_template.handlebar index 315b569cc..2c1501d41 100644 --- a/web/static/js/graph_template.handlebar +++ b/web/static/js/graph_template.handlebar @@ -28,52 +28,48 @@
  • Tabular
  • -
    - +
    -
    - +
    - - + class="pull-left input" + id="range_input{{id}}" + title="Time range of graph" + type="text" + name="range_input" + size="3" + value="{{range_input}}">
    -
    +
    - - +
    + + +
    - +
    + +