Commit 78ad761d authored by Phil Hughes's avatar Phil Hughes

Merge branch '10945-env-css' into 'master'

Cleans up Deploy Boards CSS

Closes #10945

See merge request gitlab-org/gitlab-ee!10685
parents ff91ffee b2575a6b
...@@ -84,18 +84,18 @@ export default { ...@@ -84,18 +84,18 @@ export default {
<div v-if="canRenderDeployBoard"> <div v-if="canRenderDeployBoard">
<section class="deploy-board-information"> <section class="deploy-board-information">
<span v-tooltip :title="instanceIsCompletedText"> <span v-tooltip :title="instanceIsCompletedText">
<span class="percentage">{{ deployBoardData.completion }}%</span> <span class="percentage text-center text-plain">{{ deployBoardData.completion }}%</span>
<span class="text">Complete</span> <span class="text text-center text-secondary">Complete</span>
</span> </span>
</section> </section>
<section class="deploy-board-instances"> <section class="deploy-board-instances">
<p class="text"> <p class="deploy-board-instances-text text-secondary">
<span>{{ instanceTitle }}</span> <span>{{ instanceTitle }}</span>
<span class="total-instances">({{ instanceCount }})</span> <span class="total-instances">({{ instanceCount }})</span>
</p> </p>
<div class="deploy-board-instances-container"> <div class="deploy-board-instances-container d-flex flex-wrap flex-row">
<template v-for="(instance, i) in deployBoardData.instances"> <template v-for="(instance, i) in deployBoardData.instances">
<instance-component <instance-component
:key="i" :key="i"
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
<section class="deploy-board-empty-state-svg" v-html="deployBoardSvg"></section> <section class="deploy-board-empty-state-svg" v-html="deployBoardSvg"></section>
<section class="deploy-board-empty-state-text"> <section class="deploy-board-empty-state-text">
<span class="title">Kubernetes deployment not found</span> <span class="deploy-board-empty-state-title d-flex">Kubernetes deployment not found</span>
<span> <span>
To see deployment progress for your environments, make sure your deployments are in To see deployment progress for your environments, make sure your deployments are in
Kubernetes namespace <code>{{ projectName }}</code> and labeled with Kubernetes namespace <code>{{ projectName }}</code> and labeled with
......
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
<icon :size="16" name="arrow-down" aria-hidden="true" class="chevron" /> <icon :size="16" name="arrow-down" aria-hidden="true" class="chevron" />
</button> </button>
<div ref="dropdownMenu" :class="{ show: isOpen }" class="dropdown-menu alert-dropdown-menu"> <div ref="dropdownMenu" :class="{ show: isOpen }" class="dropdown-menu alert-dropdown-menu">
<div class="dropdown-title"> <div class="dropdown-title m0">
<span>{{ dropdownTitle }}</span> <span>{{ dropdownTitle }}</span>
<button <button
class="dropdown-title-button dropdown-menu-close" class="dropdown-title-button dropdown-menu-close"
......
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
ref="cancelButton" ref="cancelButton"
:disabled="formDisabled" :disabled="formDisabled"
type="button" type="button"
class="btn btn-default" class="btn btn-default prepend-left-8"
@click="handleCancel" @click="handleCancel"
> >
{{ __('Cancel') }} {{ __('Cancel') }}
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
:class="submitButtonClass" :class="submitButtonClass"
:disabled="isSubmitDisabled" :disabled="isSubmitDisabled"
type="button" type="button"
class="btn btn-inverted" class="btn btn-inverted prepend-left-8"
@click="handleSubmit" @click="handleSubmit"
> >
{{ submitActionText }} {{ submitActionText }}
......
...@@ -6,13 +6,6 @@ ...@@ -6,13 +6,6 @@
background-color: $gray-light; background-color: $gray-light;
min-height: 20px; min-height: 20px;
.fa-spinner {
margin: 0 auto;
width: 20px;
display: block;
font-size: 20px;
}
> div { > div {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -24,37 +17,21 @@ ...@@ -24,37 +17,21 @@
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
margin: 20px 0 20px 5px; margin: 20px 0 20px 5px;
> span {
text-align: center;
}
.percentage {
color: $gl-text-color;
}
.text {
color: $gl-text-color-secondary;
}
} }
.deploy-board-instances { .deploy-board-instances {
order: 2; order: 2;
margin-left: 20px; margin-left: 20px;
width: 100%; width: 100%;
}
.text { .deploy-board-instances-text {
color: $gl-text-color-secondary;
font-size: 12px; font-size: 12px;
} }
.deploy-board-instances-container { .deploy-board-instances-container {
display: flex;
flex-wrap: wrap;
flex-direction: row;
margin-top: -8px; margin-top: -8px;
} }
}
.deploy-board-actions { .deploy-board-actions {
order: 3; order: 3;
...@@ -78,14 +55,14 @@ ...@@ -78,14 +55,14 @@
flex-wrap: wrap; flex-wrap: wrap;
margin: auto auto 15px 0; margin: auto auto 15px 0;
.title { }
.deploy-board-empty-state-title {
order: 1; order: 1;
display: flex;
font-size: 17px; font-size: 17px;
line-height: 40px; line-height: 40px;
} }
} }
}
} }
.deploy-board-instance { .deploy-board-instance {
...@@ -114,11 +91,7 @@ ...@@ -114,11 +91,7 @@
border-color: $green-400; border-color: $green-400;
} }
&-failed { &-failed,
background-color: $red-200;
border-color: $red-500;
}
&-unknown { &-unknown {
background-color: $red-200; background-color: $red-200;
border-color: $red-500; border-color: $red-500;
...@@ -156,19 +129,6 @@ ...@@ -156,19 +129,6 @@
} }
} }
.cluster-health-graphs {
.prometheus-state {
.state-svg img {
max-height: 120px;
}
.state-description,
.state-button {
display: none;
}
}
}
.alert-dropdown-button { .alert-dropdown-button {
margin-left: $btn-side-margin; margin-left: $btn-side-margin;
...@@ -194,10 +154,6 @@ ...@@ -194,10 +154,6 @@
right: 0; right: 0;
left: auto; left: auto;
z-index: $zindex-popover + 5; // must be higher than graph flag popover z-index: $zindex-popover + 5; // must be higher than graph flag popover
.dropdown-title {
margin: 0;
}
} }
.alert-error-message { .alert-error-message {
...@@ -226,10 +182,6 @@ ...@@ -226,10 +182,6 @@
box-shadow: none; box-shadow: none;
} }
} }
.action-group .btn + .btn {
margin-left: $gl-padding-8;
}
} }
.canary-deployment-callout { .canary-deployment-callout {
......
...@@ -74,7 +74,9 @@ describe('Deploy Board', () => { ...@@ -74,7 +74,9 @@ describe('Deploy Board', () => {
it('should render the empty state', () => { it('should render the empty state', () => {
expect(component.$el.querySelector('.deploy-board-empty-state-svg svg')).toBeDefined(); expect(component.$el.querySelector('.deploy-board-empty-state-svg svg')).toBeDefined();
expect( expect(
component.$el.querySelector('.deploy-board-empty-state-text .title').textContent, component.$el.querySelector(
'.deploy-board-empty-state-text .deploy-board-empty-state-title',
).textContent,
).toContain('Kubernetes deployment not found'); ).toContain('Kubernetes deployment not found');
}); });
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment