2016-02-15 08:27:41 -06:00
|
|
|
//
|
|
|
|
// Modals
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Background
|
|
|
|
.modal-backdrop {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2016-02-16 07:39:45 -06:00
|
|
|
z-index: $zindex-modal-backdrop;
|
2017-10-10 10:57:53 -05:00
|
|
|
background-color: $modal-backdrop-bg;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-backdrop,
|
|
|
|
.modal-backdrop.fade.in {
|
|
|
|
@include opacity(70);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Base modal
|
|
|
|
.modal {
|
2017-08-28 04:34:44 -05:00
|
|
|
position: fixed;
|
2016-02-16 07:39:45 -06:00
|
|
|
z-index: $zindex-modal;
|
2016-02-15 08:27:41 -06:00
|
|
|
width: 100%;
|
2017-12-19 09:22:41 -06:00
|
|
|
background: $page-bg;
|
2019-02-19 08:41:35 -06:00
|
|
|
@include box-shadow(0 3px 7px rgba(0, 0, 0, 0.3));
|
2016-02-15 08:27:41 -06:00
|
|
|
@include background-clip(padding-box);
|
|
|
|
outline: none;
|
|
|
|
|
2016-03-02 14:27:08 -06:00
|
|
|
max-width: 750px;
|
2016-02-15 08:27:41 -06:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2017-08-28 04:34:44 -05:00
|
|
|
top: 10%;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-header {
|
2017-12-03 01:11:07 -06:00
|
|
|
background: $page-header-bg;
|
|
|
|
box-shadow: $page-header-shadow;
|
|
|
|
border-bottom: 1px solid $page-header-border-color;
|
2020-04-21 02:12:34 -05:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2016-03-02 13:56:04 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-header-title {
|
2020-04-21 02:12:34 -05:00
|
|
|
font-size: $font-size-lg;
|
2016-03-02 13:56:04 -06:00
|
|
|
float: left;
|
2019-12-03 15:47:20 -06:00
|
|
|
padding-top: $space-sm;
|
|
|
|
margin: 0 $space-md;
|
2016-03-02 13:56:04 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.modal-header-close {
|
|
|
|
float: right;
|
2017-12-14 07:58:45 -06:00
|
|
|
padding: 9px $spacer;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// Body (where all modal content resides)
|
|
|
|
.modal-body {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2016-03-02 14:27:08 -06:00
|
|
|
.modal-content {
|
2019-02-19 08:41:35 -06:00
|
|
|
padding: $spacer * 2;
|
2018-02-20 04:08:53 -06:00
|
|
|
|
|
|
|
&--has-scroll {
|
|
|
|
max-height: calc(100vh - 400px);
|
|
|
|
position: relative;
|
|
|
|
}
|
2016-03-02 14:27:08 -06:00
|
|
|
}
|
|
|
|
|
2016-02-15 08:27:41 -06:00
|
|
|
// Remove bottom margin if need be
|
|
|
|
.modal-form {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Footer (for actions)
|
|
|
|
.modal-footer {
|
|
|
|
padding: 14px 15px 15px;
|
2017-12-19 09:22:41 -06:00
|
|
|
border-top: 1px solid $panel-bg;
|
2016-02-16 01:30:37 -06:00
|
|
|
background-color: $panel-bg;
|
2016-02-15 08:27:41 -06:00
|
|
|
text-align: right; // right align buttons
|
|
|
|
@include clearfix(); // clear it in case folks use .pull-* classes on buttons
|
|
|
|
}
|
|
|
|
|
2016-03-02 14:27:08 -06:00
|
|
|
.modal--narrow {
|
|
|
|
max-width: 500px;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:27:41 -06:00
|
|
|
.confirm-modal {
|
|
|
|
max-width: 500px;
|
|
|
|
|
|
|
|
.confirm-modal-icon {
|
|
|
|
padding-top: 41px;
|
|
|
|
font-size: 280%;
|
2019-02-20 09:11:36 -06:00
|
|
|
color: $green-base;
|
2016-02-15 08:27:41 -06:00
|
|
|
padding-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
2016-03-04 13:56:53 -06:00
|
|
|
.confirm-modal-text {
|
|
|
|
font-size: $font-size-h4;
|
2016-02-16 02:42:46 -06:00
|
|
|
color: $link-color;
|
2019-02-19 08:41:35 -06:00
|
|
|
margin-bottom: $spacer * 2;
|
2016-03-04 13:56:53 -06:00
|
|
|
padding-top: $spacer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.confirm-modal-text2 {
|
2019-12-16 10:45:33 -06:00
|
|
|
font-size: $font-size-base;
|
2016-03-04 13:56:53 -06:00
|
|
|
padding-top: $spacer;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.confirm-modal-buttons {
|
2016-03-04 13:56:53 -06:00
|
|
|
margin-bottom: $spacer;
|
2016-02-15 08:27:41 -06:00
|
|
|
button {
|
2022-01-06 07:09:52 -06:00
|
|
|
margin-right: calc($spacer/2);
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
}
|
2016-05-16 04:32:08 -05:00
|
|
|
|
|
|
|
.modal-content-confirm-text {
|
2019-03-21 09:44:14 -05:00
|
|
|
margin-bottom: $space-xl;
|
2016-05-16 04:32:08 -05:00
|
|
|
span {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.share-modal-body {
|
|
|
|
.share-modal-options {
|
2016-05-25 05:30:27 -05:00
|
|
|
margin: 11px 0px 33px 0px;
|
2016-04-10 13:58:52 -05:00
|
|
|
display: inline-block;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.share-modal-big-icon {
|
@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-right: 8px;
|
|
|
|
margin-top: -7px;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
2016-05-25 05:30:27 -05:00
|
|
|
.share-modal-info-text {
|
|
|
|
margin-top: 5px;
|
2016-02-15 08:27:41 -06:00
|
|
|
strong {
|
2019-04-08 03:52:00 -05:00
|
|
|
color: $text-color-emphasis;
|
2019-08-02 05:11:08 -05:00
|
|
|
font-weight: $font-weight-semi-bold;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-25 05:30:27 -05:00
|
|
|
.share-modal-header {
|
|
|
|
display: flex;
|
|
|
|
margin: 0px 0 22px 0;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
2016-05-25 06:01:40 -05:00
|
|
|
.share-modal-content {
|
|
|
|
flex-grow: 1;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
2016-05-25 05:30:27 -05:00
|
|
|
.share-modal-link {
|
2016-02-15 08:27:41 -06:00
|
|
|
max-width: 716px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|