summaryrefslogtreecommitdiffstats
path: root/app/configuration/styles
diff options
context:
space:
mode:
authormiramurali23 <miramurali23@gmail.com>2019-06-10 15:09:27 -0500
committerGunnar Mills <gmills@us.ibm.com>2019-08-22 14:53:06 +0000
commit5e8785d3605b2f927d6024f3d72ebfcc98d0ae0e (patch)
tree4d66732a3d891f80282376a9f7380be43396304a /app/configuration/styles
parent0433e005e01732e73e93b167a7a3e4d862f28e28 (diff)
downloadphosphor-webui-5e8785d3605b2f927d6024f3d72ebfcc98d0ae0e.tar.gz
phosphor-webui-5e8785d3605b2f927d6024f3d72ebfcc98d0ae0e.zip
Create csr modal
The CSR Modal allows users to generate a CSR code. Once the user types in the necessary information to generate the CSR code, that modal will then render the code and the user will be able to either copy the code or download the code in a txt file. Tested: loaded onto Witherspoon and able to view on certificate management page. Click on generate csr and type in necessary (or any additional info), then click on generate CSR. The CSR code is then visible and is able to be copied or downloaded. In error state in which CSR code is unable to generate, the modal closes and an error toast message appears. FYI: Sometimes you have to reboot system in order for csr to successfully generate.y Signed-off-by: Mira Murali <miramurali23@gmail.com> Change-Id: I3cca09c494357496166164b5ee8ff99250ef981d
Diffstat (limited to 'app/configuration/styles')
-rw-r--r--app/configuration/styles/certificate.scss112
1 files changed, 112 insertions, 0 deletions
diff --git a/app/configuration/styles/certificate.scss b/app/configuration/styles/certificate.scss
index a113781..650465f 100644
--- a/app/configuration/styles/certificate.scss
+++ b/app/configuration/styles/certificate.scss
@@ -108,6 +108,14 @@
background: $background-02;
}
+
+.certificate__close-modal {
+ float: right;
+ position: relative;
+ bottom: 1rem;
+ left: 2rem;
+}
+
.add__certificate__modal {
select {
margin-bottom: 0;
@@ -126,3 +134,107 @@
padding: 0.5em;
}
}
+
+.add-certificate__section {
+ padding-left: 0;
+}
+
+// Combinator needed to match specificity
+// of default modal settings
+.modal.add-csr__modal {
+ width: 100%;
+ max-height: 100vh;
+ overflow-y: auto;
+ z-index: 1001;
+}
+
+.add-csr__section:first-of-type {
+ padding-left: 0;
+}
+
+.add-csr__section:last-of-type {
+ margin-top: 2rem;
+ padding-right: 0;
+
+ @media (min-width: 640px) {
+ margin-top: 0;
+ }
+}
+
+.add-csr__section-title {
+ margin-bottom: 1rem;
+ font-weight: 700;
+}
+
+.add-csr__section--border {
+ @media (min-width: 640px) {
+ padding-left: 2rem;
+ border-left: 1px solid $base-02--04;
+ }
+}
+
+.add-csr__label {
+ white-space: nowrap;
+ display: inline-block;
+}
+
+.add-csr__text-helper {
+ color: $base-02--02;
+ font-weight: 400;
+ font-size: 14px;
+ line-height: 1.2;
+ margin-bottom: .5em;
+}
+
+input.add-csr__input,
+select.add-csr__select {
+ width: 100%;
+ margin-bottom: 0;
+ max-height: none;
+ height: auto;
+}
+
+.select.add-csr__select {
+ line-height: 1.15;
+}
+
+input.add-csr__input-no-validation {
+ margin-bottom: 1.7rem;
+}
+
+.add-csr__additional-alt-names {
+ display: flex;
+}
+
+.add-csr__alt-name-add-btn {
+ padding: 0;
+ @media (min-width: 640px) {
+ margin: 1.9rem 0;
+ }
+}
+
+.add-csr__alt-name-delete-btn {
+ width: 20px;
+ height: 30px;
+ padding: 0;
+
+ icon {
+ margin-right: 0;
+ }
+}
+
+.add-csr-code__header {
+ margin-top: 1em;
+}
+
+.add-csr__container-csr-code {
+ white-space: pre-wrap;
+}
+
+.add-csr__text-download {
+ color: $base-02--08;
+}
+
+select.add-csr__multiselect {
+ height: 14rem;
+}
OpenPOWER on IntegriCloud