trying out panel actions buttons

This commit is contained in:
Torkel Ödegaard
2014-11-17 09:11:54 +01:00
parent 02e1ac12b2
commit f45797ec4b
5 changed files with 48 additions and 3 deletions
+25
View File
@@ -10,6 +10,11 @@
background: @grafanaPanelBackground;
margin: 5px;
position: relative;
&:hover {
.panel-actions {
display: block;
}
}
}
.panel-content {
@@ -27,6 +32,8 @@
font-weight: bold;
position: relative;
cursor: context-menu;
width: 100%;
display: block;
&.has-panel-links {
.panel-title-text:after {
@@ -124,3 +131,21 @@
border: 1px solid @grayDark;
}
}
.panel-actions {
display: none;
position: absolute;
right: 0;
top: -2px;
width: 112px;
a {
opacity: 0.35;
border: 1px solid black;
padding: 5px 10px;
font-size: 75%;
background: @grafanaTargetFuncBackground;
&:hover {
opacity: 1;
}
}
}