a21aaa9133042492ba04ed1a674ac6e0a2aed24c
[osm/UI.git] / skyquake / plugins / project_management / src / dashboard / projectMgmt.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     .rbacButtonGroup {
92         margin: 0 0.5rem 0.5rem;
93         background: #ddd;
94         padding-bottom: 0.5rem;
95         padding: 0.5rem 0;
96     }
97     .buttonGroup {
98         border-top: #d3d3d3 1px solid;
99         padding-top:0.5rem;
100     }
101     .addUser {
102         display:-ms-flexbox;
103         display:flex;
104         -ms-flex-direction:row;
105             flex-direction:row;
106         label {
107             -ms-flex: 0 1;
108                 flex: 0 1;
109                 width:150px;
110             select {
111                 width:150px;
112             }
113         }
114     }
115     .projectUsers {
116         .userName {
117             -ms-flex-pack: start;
118             justify-content: flex-start;
119             padding-top: 0.75rem;
120         }
121         select {
122             margin-bottom:0.5rem;
123         }
124         .addRole {
125             margin:.25rem 0;
126         }
127         .buttonGroup {
128             display:-ms-flexbox;
129             display:flex;
130         }
131
132     }
133     .projectUsers.tableRow--data:hover {
134             background:none;
135             color: black;
136         }
137
138     table {
139         font-size: 0.8rem;
140         thead {
141             border-bottom:1px solid #d3d3d3;
142             td{
143                 font-weight:bold;
144             }
145         }
146         td{
147             padding:0.25rem 0.5rem;
148             vertical-align: middle;
149             .checkbox {
150                 -ms-flex-pack:center;
151                     justify-content:center;
152             }
153         }
154     }
155     .userTable {
156         .FormSection-body {
157             max-width: 652px;
158             overflow-x: auto;
159         }
160     }
161 }
162
163
164
165 .FormSection {
166     &-title {
167         color: #000;
168         background: lightgray;
169         padding: 0.5rem;
170         border-top: 1px solid #f1f1f1;
171         border-bottom: 1px solid #f1f1f1;
172     }
173     &-body {
174         padding: 0.5rem 0.75rem;
175     }
176     label {
177         -ms-flex: 1 0;
178             flex: 1 0;
179     }
180     /* label {*/
181     /*     display: -ms-flexbox;*/
182     /*     display: flex;*/
183     /*     -ms-flex-direction: column;*/
184     /*     flex-direction: column;*/
185     /*     width: 100%;*/
186     /*     margin: 0.5rem 0;*/
187     /*     -ms-flex-align: start;*/
188     /*     align-items: flex-start;*/
189     /*     -ms-flex-pack: start;*/
190     /*     justify-content: flex-start;*/
191     /* }*/
192     select {
193         font-size: 1rem;
194         min-width: 75%;
195         height: 35px;
196     }
197 }
198
199
200 .InputCollection {
201     display:-ms-flexbox;
202     display:flex;
203     -ms-flex-wrap: nowrap;
204         flex-wrap: nowrap;
205     -ms-flex-align: center;
206         align-items: center;
207     button {
208         padding: 0.25rem;
209         height: 1.5rem;
210         font-size: 0.75rem;
211     }
212     select {
213         min-width: 100%;
214     }
215     margin-bottom:0.5rem;
216     &-wrapper {
217
218     }
219 }
220 .tableRow {
221     display:-ms-flexbox;
222     display:flex;
223     -ms-flex-wrap: nowrap;
224     flex-wrap: nowrap;
225     padding: 0.25rem;
226     margin: .125rem 0;
227     >div {
228         padding: 0.25rem;
229         -ms-flex: 1 1 33%;
230             flex: 1 1 33%;
231         display: -ms-flexbox;
232         display: flex;
233         -ms-flex-direction: column;
234             flex-direction: column;
235         -ms-flex-pack: center;
236             justify-content: center;
237     }
238     &--header {
239         font-weight:bold;
240     }
241     &--data {
242         &:hover:not(&-active) {
243             background:$neutral-dark-1;
244         }
245         &:hover, .activeUser, &-active{
246             cursor:pointer;
247             color:white;
248         }
249         .activeUser, &-active{
250             background: #00acee;
251         }
252     }
253 }
254
255 .addInput, .removeInput {
256     display:-ms-flexbox;
257     display:flex;
258     -ms-flex-align:center;
259     align-items:center;
260     margin-left: 1rem;
261
262     font-size:0.75rem;
263     text-transform:uppercase;
264     font-weight:bold;
265
266     cursor:pointer;
267     img {
268         height:0.75rem;
269         margin-right:0.5rem;
270         width:auto;
271     }
272     span {
273         color: #5b5b5b;
274         text-transform: uppercase;
275     }
276 }