Commit d617d029 by Torkel Ödegaard

fix(css): fixed issues introduced in recent sidemenu enhancements, fixes #3893, fixes #3894

parent 12460af0
<topnav icon="fa fa-fw fa-user" title="Global Users" subnav="true"> <navbar icon="fa fa-fw fa-user" title="Users" title-url="admin/users" subnav="true">
<ul class="nav"> <ul class="nav">
<li><a href="admin/users">Users</a></li>
<li><a href="admin/users/create">Create user</a></li>
<li class="active"><a href="admin/users/edit/{{user_id}}">Edit user</a></li> <li class="active"><a href="admin/users/edit/{{user_id}}">Edit user</a></li>
</ul> </ul>
</topnav> </navbar>
<div class="page-container"> <div class="page-container">
<div class="page"> <div class="page">
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
Title Title
</li> </li>
<li> <li>
<input type="text" class="input-xlarge tight-form-input" ng-model='dashboard.title'></input> <input type="text" class="input-large tight-form-input" ng-model='dashboard.title'></input>
</li> </li>
<li class="tight-form-item"> <li class="tight-form-item">
Tags Tags
......
<div body-class class="dashboard" ng-if="dashboard"> <div body-class class="dashboard" ng-if="dashboard">
<dashnav></dashnav> <dashnav></dashnav>
<div class="main-view-container">
<div dash-editor-view></div> <div dash-editor-view></div>
<div dash-search-view></div> <div dash-search-view></div>
<div class="clearfix"></div> <div class="clearfix"></div>
...@@ -10,7 +11,6 @@ ...@@ -10,7 +11,6 @@
<div class="clearfix"></div> <div class="clearfix"></div>
<div class="main-view-container">
<div class="grafana-row" ng-controller="RowCtrl" ng-repeat="(row_name, row) in dashboard.rows" row-height> <div class="grafana-row" ng-controller="RowCtrl" ng-repeat="(row_name, row) in dashboard.rows" row-height>
<div class="row-control"> <div class="row-control">
<div class="row-control-inner"> <div class="row-control-inner">
......
{ {
"id": null,
"title": "Home", "title": "Home",
"originalTitle": "Home",
"tags": [], "tags": [],
"style": "dark", "style": "dark",
"timezone": "browser", "timezone": "browser",
"editable": true, "editable": true,
"hideControls": true, "hideControls": true,
"sharedCrosshair": false,
"rows": [ "rows": [
{ {
"title": "New row",
"height": "100px",
"collapse": false, "collapse": false,
"editable": true, "editable": true,
"height": "100px",
"panels": [ "panels": [
{ {
"id": 1, "content": "<div class=\"text-center dashboard-header\">\nHome Dashboard\n</div>",
"span": 12,
"editable": true, "editable": true,
"transparent": true, "id": 1,
"type": "text",
"mode": "html", "mode": "html",
"content": "<div class=\"text-center\" style=\"padding: 10px 0 20px 0\">\n<img src=\"img/logo_transparent_200x.png\" width=\"170px\"> \n</div>", "span": 12,
"style": {}, "style": {},
"title": "" "title": "",
"transparent": true,
"type": "text"
} }
] ],
"title": "New row"
}, },
{ {
"collapse": false,
"editable": true,
"height": "510px", "height": "510px",
"panels": [ "panels": [
{ {
"id": 2, "id": 2,
"span": 6, "limit": 10,
"type": "dashlist",
"mode": "starred", "mode": "starred",
"title": "Starred dashboards" "query": "",
"span": 6,
"tags": [],
"title": "Starred dashboards",
"type": "dashlist"
}, },
{ {
"id": 3, "id": 3,
"span": 6, "limit": 10,
"type": "dashlist",
"mode": "search", "mode": "search",
"title": "Dashboards" "query": "",
"span": 6,
"tags": [],
"title": "Dashboards",
"type": "dashlist"
} }
] ],
} "title": "Row"
],
"nav": [
{
"type": "timepicker",
"enable": false
} }
], ],
"time": { "time": {
"from": "now-6h", "from": "now-6h",
"to": "now" "to": "now"
}, },
"timepicker": {
"enable": false,
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
],
"type": "timepicker"
},
"templating": { "templating": {
"list": [] "list": []
}, },
"version": 5 "annotations": {
"list": []
},
"schemaVersion": 9,
"version": 5,
"links": []
} }
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
border-radius: 0; border-radius: 0;
padding: 8px 6px; padding: 8px 6px;
height: 100%; height: 100%;
width: 5rem;
box-sizing: border-box; box-sizing: border-box;
} }
......
...@@ -70,7 +70,6 @@ hr { ...@@ -70,7 +70,6 @@ hr {
.nav > li > a:hover, .nav > li > a:hover,
.nav > .active > a, .nav > .active > a,
.nav > .active > a:hover { .nav > .active > a:hover {
border-bottom: 1px solid @blue;
} }
.nav > .active > a, .nav > .active > a,
......
.gf-box { .gf-box {
margin: 15px; margin: 10px 5px;
background-color: @grafanaPanelBackground; background-color: @grafanaPanelBackground;
position: relative; position: relative;
border: 1px solid @grafanaTargetFuncBackground; border: 1px solid @grafanaTargetFuncBackground;
......
...@@ -389,3 +389,14 @@ ...@@ -389,3 +389,14 @@
.typeahead strong { .typeahead strong {
color: @yellow; color: @yellow;
} }
.dashboard-header {
margin-top: 1rem;
font-family: "grafana-icons";
font-size: 22px;
padding-bottom: 1rem;
border: none;
border-bottom: 2px solid transparent;
border-image: linear-gradient(to right, rgba(255,213,0,1) 0%, rgba(255,68,0,1) 99%, rgba(255,68,0,1) 100%);
border-image-slice: 1;
}
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
&:hover { &:hover {
background: @navbarButtonBackgroundHighlight; background: @navbarButtonBackgroundHighlight;
color: @linkColor; color: @linkColor;
border-bottom: 1px solid @blue; // border-bottom: 1px solid @blue;
} }
} }
} }
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
.icon-gf-grafana_wordmark { .icon-gf-grafana_wordmark {
font-size: 21px; font-size: 21px;
position: relative; position: relative;
top: 3px; top: 4px;
padding-left: 5px; padding-left: 5px;
display: none; display: none;
} }
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
} }
.top-nav-menu-btn { .top-nav-menu-btn {
a { a {
background-color: @sideMenuBackground;
padding-right: 47px; padding-right: 47px;
padding-left: 24px; padding-left: 24px;
} }
......
.submenu-controls { .submenu-controls {
margin: 15px 10px 8px 14px; margin: 10px 5px;
font-size: 16px; font-size: 16px;
} }
......
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