82b62a86d14539a4adf71bcd07ce2b41d94152aa
[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     .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         font-size: 0.8rem;
137         thead {
138             border-bottom:1px solid #d3d3d3;
139             td{
140                 font-weight:bold;
141             }
142         }
143         td{
144             padding:0.25rem 0.5rem;
145             vertical-align: middle;
146             .checkbox {
147                 -ms-flex-pack:center;
148                     justify-content:center;
149             }
150         }
151     }
152     .userTable {
153         .FormSection-body {
154             max-width: 652px;
155             overflow-x: auto;
156         }
157     }
158 }
159
160
161
162 .FormSection {
163     &-title {
164         color: #000;
165         background: lightgray;
166         padding: 0.5rem;
167         border-top: 1px solid #f1f1f1;
168         border-bottom: 1px solid #f1f1f1;
169     }
170     &-body {
171         padding: 0.5rem 0.75rem;
172     }
173     label {
174         -ms-flex: 1 0;
175             flex: 1 0;
176     }
177     /* label {*/
178     /*     display: -ms-flexbox;*/
179     /*     display: flex;*/
180     /*     -ms-flex-direction: column;*/
181     /*     flex-direction: column;*/
182     /*     width: 100%;*/
183     /*     margin: 0.5rem 0;*/
184     /*     -ms-flex-align: start;*/
185     /*     align-items: flex-start;*/
186     /*     -ms-flex-pack: start;*/
187     /*     justify-content: flex-start;*/
188     /* }*/
189     select {
190         font-size: 1rem;
191         min-width: 75%;
192         height: 35px;
193     }
194 }
195
196
197 .InputCollection {
198     display:-ms-flexbox;
199     display:flex;
200     -ms-flex-wrap: nowrap;
201         flex-wrap: nowrap;
202     -ms-flex-align: center;
203         align-items: center;
204     button {
205         padding: 0.25rem;
206         height: 1.5rem;
207         font-size: 0.75rem;
208     }
209     select {
210         min-width: 100%;
211     }
212     margin-bottom:0.5rem;
213     &-wrapper {
214
215     }
216 }
217 .tableRow {
218     display:-ms-flexbox;
219     display:flex;
220     -ms-flex-wrap: nowrap;
221     flex-wrap: nowrap;
222     padding: 0.25rem;
223     margin: .125rem 0;
224     >div {
225         padding: 0.25rem;
226         -ms-flex: 1 1 33%;
227             flex: 1 1 33%;
228         display: -ms-flexbox;
229         display: flex;
230         -ms-flex-direction: column;
231             flex-direction: column;
232         -ms-flex-pack: center;
233             justify-content: center;
234     }
235     &--header {
236         font-weight:bold;
237     }
238     &--data {
239         &:hover:not(&-active) {
240             background:$neutral-dark-1;
241         }
242         &:hover, .activeUser, &-active{
243             cursor:pointer;
244             color:white;
245         }
246         .activeUser, &-active{
247             background: #00acee;
248         }
249     }
250 }
251
252 .addInput, .removeInput {
253     display:-ms-flexbox;
254     display:flex;
255     -ms-flex-align:center;
256     align-items:center;
257     margin-left: 1rem;
258
259     font-size:0.75rem;
260     text-transform:uppercase;
261     font-weight:bold;
262
263     cursor:pointer;
264     img {
265         height:0.75rem;
266         margin-right:0.5rem;
267         width:auto;
268     }
269     span {
270         color: #5b5b5b;
271         text-transform: uppercase;
272     }
273 }