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