| 
									
										
										
										
											2019-05-06 21:26:09 +08: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; | 
					
						
							| 
									
										
										
										
											2021-07-27 01:19:07 +08:00
										 |  |  |     left: min(50px, 10%); // allows space for interaction in the corders
 | 
					
						
							|  |  |  |     right: min(50px, 10%); | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08:00
										 |  |  |     z-index: $panel-header-z-index; | 
					
						
							| 
									
										
										
										
											2021-07-27 01:19:07 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     &:hover { | 
					
						
							|  |  |  |       left: 0; | 
					
						
							|  |  |  |       right: 0; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08:00
										 |  |  |   } | 
					
						
							|  |  |  |   .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 15:27:40 +08:00
										 |  |  |   line-height: $panel-header-height; | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08:00
										 |  |  |   align-items: center; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .panel-menu-container { | 
					
						
							| 
									
										
										
										
											2020-02-09 17:53:34 +08:00
										 |  |  |   width: 0px; | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08:00
										 |  |  |   height: 19px; | 
					
						
							|  |  |  |   display: inline-block; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .panel-menu-toggle { | 
					
						
							| 
									
										
										
										
											2020-11-18 17:10:43 +08:00
										 |  |  |   position: absolute; | 
					
						
							|  |  |  |   top: calc(50% - 9px); | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08: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 20:33:31 +08:00
										 |  |  |   margin: 2px 0 0 2px; | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08:00
										 |  |  |   visibility: hidden; | 
					
						
							|  |  |  |   opacity: 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   &:hover { | 
					
						
							|  |  |  |     color: $link-hover-color; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .panel-loading { | 
					
						
							|  |  |  |   position: absolute; | 
					
						
							| 
									
										
										
										
											2020-07-01 02:57:57 +08:00
										 |  |  |   top: 0px; | 
					
						
							|  |  |  |   right: 4px; | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08:00
										 |  |  |   z-index: $panel-header-z-index + 1; | 
					
						
							| 
									
										
										
										
											2020-06-29 22:51:28 +08:00
										 |  |  |   font-size: $font-size-lg; | 
					
						
							| 
									
										
										
										
											2020-07-01 02:57:57 +08:00
										 |  |  |   color: $text-color-weak; | 
					
						
							| 
									
										
										
										
											2020-07-01 15:32:27 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   &:hover { | 
					
						
							|  |  |  |     cursor: pointer; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08: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 17:35:55 +08:00
										 |  |  |   z-index: $panel-header-no-title-zindex + 1; | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08: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 17:35:55 +08:00
										 |  |  |     @include panel-corner-color(lighten($panel-corner, 6%)); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08:00
										 |  |  |     .fa:before { | 
					
						
							|  |  |  |       content: '\f129'; | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   &--links { | 
					
						
							|  |  |  |     display: block; | 
					
						
							| 
									
										
										
										
											2019-05-10 17:35:55 +08:00
										 |  |  |     @include panel-corner-color(lighten($panel-corner, 6%)); | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08: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 20:21:43 +08:00
										 |  |  | .panel-info-content { | 
					
						
							| 
									
										
										
										
											2020-12-09 02:55:50 +08:00
										 |  |  |   code { | 
					
						
							|  |  |  |     white-space: normal; | 
					
						
							|  |  |  |     word-wrap: break-word; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-29 17:47:37 +08:00
										 |  |  |   pre > code { | 
					
						
							|  |  |  |     display: block; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-25 17:38:51 +08:00
										 |  |  |   .panel-info-corner-links { | 
					
						
							|  |  |  |     list-style: none; | 
					
						
							|  |  |  |     padding-left: 0; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2019-05-22 20:21:43 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-06 21:26:09 +08:00
										 |  |  | .panel-time-info { | 
					
						
							|  |  |  |   font-weight: $font-weight-semi-bold; | 
					
						
							|  |  |  |   float: right; | 
					
						
							|  |  |  |   margin-right: 8px; | 
					
						
							|  |  |  |   color: $blue; | 
					
						
							|  |  |  |   font-size: 85%; | 
					
						
							|  |  |  |   position: absolute; | 
					
						
							|  |  |  |   right: 0; | 
					
						
							|  |  |  | } |