Rift.IO OSM R1 Initial Submission
[osm/UI.git] / skyquake / plugins / launchpad / src / ssh_keys / sshKeyCard.scss
diff --git a/skyquake/plugins/launchpad/src/ssh_keys/sshKeyCard.scss b/skyquake/plugins/launchpad/src/ssh_keys/sshKeyCard.scss
new file mode 100644 (file)
index 0000000..f72af71
--- /dev/null
@@ -0,0 +1,110 @@
+/*
+ * 
+ *   Copyright 2016 RIFT.IO Inc
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+@import "style/_colors.scss";
+
+.sshKeyCard {
+    display:-ms-flexbox;
+    display:flex;
+    -ms-flex-align: start;
+        align-items: flex-start;
+    height:250px;
+    border-top: 1px solid $neutral-white;
+    &:nth-child(odd) {
+        background:$gray-lighter;
+    }
+    &-thumbnail.sqTextInput {
+        -ms-flex:1 1;
+            flex:1 1;
+        width:auto;
+        margin:1rem;
+        > .readonly {
+            background:none !important;
+        }
+    }
+    &-button {
+        font-size:1.25rem;
+        cursor:pointer;
+    }
+    &-body {
+        -ms-flex:1;
+            flex:1;
+        display:-ms-flexbox;
+        display:flex;
+        -ms-flex-direction:column;
+            flex-direction:column;
+        -ms-flex-pack:justify;
+            justify-content:space-between;
+            flex:1;
+        padding: 1rem;
+        margin-left:0;
+        height:-webkit-fit-content;
+        height:-moz-fit-content;
+        height:fit-content;
+    }
+    &-key.sqTextInput {
+        font-size:1rem;
+        -ms-flex-align: stretch;
+            -ms-grid-row-align: stretch;
+            align-items: stretch;
+            -ms-flex:1;
+                flex:1;
+        > textarea {
+            padding:0.5rem;
+            min-height:190px;
+        }
+        > .readonly {
+            -ms-flex: 1;
+                flex: 1;
+            background: none !important;
+            word-break: break-all;
+        }
+    }
+    &-name {
+        font-weight:bold;
+    }
+    &-subtitle {
+        margin-top:0.25rem;
+    }
+    &-key {
+        width:100%;
+    }
+    &-controls {
+        -ms-flex:0 1 15%;
+            flex:0 1 15%;
+        display:-ms-flexbox;
+        display:flex;
+        -ms-flex-direction:column;
+            flex-direction:column;
+        -ms-flex-pack:center;
+            justify-content:center;
+        -ms-flex-align: center;
+        -ms-grid-row-align: center;
+    align-items: center;
+        height: 100%;
+        border-left: 1px solid $neutral-white;
+        >div {
+            display:-ms-flexbox;
+            display:flex;
+            -ms-flex-pack:justify;
+                justify-content:space-between;
+                >span {
+                    margin:0 1rem;
+                }
+        }
+    }
+}