|
1 | 1 | .membership {
|
2 | 2 | .action-set {
|
3 |
| - display: flex; |
4 |
| - flex-direction: column; |
5 |
| - justify-content: space-between; |
6 |
| - width: 100%; |
7 |
| - @media(min-width: @screen-sm-min) { |
8 |
| - flex-wrap: nowrap; |
9 |
| - } |
10 |
| - @media(min-width: @screen-md-min) { |
11 |
| - flex-direction: row; |
| 3 | + flex: 1 1 auto; |
| 4 | + @media(min-width: @screen-xs-min) { |
| 5 | + max-width: 65%; |
| 6 | + .container-pf-nav-pf-vertical.collapsed-nav & { |
| 7 | + max-width: 60%; |
| 8 | + } |
12 | 9 | }
|
13 | 10 | }
|
14 | 11 | .content-pane {
|
15 |
| - width: 100%; |
16 | 12 | .add-role-to {
|
17 | 13 | margin-left: -1px;
|
18 | 14 | }
|
19 |
| - .col-add-role { |
20 |
| - width: 100%; |
21 |
| - @media(min-width: @screen-xs-min) { |
22 |
| - min-width: 245px; |
23 |
| - width: auto; |
24 |
| - } |
| 15 | + .col-add-role-inputs { |
| 16 | + display: flex; |
25 | 17 | }
|
26 | 18 | .col-heading {
|
27 | 19 | border-bottom: 1px solid #ededed;
|
28 | 20 | display: none;
|
29 | 21 | @media(min-width: @screen-xs-min) {
|
30 | 22 | display: flex;
|
31 |
| - margin: 0; |
32 | 23 | }
|
33 | 24 | }
|
34 | 25 | .col-name {
|
| 26 | + align-items: center; |
| 27 | + display: flex; |
| 28 | + flex: 1 1 auto; |
| 29 | + padding: 0 0 10px 0; |
| 30 | + .word-break-all; |
35 | 31 | @media(min-width: @screen-xs-min) {
|
36 |
| - max-width: 30%; |
| 32 | + max-width: 35%; |
| 33 | + padding: 0 5px 0 0; |
| 34 | + width: 100%; |
37 | 35 | .container-pf-nav-pf-vertical.collapsed-nav & {
|
38 | 36 | max-width: 40%;
|
39 | 37 | }
|
40 |
| - padding: 0 5px 0 0; |
41 | 38 | input {
|
42 | 39 | max-width: 225px;
|
43 | 40 | }
|
44 | 41 | }
|
45 |
| - &.half-width { |
46 |
| - max-width: 50%; |
47 |
| - } |
48 |
| - .word-break-all; |
49 |
| - padding: 0 0px 10px 0; |
50 |
| - width: 100%; |
51 |
| - .new-project { |
52 |
| - margin-top: 2px; |
53 |
| - } |
54 | 42 | }
|
55 | 43 | .col-roles {
|
56 | 44 | display: flex;
|
57 | 45 | flex-wrap: wrap;
|
58 | 46 | padding-bottom: 5px;
|
59 |
| - @media(min-width: @screen-md-min) { |
60 |
| - padding: 0; |
61 |
| - } |
62 |
| - } |
63 |
| - .content-serviceaccount .form-new-role .col-roles { |
64 |
| - display: block; |
65 |
| - } |
66 |
| - .form-new-role { |
67 |
| - .col-roles { |
68 |
| - display: none; |
69 |
| - } |
70 |
| - @media(min-width: @screen-md-min) { |
71 |
| - .action-set { |
72 |
| - flex-direction: column; |
73 |
| - .col-add-role { |
74 |
| - align-self: flex-end; |
75 |
| - } |
76 |
| - } |
77 |
| - } |
78 |
| - } |
79 |
| - .input-name { |
80 |
| - margin-bottom: 5px; |
81 | 47 | }
|
82 | 48 | .item-row {
|
83 | 49 | border-bottom: 1px solid #ededed;
|
84 |
| - padding: 10px 10px 10px 5px; |
| 50 | + display: flex; |
| 51 | + flex-direction: column; |
| 52 | + padding: 10px 0; |
85 | 53 | @media(min-width: @screen-xs-min) {
|
| 54 | + flex-direction: row; |
86 | 55 | &.highlight-hover:hover {
|
87 | 56 | background-color: #fafafa;
|
88 | 57 | }
|
|
91 | 60 | .membership-empty {
|
92 | 61 | margin-top: 20px;
|
93 | 62 | }
|
94 |
| - .show-hidden-roles .action-set { |
95 |
| - display: flex; |
96 |
| - flex-direction: row; |
97 |
| - justify-content: flex-end; |
98 |
| - } |
99 |
| - .select-project { |
100 |
| - width: 150px; |
| 63 | + .show-hidden-roles { |
| 64 | + text-align: right; |
101 | 65 | }
|
102 | 66 | .select-role {
|
| 67 | + flex: 1 1 auto; |
| 68 | + .active { |
| 69 | + small { |
| 70 | + color: #c0e0f0; |
| 71 | + } |
| 72 | + } |
103 | 73 | small {
|
104 | 74 | color: #999;
|
105 | 75 | display: inline-block;
|
106 | 76 | line-height: 1.4;
|
107 | 77 | white-space: pre-line;
|
108 | 78 | }
|
109 |
| - .active { |
110 |
| - small { |
111 |
| - color: #c0e0f0; |
112 |
| - } |
113 |
| - } |
114 | 79 | }
|
115 | 80 | .service-account {
|
116 |
| - @media(max-width: @screen-sm-max) { |
117 |
| - flex-direction: column; // stack inputs because lack of horizontal space |
118 |
| - } |
119 |
| - .select-role { |
120 |
| - padding-bottom: 5px; |
121 |
| - width: auto; |
122 |
| - @media(min-width: @screen-md-min) { |
123 |
| - width: 150px; |
124 |
| - } |
| 81 | + flex-wrap: wrap; |
| 82 | + margin-bottom: -5px; |
| 83 | + .select-project, |
| 84 | + .select-service-account { |
| 85 | + margin-bottom: 5px; |
125 | 86 | }
|
126 | 87 | }
|
127 |
| - // FIXME (bpeterse): to update in layout.attrs & eliminate the workaround here |
128 |
| - // fix for collapse of flex items in IE |
129 |
| - // https://github.com/philipwalton/flexbugs#1-minimum-content-sizing-of-flex-items-not-honored |
130 |
| - [flex-collapse-fix], |
131 |
| - [flex], // fixes ie flex-direction: column collapse issue |
132 |
| - .col-add-role, |
133 |
| - .col-heading, |
134 |
| - .col-name, |
135 |
| - .item-row { |
136 |
| - flex-shrink: 0; |
137 |
| - flex-basis: auto; |
138 |
| - } |
139 | 88 | }
|
140 | 89 | // allow for taller select due to role help text
|
141 | 90 | .ui-select-bootstrap > .ui-select-choices {
|
|
0 commit comments