2016-08-16 09:50:36 -05:00
|
|
|
.alert-state-paused,
|
|
|
|
.alert-state-pending {
|
|
|
|
color: $text-muted;
|
2021-05-18 11:00:30 -05:00
|
|
|
font-weight: $font-weight-semi-bold;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
2016-08-16 09:50:36 -05:00
|
|
|
.alert-state-ok {
|
|
|
|
color: $online;
|
2021-05-18 11:00:30 -05:00
|
|
|
font-weight: $font-weight-semi-bold;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert-state-warning {
|
2016-08-16 09:50:36 -05:00
|
|
|
color: $warn;
|
2021-05-18 11:00:30 -05:00
|
|
|
font-weight: $font-weight-semi-bold;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert-state-critical {
|
2016-08-16 09:50:36 -05:00
|
|
|
color: $critical;
|
2021-05-18 11:00:30 -05:00
|
|
|
font-weight: $font-weight-semi-bold;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert-notify-emails {
|
|
|
|
width: 400px;
|
|
|
|
border-right: 1px solid $black;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-notify-emails .bootstrap-tagsinput {
|
|
|
|
width: 394px; // offset for 8px left padding and border width
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-notify-emails .bootstrap-tagsinput input {
|
|
|
|
border: 0;
|
|
|
|
}
|
2016-08-16 09:50:36 -05:00
|
|
|
|
2020-02-09 03:53:34 -06:00
|
|
|
.panel-alert-icon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-09-30 10:37:47 -05:00
|
|
|
.panel-has-alert {
|
2020-02-09 03:53:34 -06:00
|
|
|
.panel-alert-icon {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2016-09-30 10:37:47 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.panel-alert-state {
|
|
|
|
&--alerting {
|
2020-04-12 15:20:02 -05:00
|
|
|
svg.panel-alert-icon {
|
2016-09-30 10:37:47 -05:00
|
|
|
color: $critical;
|
2020-04-12 15:20:02 -05:00
|
|
|
animation: alerting-panel 1s cubic-bezier(1, 0.1, 0.73, 1) 0s infinite alternate;
|
2016-09-30 10:37:47 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&--ok {
|
2020-04-12 15:20:02 -05:00
|
|
|
svg.panel-alert-icon {
|
2016-09-30 10:37:47 -05:00
|
|
|
color: $online;
|
|
|
|
}
|
|
|
|
}
|
2018-11-15 07:30:36 -06:00
|
|
|
|
|
|
|
&--pending {
|
2020-04-12 15:20:02 -05:00
|
|
|
svg.panel-alert-icon {
|
2018-11-15 07:30:36 -06:00
|
|
|
color: $warn;
|
|
|
|
}
|
|
|
|
}
|
2016-09-30 10:37:47 -05:00
|
|
|
}
|
|
|
|
|
2016-10-01 09:31:57 -05:00
|
|
|
@keyframes alerting-panel {
|
|
|
|
100% {
|
2020-04-12 15:20:02 -05:00
|
|
|
transform: scale(1.2);
|
2016-10-01 09:31:57 -05:00
|
|
|
}
|
|
|
|
}
|
2018-01-04 06:08:49 -06:00
|
|
|
|
|
|
|
// Alert List
|
|
|
|
// Alert List
|
|
|
|
|
|
|
|
.alert-rule-list {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-rule-item {
|
|
|
|
display: flex;
|
@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
|
|
|
align-items: center;
|
2018-01-04 06:08:49 -06:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: $card-background;
|
|
|
|
box-shadow: $card-shadow;
|
|
|
|
padding: 4px 8px;
|
|
|
|
border-radius: 4px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-rule-item__body {
|
|
|
|
display: flex;
|
2018-01-10 04:54:47 -06:00
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
2019-01-04 05:18:49 -06:00
|
|
|
justify-content: center;
|
2018-01-10 04:54:47 -06:00
|
|
|
overflow: hidden;
|
2018-01-04 06:08:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert-rule-item__icon {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 40px;
|
2018-04-03 08:43:25 -05:00
|
|
|
//margin-right: 8px;
|
|
|
|
padding: 0 4px 0 2px;
|
2018-01-04 06:08:49 -06:00
|
|
|
.icon-gf,
|
|
|
|
.fa {
|
|
|
|
font-size: 200%;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-rule-item__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-rule-item__name {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
margin: 0;
|
2018-01-10 04:54:47 -06:00
|
|
|
font-weight: $font-weight-semi-bold;
|
2018-01-04 06:08:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert-list__btn {
|
|
|
|
margin: 0 2px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-rule-item__text {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: $font-size-sm;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-rule-item__time {
|
|
|
|
color: $text-color-weak;
|
|
|
|
font-weight: normal;
|
2018-01-10 04:54:47 -06:00
|
|
|
white-space: nowrap;
|
2018-01-04 06:08:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert-rule-item__info {
|
|
|
|
//color: $text-color;
|
|
|
|
font-weight: normal;
|
|
|
|
flex-grow: 2;
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-end;
|
|
|
|
}
|
|
|
|
|
2018-01-10 04:54:47 -06:00
|
|
|
.alert-rule-item__actions {
|
2018-01-04 06:08:49 -06:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-tesint {
|
|
|
|
display: flex;
|
|
|
|
}
|