Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add classes for standardizing the vertical rhythm of content on a page. #8628

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 41 additions & 40 deletions src/core_plugins/kibana/public/management/landing.html
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
<kbn-management-app>
<kbn-management-landing>
<div class="product-overview">
<span class="kibana-version">Version: {{::kbnVersion}}</span>
<!-- General info -->
<div class="page-row">
<div class="page-row-text">Version: {{::kbnVersion}}</div>
</div>
<div class="management-sections">
<div
ng-if="section.items.length > 0"
ng-repeat="section in sections"
ng-class="{ 'management-section-info-expanded': section.showInfo }"
class="col-xs-12 management-section management-section-{{::section.id}}">

<div class="panel panel-product management-panel-product">
<div class="panel-heading panel-heading-{{::section.id}}">
{{::section.display}}
<!-- Management sections for the ES stack -->
<div
ng-if="section.items.length > 0"
ng-repeat="section in sections"
ng-class="{ 'management-section-info-expanded': section.showInfo }"
class="page-row"
>
<div class="panel panel-product management-panel-product">
<div class="panel-heading panel-heading-{{::section.id}}">
{{::section.display}}

<i
class="fa fa-info-circle pull-right panel-heading-icon"
ng-click="section.showInfo = !!!section.showInfo"
ng-if="section.info">
</i>
</div>
<i
class="fa fa-info-circle pull-right panel-heading-icon"
ng-click="section.showInfo = !!!section.showInfo"
ng-if="section.info">
</i>
</div>

<div class="panel-body">
<div class="row">
<ul class="management-section-items list-unstyled">
<li
class="col-xs-4 col-md-3"
ng-repeat="item in section.items.inOrder"
<div class="panel-body">
<div class="row">
<ul class="management-section-items list-unstyled">
<li
class="col-xs-4 col-md-3"
ng-repeat="item in section.items.inOrder"
>
<a
class="management-link"
ng-class="{ 'is-management-link-disabled': !item.url }"
kbn-href="{{::item.url}}"
tooltip="{{::item.tooltip}}"
tooltip-placement="bottom"
tooltip-popup-delay="400"
tooltip-append-to-body="1"
>
<a
class="management-link"
ng-class="{ 'is-management-link-disabled': !item.url }"
kbn-href="{{::item.url}}"
tooltip="{{::item.tooltip}}"
tooltip-placement="bottom"
tooltip-popup-delay="400"
tooltip-append-to-body="1"
>
{{::item.display}}
</a>
</li>
</ul>
</div>
<div class="management-section-info">
{{::section.info}}
</div>
{{::item.display}}
</a>
</li>
</ul>
</div>
<div class="management-section-info">
{{::section.info}}
</div>
</div>
</div>
Expand Down
12 changes: 0 additions & 12 deletions src/core_plugins/kibana/public/management/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ kbn-management-app {
}

kbn-management-landing {
padding: 5px;

.management-panel-product {
margin-bottom: 10px;

Expand All @@ -54,11 +52,6 @@ kbn-management-landing {
}
}

.management-section {
padding-left: 5px;
padding-right: 5px;
}

.management-link {
font-size: 17px;
line-height: 32px;
Expand All @@ -78,11 +71,6 @@ kbn-management-landing {
padding: 5px;
}

.product-overview {
color: @kibanaGray2;
padding: 5px 0 10px 10px;
}

.management-section-info {
bottom: 10px;
display: none;
Expand Down
14 changes: 14 additions & 0 deletions src/ui/public/styles/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@ fieldset {
padding: 7px 10px;
}

.panel-heading--clickable {
cursor: pointer;
}

.panel-heading-elasticsearch,
.panel-heading-kibana,
.panel-heading-beats,
Expand Down Expand Up @@ -656,4 +660,14 @@ fieldset {
}
}

.page-row {
padding: 0 10px;
margin: 10px 0;
}

.page-row-text {
color: @kibanaGray2;
font-size: 14px;
}

@import "~dragula/dist/dragula.css";