f72af71cb3f855010829d159dce69143fbded1e2
[osm/UI.git] / skyquake / plugins / launchpad / src / ssh_keys / sshKeyCard.scss
1 /*
2  * 
3  *   Copyright 2016 RIFT.IO Inc
4  *
5  *   Licensed under the Apache License, Version 2.0 (the "License");
6  *   you may not use this file except in compliance with the License.
7  *   You may obtain a copy of the License at
8  *
9  *       http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *   Unless required by applicable law or agreed to in writing, software
12  *   distributed under the License is distributed on an "AS IS" BASIS,
13  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *   See the License for the specific language governing permissions and
15  *   limitations under the License.
16  *
17  */
18 @import "style/_colors.scss";
19
20 .sshKeyCard {
21     display:-ms-flexbox;
22     display:flex;
23     -ms-flex-align: start;
24         align-items: flex-start;
25     height:250px;
26     border-top: 1px solid $neutral-white;
27     &:nth-child(odd) {
28         background:$gray-lighter;
29     }
30     &-thumbnail.sqTextInput {
31         -ms-flex:1 1;
32             flex:1 1;
33         width:auto;
34         margin:1rem;
35         > .readonly {
36             background:none !important;
37         }
38     }
39     &-button {
40         font-size:1.25rem;
41         cursor:pointer;
42     }
43     &-body {
44         -ms-flex:1;
45             flex:1;
46         display:-ms-flexbox;
47         display:flex;
48         -ms-flex-direction:column;
49             flex-direction:column;
50         -ms-flex-pack:justify;
51             justify-content:space-between;
52             flex:1;
53         padding: 1rem;
54         margin-left:0;
55         height:-webkit-fit-content;
56         height:-moz-fit-content;
57         height:fit-content;
58     }
59     &-key.sqTextInput {
60         font-size:1rem;
61         -ms-flex-align: stretch;
62             -ms-grid-row-align: stretch;
63             align-items: stretch;
64             -ms-flex:1;
65                 flex:1;
66         > textarea {
67             padding:0.5rem;
68             min-height:190px;
69         }
70         > .readonly {
71             -ms-flex: 1;
72                 flex: 1;
73             background: none !important;
74             word-break: break-all;
75         }
76     }
77     &-name {
78         font-weight:bold;
79     }
80     &-subtitle {
81         margin-top:0.25rem;
82     }
83     &-key {
84         width:100%;
85     }
86     &-controls {
87         -ms-flex:0 1 15%;
88             flex:0 1 15%;
89         display:-ms-flexbox;
90         display:flex;
91         -ms-flex-direction:column;
92             flex-direction:column;
93         -ms-flex-pack:center;
94             justify-content:center;
95         -ms-flex-align: center;
96         -ms-grid-row-align: center;
97     align-items: center;
98         height: 100%;
99         border-left: 1px solid $neutral-white;
100         >div {
101             display:-ms-flexbox;
102             display:flex;
103             -ms-flex-pack:justify;
104                 justify-content:space-between;
105                 >span {
106                     margin:0 1rem;
107                 }
108         }
109     }
110 }