Project management bug fixes. Platform Role assignment init
[osm/UI.git] / skyquake / plugins / user_management / src / platformRoleManagement / platformRoleManagement.scss
1 /*
2  * STANDARD_RIFT_IO_COPYRIGHT
3  */
4
5 /* If there's time this really needs to be rewritten. Ideally with smooth animations.*/
6 @import "style/_colors.scss";
7
8 .projectManagement {
9         max-width: 900px;
10
11     .skyquakePanel-wrapper {
12         overflow-x: hidden;
13     }
14     .projectList {
15
16         -ms-flex: 0 1 200px;
17         flex: 0 1 200px;
18
19         .activeUser {
20             font-weight:bold;
21         }
22
23         /* transition: all 2s;*/
24         &.expanded {
25             -ms-flex: 1 1 100%;
26             flex: 1 1 100%;
27             /* transition: all 300ms;*/
28             .tableRow>div:not(.projectName) {
29                 opacity: 1;
30                 /* width:auto;*/
31                 /* transition: width 600ms;*/
32                 /* transition: opacity 300ms;*/
33             }
34             &.collapsed {
35                 -ms-flex: 0 1 200px;
36                 flex: 0 1 200px;
37                 /* transition: all 2s;*/
38                 .tableRow>div:not(.projectName) {
39                     /* opacity: 0;*/
40                     /* width:0px;*/
41                     display:none;
42                     overflow:hidden;
43                     /* transition: all 600ms;*/
44                 }
45             }
46         }
47         &.hideColumns {
48             overflow:hidden;
49             >div {
50                 overflow:hidden;
51             }
52             .tableRow>div:not(.projectName) {
53                 width: 0px;
54                 /* transition: all 600ms;*/
55             }
56             .projectName {
57                 &--header {
58                     /* display:none;*/
59              }
60             }
61         }
62         .projectName {
63             cursor:pointer;
64         }
65
66
67     }
68
69     .projectAdmin {
70             -ms-flex: 1 1;
71             flex: 1 1;
72             width:auto;
73             opacity:1;
74
75         textarea{
76             height: 100px;
77         }
78     }
79     &.projectList-open {
80         .projectAdmin {
81             -ms-flex: 0 1 0px;
82                 flex: 0 1 0px;
83             opacity:0;
84             /* width: 0px;*/
85             display:none;
86             /* transition: opacity 300ms;*/
87             /* transition: width 600ms;*/
88
89         }
90     }
91     .buttonGroup {
92         margin: 0 0.5rem 0.5rem;
93         background: #ddd;
94         padding-bottom: 0.5rem;
95         padding: 0.5rem 0;
96         border-top: #d3d3d3 1px solid;
97     }
98     .addUser {
99         display:-ms-flexbox;
100         display:flex;
101         -ms-flex-direction:row;
102             flex-direction:row;
103         label {
104             -ms-flex: 0 1;
105                 flex: 0 1;
106                 width:150px;
107             select {
108                 width:150px;
109             }
110         }
111     }
112     .projectUsers {
113         .userName {
114             -ms-flex-pack: start;
115             justify-content: flex-start;
116             padding-top: 0.75rem;
117         }
118         select {
119             margin-bottom:0.5rem;
120         }
121         .addRole {
122             margin:.25rem 0;
123         }
124         .buttonGroup {
125             display:-ms-flexbox;
126             display:flex;
127         }
128
129     }
130     .projectUsers.tableRow--data:hover {
131             background:none;
132             color: black;
133         }
134
135     table {
136         thead {
137             border-bottom:1px solid #d3d3d3;
138             td{
139                 font-weight:bold;
140             }
141         }
142         td{
143             padding:0.25rem 0.5rem;
144             vertical-align: middle;
145             .checkbox {
146                 -ms-flex-pack:center;
147                     justify-content:center;
148             }
149         }
150     }
151 }
152
153
154
155 .FormSection {
156     &-title {
157         color: #000;
158         background: lightgray;
159         padding: 0.5rem;
160         border-top: 1px solid #f1f1f1;
161         border-bottom: 1px solid #f1f1f1;
162     }
163     &-body {
164         padding: 0.5rem 0.75rem;
165     }
166     label {
167         -ms-flex: 1 0;
168             flex: 1 0;
169     }
170     /* label {*/
171     /*     display: -ms-flexbox;*/
172     /*     display: flex;*/
173     /*     -ms-flex-direction: column;*/
174     /*     flex-direction: column;*/
175     /*     width: 100%;*/
176     /*     margin: 0.5rem 0;*/
177     /*     -ms-flex-align: start;*/
178     /*     align-items: flex-start;*/
179     /*     -ms-flex-pack: start;*/
180     /*     justify-content: flex-start;*/
181     /* }*/
182     select {
183         font-size: 1rem;
184         min-width: 75%;
185         height: 35px;
186     }
187 }
188
189
190 .InputCollection {
191     display:-ms-flexbox;
192     display:flex;
193     -ms-flex-wrap: nowrap;
194         flex-wrap: nowrap;
195     -ms-flex-align: center;
196         align-items: center;
197     button {
198         padding: 0.25rem;
199         height: 1.5rem;
200         font-size: 0.75rem;
201     }
202     select {
203         min-width: 100%;
204     }
205     margin-bottom:0.5rem;
206     &-wrapper {
207
208     }
209 }
210 .tableRow {
211     display:-ms-flexbox;
212     display:flex;
213     -ms-flex-wrap: nowrap;
214     flex-wrap: nowrap;
215     padding: 0.25rem;
216     margin: .125rem 0;
217     >div {
218         padding: 0.25rem;
219         -ms-flex: 1 1 33%;
220             flex: 1 1 33%;
221         display: -ms-flexbox;
222         display: flex;
223         -ms-flex-direction: column;
224             flex-direction: column;
225         -ms-flex-pack: center;
226             justify-content: center;
227     }
228     &--header {
229         font-weight:bold;
230     }
231     &--data {
232         &:hover:not(&-active) {
233             background:$neutral-dark-1;
234         }
235         &:hover, .activeUser, &-active{
236             cursor:pointer;
237             color:white;
238         }
239         .activeUser, &-active{
240             background: #00acee;
241         }
242     }
243 }
244
245 .addInput, .removeInput {
246     display:-ms-flexbox;
247     display:flex;
248     -ms-flex-align:center;
249     align-items:center;
250     margin-left: 1rem;
251
252     font-size:0.75rem;
253     text-transform:uppercase;
254     font-weight:bold;
255
256     cursor:pointer;
257     img {
258         height:0.75rem;
259         margin-right:0.5rem;
260         width:auto;
261     }
262     span {
263         color: #5b5b5b;
264         text-transform: uppercase;
265     }
266 }