Update styling for empty state and the app environments panel

This commit is contained in:
leigh-mil
2019-10-14 13:48:35 -04:00
parent e4b1bc33c4
commit 595995cf03
5 changed files with 95 additions and 94 deletions

View File

@@ -1,30 +1,18 @@
.empty-state { .empty-state {
text-align: center; text-align: center;
padding: 6rem ($gap * 2) 0; padding: 5rem ($gap * 2) 2rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
max-width: 100%; max-width: 100%;
@include media($medium-screen) {
padding: 8rem ($gap * 4) 0;
}
> .icon { > .icon {
@include icon-size(50); @include icon-size(50);
@include icon-color($color-gray-light); @include icon-color($color-gray-light);
} }
&__message { &__message {
@include h2; font-weight: $font-bold;
line-height: 1.2;
max-width: 15em;
color: $color-gray;
@include media($large-screen) {
@include h1;
}
} }
&__sub-message { &__sub-message {

View File

@@ -239,7 +239,7 @@
.panel { .panel {
@include shadow-panel; @include shadow-panel;
padding-bottom: 0; padding-bottom: 2rem;
} }
.application-list-item { .application-list-item {

View File

@@ -44,8 +44,6 @@
} }
.icon { .icon {
@include icon-color($color-white) @include icon-color($color-white) @include icon-size(12) margin: 0;
@include icon-size(12)
margin: 0;
} }
} }

View File

@@ -3,12 +3,25 @@
{% from "components/text_input.html" import TextInput %} {% from "components/text_input.html" import TextInput %}
{% from "components/toggle_list.html" import ToggleButton, ToggleSection %} {% from "components/toggle_list.html" import ToggleButton, ToggleSection %}
{% macro EnvironmentManagementTemplate(application, environments_obj, new_env_form, user_can_create_environment) %} {% macro EnvironmentManagementTemplate(
<h3>{{ 'common.resource_names.environments' | translate }}</h3> application,
environments_obj,
new_env_form,
user_can_create_environment
) %}
<h3>{{ "portfolios.applications.settings.environments" | translate }}</h3>
<section class="panel" id="application-environments"> <section class="panel" id="application-environments">
{% if g.matchesPath("application-environments") %} {% if g.matchesPath("application-environments") -%}
{% include "fragments/flash.html" %} {% include "fragments/flash.html" %}
{% endif %} {%- endif %}
{% if 0 == environments_obj | length -%}
<div class="empty-state panel__content">
<p class="empty-state__message">
This Application has no environments
</p>
</div>
{% else %}
<div class="panel__content"> <div class="panel__content">
<div class="accordion-table accordion-table-list"> <div class="accordion-table accordion-table-list">
<ul class="accordion-table__items"> <ul class="accordion-table__items">
@@ -80,8 +93,9 @@
</ul> </ul>
</div> </div>
</div> </div>
{% if user_can_create_environment %} {%- endif %}
{% if user_can_create_environment -%}
{% include "applications/fragments/add_new_environment.html" %} {% include "applications/fragments/add_new_environment.html" %}
{% endif %} {%- endif %}
</section> </section>
{% endmacro %} {% endmacro %}

View File

@@ -377,6 +377,7 @@ portfolios:
settings: settings:
name_description: Application name and description name_description: Application name and description
team_members: Team Members team_members: Team Members
environments: Application Environments
team_settings: team_settings:
blank_slate: blank_slate:
action_label: Invite a new team member action_label: Invite a new team member