grafana/public/sass/components/_panel_header.scss
Alex Khomenko 683390a4ec
PanelHeaderCorner: Remove font-awesome icons (#87303)
* PanelHeaderCorner: Remove font-awesome

* Fix mode styles

* Remove unused styles

* Cleanup

* Simplify styles

* Fixes

* Remove unused variable
2024-05-03 20:05:03 +03:00

123 lines
1.9 KiB
SCSS

.panel-header {
&:hover {
transition: background-color 0.1s ease-in-out;
background-color: $panel-header-hover-bg;
}
}
.panel-container--no-title {
.panel-header {
position: absolute;
left: min(50px, 10%); // allows space for interaction in the corders
right: min(50px, 10%);
z-index: $panel-header-z-index;
&:hover {
left: 0;
right: 0;
}
}
.panel-content {
height: 100%;
}
}
.panel-title-container {
cursor: move;
word-wrap: break-word;
display: block;
}
.panel-title {
border: 0px;
font-weight: $font-weight-semi-bold;
position: relative;
width: 100%;
display: flex;
flex-wrap: nowrap;
justify-content: center;
height: $panel-header-height;
line-height: $panel-header-height;
align-items: center;
}
.panel-menu-container {
width: 0px;
height: 19px;
display: inline-block;
}
.panel-menu-toggle {
position: absolute;
top: calc(50% - 9px);
color: $text-color-weak;
cursor: pointer;
margin: 2px 0 0 2px;
visibility: hidden;
opacity: 0;
&:hover {
color: $link-hover-color;
}
}
.panel-loading {
position: absolute;
top: 0px;
right: 4px;
z-index: $panel-header-z-index + 1;
font-size: $font-size-lg;
color: $text-color-weak;
&:hover {
cursor: pointer;
}
}
.panel-empty {
display: flex;
align-items: center;
height: 100%;
width: 100%;
p {
text-align: center;
color: $text-muted;
font-size: $font-size-lg;
width: 100%;
}
}
.panel-menu {
top: 25px;
left: -100px;
}
.panel-info-content {
overflow: auto;
code {
white-space: normal;
word-wrap: break-word;
}
pre > code {
display: block;
}
.panel-info-corner-links {
list-style: none;
padding-left: 0;
}
}
.panel-time-info {
font-weight: $font-weight-semi-bold;
float: right;
margin-right: 8px;
color: $blue;
font-size: 85%;
position: absolute;
right: 0;
}