mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(): updated dashboard settings view
This commit is contained in:
parent
ecc22757b8
commit
0811338370
@ -16,60 +16,40 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tabbed-view-body" style="padding-bottom: 50px;">
|
<div class="tabbed-view-body">
|
||||||
<div ng-if="editor.index == 0">
|
<div ng-if="editor.index == 0">
|
||||||
<div class="editor-row">
|
|
||||||
<div class="tight-form-section">
|
<h5 class="section-heading">Dashboard Detail</h5>
|
||||||
<h5>Dashboard info</h5>
|
<div class="gf-form-group">
|
||||||
<div class="tight-form">
|
<div class="gf-form">
|
||||||
<ul class="tight-form-list">
|
<label class="gf-form-label width-7">Title</label>
|
||||||
<li class="tight-form-item" style="width: 90px">
|
<input type="text" class="gf-form-input max-width-25" ng-model='dashboard.title'></input>
|
||||||
Title
|
</div>
|
||||||
</li>
|
<div class="gf-form">
|
||||||
<li>
|
<label class="gf-form-label width-7">Tags<tip>Press enter to a add tag</tip></label>
|
||||||
<input type="text" class="input-large tight-form-input" ng-model='dashboard.title'></input>
|
|
||||||
</li>
|
|
||||||
<li class="tight-form-item">
|
|
||||||
Tags
|
|
||||||
<tip>Press enter to a add tag</tip>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<bootstrap-tagsinput ng-model="dashboard.tags" tagclass="label label-tag" placeholder="add tags">
|
<bootstrap-tagsinput ng-model="dashboard.tags" tagclass="label label-tag" placeholder="add tags">
|
||||||
</bootstrap-tagsinput>
|
</bootstrap-tagsinput>
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="tight-form last">
|
|
||||||
<ul class="tight-form-list">
|
<div class="gf-form">
|
||||||
<li class="tight-form-item" style="width: 90px">
|
<label class="gf-form-label width-7">Timezone</label>
|
||||||
Timezone
|
<div class="gf-form-select-wrapper">
|
||||||
</li>
|
<select ng-model="dashboard.timezone" class='gf-form-input' ng-options="f for f in ['browser','utc']"></select>
|
||||||
<li>
|
|
||||||
<select ng-model="dashboard.timezone" class='input-small tight-form-input' ng-options="f for f in ['browser','utc']"></select>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="editor-row">
|
<h5 class="section-heading">On/Off Toggles</h5>
|
||||||
<div class="tight-form-section">
|
<div class="gf-form-group">
|
||||||
<h5>Toggles</h5>
|
<div class="gf-form-inline">
|
||||||
<div class="tight-form last">
|
<div class="gf-form">
|
||||||
<ul class="tight-form-list">
|
|
||||||
<li class="tight-form-item">
|
|
||||||
<editor-checkbox text="Editable" model="dashboard.editable"></editor-checkbox>
|
<editor-checkbox text="Editable" model="dashboard.editable"></editor-checkbox>
|
||||||
</li>
|
</div>
|
||||||
<li class="tight-form-item">
|
<div class="gf-form">
|
||||||
<editor-checkbox text="Hide Controls (CTRL+H)" model="dashboard.hideControls"></editor-checkbox>
|
<editor-checkbox text="Hide Controls (CTRL+H)" model="dashboard.hideControls"></editor-checkbox>
|
||||||
</li>
|
</div>
|
||||||
<li class="tight-form-item last">
|
<div class="gf-form">
|
||||||
<editor-checkbox text="Shared Crosshair (CTRL+O)" model="dashboard.sharedCrosshair"></editor-checkbox>
|
<editor-checkbox text="Shared Crosshair (CTRL+O)" model="dashboard.sharedCrosshair"></editor-checkbox>
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
background-image: linear-gradient(60deg, transparent 70%, darken($page-bg, 4%) 98%);
|
background-image: linear-gradient(60deg, transparent 70%, darken($page-bg, 4%) 98%);
|
||||||
margin: -$dashboard-padding;
|
margin: -$dashboard-padding;
|
||||||
margin-bottom: $spacer*2;
|
margin-bottom: $spacer*2;
|
||||||
padding: $spacer*2;
|
padding: $spacer*3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbed-view-header {
|
.tabbed-view-header {
|
||||||
@ -39,7 +39,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tabbed-view-body {
|
.tabbed-view-body {
|
||||||
padding: 20px;
|
padding: $spacer*2;
|
||||||
min-height: 150px;
|
min-height: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.section-heading {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
margin-bottom: 0.6rem;
|
||||||
|
}
|
||||||
|
@ -44,15 +44,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gf-tabs-link {
|
.gf-tabs-link {
|
||||||
padding: ($spacer * 0.75) $spacer;
|
padding: 0.80rem 1rem 0.60rem 1rem;
|
||||||
margin-right: $spacer/2;
|
margin-right: $spacer/2;
|
||||||
line-height: $line-height-base;
|
line-height: $line-height-base;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
@include border-radius(4px 4px 0 0);
|
position: relative;
|
||||||
|
top: 3px;
|
||||||
|
|
||||||
|
@include border-radius(2px 2px 0 0);
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: $divider-border-color;
|
border-color: #F9952B;
|
||||||
color: $link-color;
|
color: $link-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,11 +63,9 @@
|
|||||||
&.active:hover,
|
&.active:hover,
|
||||||
&.active:focus {
|
&.active:focus {
|
||||||
@include border-radius(3px);
|
@include border-radius(3px);
|
||||||
border: 1px solid $divider-border-color;
|
border: 1px solid #F9952B;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border-bottom: 1px solid $panel-bg;
|
border-bottom: 1px solid $panel-bg;
|
||||||
color: $link-color;
|
color: $link-color;
|
||||||
position: relative;
|
|
||||||
top: 1px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user