mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add support for Panel with and without a PanelHeader. (#10115)
Backports PR #10112
**Commit 1:**
Add support for Panel with and without a PanelHeader.
* Original sha: 0dc3472b2f
* Authored by CJ Cenizal <cj@cenizal.com> on 2017-01-31T00:29:42Z
This commit is contained in:
parent
c443b20b56
commit
9e842d96e5
12 changed files with 48 additions and 24 deletions
|
@ -62,14 +62,20 @@
|
|||
</div>
|
||||
|
||||
<!-- NoResults -->
|
||||
<div ng-if="!listingController.items.length && listingController.filter" class="kuiPanel kuiPanel--centered">
|
||||
<div
|
||||
class="kuiPanel kuiPanel--centered kuiPanel--withHeader"
|
||||
ng-if="!listingController.items.length && listingController.filter"
|
||||
>
|
||||
<div class="kuiNoItems">
|
||||
No dashboards matched your search.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PromptForItems -->
|
||||
<div class="kuiPanel kuiPanel--centered" ng-if="!listingController.items.length && !listingController.filter">
|
||||
<div
|
||||
class="kuiPanel kuiPanel--centered kuiPanel--withHeader"
|
||||
ng-if="!listingController.items.length && !listingController.filter"
|
||||
>
|
||||
<div class="kuiPromptForItems">
|
||||
<div class="kuiPromptForItems__message">
|
||||
Looks like you don’t have any dashboards. Let’s add some!
|
||||
|
|
|
@ -106,7 +106,10 @@
|
|||
</div>
|
||||
|
||||
<!-- NoResults -->
|
||||
<div class="kuiPanel kuiPanel--centered" ng-if="!service.data.length">
|
||||
<div
|
||||
class="kuiPanel kuiPanel--centered kuiPanel--withHeader"
|
||||
ng-if="!service.data.length"
|
||||
>
|
||||
<div class="kuiNoItems">
|
||||
No {{service.title}} matched your search.
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
.kuiPanel {
|
||||
border-left: $tableBorder;
|
||||
border-right: $tableBorder;
|
||||
border-bottom: $tableBorder;
|
||||
border: $tableBorder;
|
||||
}
|
||||
|
||||
.kuiPanel--withHeader {
|
||||
border-top: none;
|
||||
}
|
||||
|
||||
.kuiPanel--centered {
|
||||
|
|
7
ui_framework/dist/ui_framework.css
vendored
7
ui_framework/dist/ui_framework.css
vendored
|
@ -1223,9 +1223,10 @@ body {
|
|||
line-height: 1.5; }
|
||||
|
||||
.kuiPanel {
|
||||
border-left: 2px solid #E4E4E4;
|
||||
border-right: 2px solid #E4E4E4;
|
||||
border-bottom: 2px solid #E4E4E4; }
|
||||
border: 2px solid #E4E4E4; }
|
||||
|
||||
.kuiPanel--withHeader {
|
||||
border-top: none; }
|
||||
|
||||
.kuiPanel--centered {
|
||||
display: -webkit-box;
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
<div class="kuiPanel">
|
||||
<div class="kuiPanelHeader">
|
||||
<div class="kuiPanelHeader__title">
|
||||
Panel title
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kuiPanelBody">
|
||||
<p>Content goes here</p>
|
||||
</div>
|
||||
|
|
|
@ -8,4 +8,11 @@ export default createExample([{
|
|||
title: 'Panel',
|
||||
html: require('./panel.html'),
|
||||
hasDarkTheme: false,
|
||||
}, {
|
||||
title: 'Panel with PanelHeader',
|
||||
description: (
|
||||
<p>The Panel requires a special class when used with a PanelHeader.</p>
|
||||
),
|
||||
html: require('./panel_with_header.html'),
|
||||
hasDarkTheme: false,
|
||||
}]);
|
||||
|
|
11
ui_framework/doc_site/src/views/panel/panel_with_header.html
Normal file
11
ui_framework/doc_site/src/views/panel/panel_with_header.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<div class="kuiPanel kuiPanel--withHeader">
|
||||
<div class="kuiPanelHeader">
|
||||
<div class="kuiPanelHeader__title">
|
||||
Panel title
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kuiPanelBody">
|
||||
<p>Content goes here</p>
|
||||
</div>
|
||||
</div>
|
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
|
||||
<!-- LoadingResults -->
|
||||
<div class="kuiPanel kuiPanel--centered">
|
||||
<div class="kuiPanel kuiPanel--centered kuiPanel--withHeader">
|
||||
<div class="kuiLoadingItems">
|
||||
Loading…
|
||||
</div>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
|
||||
<!-- NoItems -->
|
||||
<div class="kuiPanel kuiPanel--centered">
|
||||
<div class="kuiPanel kuiPanel--centered kuiPanel--withHeader">
|
||||
<div class="kuiNoItems">
|
||||
No Items matched your search.
|
||||
</div>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
|
||||
<!-- PromptForItems -->
|
||||
<div class="kuiPanel kuiPanel--centered">
|
||||
<div class="kuiPanel kuiPanel--centered kuiPanel--withHeader">
|
||||
<div class="kuiPromptForItems">
|
||||
<div class="kuiPromptForItems__message">
|
||||
Looks like you don’t have any items. Let’s add some!
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div class="kuiVerticalRhythm">
|
||||
<div class="kuiPanel">
|
||||
<div class="kuiPanel kuiPanel--withHeader">
|
||||
<div class="kuiPanelHeader">
|
||||
<div class="kuiPanelHeader__title">
|
||||
Panel title
|
||||
|
@ -13,7 +13,7 @@
|
|||
</div>
|
||||
|
||||
<div class="kuiVerticalRhythm">
|
||||
<div class="kuiPanel">
|
||||
<div class="kuiPanel kuiPanel--withHeader">
|
||||
<div class="kuiPanelHeader">
|
||||
<div class="kuiPanelHeader__title">
|
||||
Panel title
|
||||
|
@ -27,7 +27,7 @@
|
|||
</div>
|
||||
|
||||
<div class="kuiVerticalRhythm">
|
||||
<div class="kuiPanel">
|
||||
<div class="kuiPanel kuiPanel--withHeader">
|
||||
<div class="kuiPanelHeader">
|
||||
<div class="kuiPanelHeader__title">
|
||||
Panel title
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="kuiPanel kuiVerticalRhythm">
|
||||
<div class="kuiPanel kuiPanel--withHeader kuiVerticalRhythm">
|
||||
<div class="kuiPanelHeader">
|
||||
<div class="kuiPanelHeader__title">
|
||||
Panel title
|
||||
|
@ -10,7 +10,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kuiPanel kuiVerticalRhythm">
|
||||
<div class="kuiPanel kuiPanel--withHeader kuiVerticalRhythm">
|
||||
<div class="kuiPanelHeader">
|
||||
<div class="kuiPanelHeader__title">
|
||||
Panel title
|
||||
|
@ -22,7 +22,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="kuiPanel kuiVerticalRhythm">
|
||||
<div class="kuiPanel kuiPanel--withHeader kuiVerticalRhythm">
|
||||
<div class="kuiPanelHeader">
|
||||
<div class="kuiPanelHeader__title">
|
||||
Panel title
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue