RIFT-15038: SSH Keys styling fix for overlapping.
[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 .sshKeyCards {
21     display:-ms-flexbox;
22     display:flex;
23     -ms-flex-direction:column;
24         flex-direction:column;
25 }
26
27 .sshKeyCard {
28     display:-ms-flexbox;
29     display:flex;
30     -ms-flex-align: start;
31         align-items: flex-start;
32     -ms-flex: 1 0 auto;
33         flex: 1 0 auto;
34     border-top: 1px solid $neutral-white;
35     &:nth-child(odd) {
36         background:$gray-lighter;
37     }
38     &-thumbnail.sqTextInput {
39         -ms-flex:1 1;
40             flex:1 1;
41         width:auto;
42         margin:1rem;
43         > .readonly {
44             background:none !important;
45         }
46     }
47     &-button {
48         font-size:1.25rem;
49         cursor:pointer;
50     }
51     &-body {
52         -ms-flex:1;
53             flex:1;
54         display:-ms-flexbox;
55         display:flex;
56         -ms-flex-direction:column;
57             flex-direction:column;
58         -ms-flex-pack:justify;
59             justify-content:space-between;
60             flex:1;
61         padding: 1rem;
62         margin-left:0;
63         height:-webkit-fit-content;
64         height:-moz-fit-content;
65         height:fit-content;
66     }
67     &-key.sqTextInput {
68         font-size:1rem;
69
70         > textarea {
71             padding:0.5rem;
72             min-height:190px;
73         }
74         > .readonly {
75             background: none !important;
76             word-break: break-all;
77             height:auto;
78         }
79     }
80     &-name {
81         font-weight:bold;
82     }
83     &-subtitle {
84         margin-top:0.25rem;
85     }
86     &-key {
87         width:100%;
88     }
89     &-controls {
90         -ms-flex:0 1 15%;
91             flex:0 1 15%;
92         display:-ms-flexbox;
93         display:flex;
94         -ms-flex-direction:column;
95             flex-direction:column;
96         -ms-flex-pack:center;
97             justify-content:center;
98         -ms-flex-align: center;
99         -ms-grid-row-align: center;
100     align-items: center;
101         -ms-flex-item-align: center;
102             align-self: center;
103         >div {
104             display:-ms-flexbox;
105             display:flex;
106             -ms-flex-pack:justify;
107                 justify-content:space-between;
108                 >span {
109                     margin:0 1rem;
110                 }
111         }
112     }
113 }