2019-05-06 08:26:09 -05:00
|
|
|
$panel-header-no-title-zindex: 1;
|
|
|
|
|
|
|
|
.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;
|
|
|
|
width: 100%;
|
|
|
|
z-index: $panel-header-z-index;
|
|
|
|
}
|
|
|
|
.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;
|
2020-04-20 02:27:40 -05:00
|
|
|
line-height: $panel-header-height;
|
2019-05-06 08:26:09 -05:00
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-title-text {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
max-width: calc(100% - 38px);
|
|
|
|
cursor: pointer;
|
|
|
|
font-weight: $font-weight-semi-bold;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $link-hover-color;
|
|
|
|
}
|
|
|
|
.panel-has-alert & {
|
|
|
|
max-width: calc(100% - 54px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-menu-container {
|
2020-02-09 03:53:34 -06:00
|
|
|
width: 0px;
|
2019-05-06 08:26:09 -05:00
|
|
|
height: 19px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-menu-toggle {
|
2020-11-18 03:10:43 -06:00
|
|
|
position: absolute;
|
|
|
|
top: calc(50% - 9px);
|
2019-05-06 08:26:09 -05:00
|
|
|
color: $text-color-weak;
|
|
|
|
cursor: pointer;
|
@grafana/ui: Create Icon component and replace part of the icons (#23402)
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Resolve type errors resulted from merge
* Part2: Unicons implementation (#23266)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and empty list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Icons update
* Add optional chaining to for isFontAwesome variable
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Part3: Unicons implementation (#23356)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and empty list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Update icons in Explore
* Update icons in alerting
* Update + and x buttons
* Update icons in configurations and settings
* Update close icons
* Update icons in rich history
* Update alert messages
* Add optional chaining to for isFontAwesome variable
* Remove icon mock, set up jest.config
* Fix navbar plus icon
* Fir enable-bacground to enableBackgournd
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Merge remote branch origin master to icons-unicons
* Revert "Merge remote branch origin master to icons-unicons"
This reverts commit 3f25d50a39a940883fefe73ce51219139c1ed37f.
* Size-up dashnav icons
* Fix alerting icons, panel headers, update tests
* Fix typecheck error
* Adjustments - add panel icon, spacing
* Set TerserPlugin sourceMap to false to prevent running out of memory when publishing storybook
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2020-04-08 07:33:31 -05:00
|
|
|
margin: 2px 0 0 2px;
|
2019-05-06 08:26:09 -05:00
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: $link-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-loading {
|
|
|
|
position: absolute;
|
2020-06-30 13:57:57 -05:00
|
|
|
top: 0px;
|
|
|
|
right: 4px;
|
2019-05-06 08:26:09 -05:00
|
|
|
z-index: $panel-header-z-index + 1;
|
2020-06-29 09:51:28 -05:00
|
|
|
font-size: $font-size-lg;
|
2020-06-30 13:57:57 -05:00
|
|
|
color: $text-color-weak;
|
2020-07-01 02:32:27 -05:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-05-06 08:26:09 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.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-corner-inner {
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin panel-corner-color($corner-bg) {
|
|
|
|
.panel-info-corner-inner {
|
|
|
|
border-left: $panel-header-height solid $corner-bg;
|
|
|
|
border-right: none;
|
|
|
|
border-bottom: $panel-header-height solid transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-info-corner {
|
|
|
|
color: $text-muted;
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
left: 0;
|
|
|
|
width: $panel-header-height;
|
|
|
|
height: $panel-header-height;
|
2019-05-10 04:35:55 -05:00
|
|
|
z-index: $panel-header-no-title-zindex + 1;
|
2019-05-06 08:26:09 -05:00
|
|
|
top: 0;
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
position: relative;
|
|
|
|
top: -2px;
|
|
|
|
left: 6px;
|
|
|
|
font-size: 75%;
|
|
|
|
z-index: $panel-header-no-title-zindex + 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--info {
|
|
|
|
display: block;
|
2019-05-10 04:35:55 -05:00
|
|
|
@include panel-corner-color(lighten($panel-corner, 6%));
|
|
|
|
|
2019-05-06 08:26:09 -05:00
|
|
|
.fa:before {
|
|
|
|
content: '\f129';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--links {
|
|
|
|
display: block;
|
2019-05-10 04:35:55 -05:00
|
|
|
@include panel-corner-color(lighten($panel-corner, 6%));
|
2019-05-06 08:26:09 -05:00
|
|
|
.fa {
|
|
|
|
left: 4px;
|
|
|
|
}
|
|
|
|
.fa:before {
|
|
|
|
content: '\f08e';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
|
|
|
display: block;
|
|
|
|
color: $white;
|
|
|
|
@include panel-corner-color($popover-error-bg);
|
|
|
|
.fa:before {
|
|
|
|
content: '\f12a';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-22 07:21:43 -05:00
|
|
|
.panel-info-content {
|
|
|
|
a {
|
2019-06-25 04:38:51 -05:00
|
|
|
color: $gray-6;
|
|
|
|
|
2019-05-22 07:21:43 -05:00
|
|
|
&:hover {
|
|
|
|
color: darken($white, 10%);
|
|
|
|
}
|
|
|
|
}
|
2019-06-25 04:38:51 -05:00
|
|
|
|
2020-12-08 12:55:50 -06:00
|
|
|
code {
|
|
|
|
white-space: normal;
|
|
|
|
display: block;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2019-06-25 04:38:51 -05:00
|
|
|
.panel-info-corner-links {
|
|
|
|
list-style: none;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2019-05-22 07:21:43 -05:00
|
|
|
}
|
|
|
|
|
2019-05-06 08:26:09 -05:00
|
|
|
.panel-time-info {
|
|
|
|
font-weight: $font-weight-semi-bold;
|
|
|
|
float: right;
|
|
|
|
margin-right: 8px;
|
|
|
|
color: $blue;
|
|
|
|
font-size: 85%;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
}
|