|
24 | 24 | /* Table */ |
25 | 25 | mat-table { |
26 | 26 |
|
27 | | - max-width: 720px; /* Match max width of table to max width of content above table */ |
28 | | - |
29 | 27 | /* Header row */ |
30 | 28 | mat-header-row { |
31 | 29 | display: none; |
|
84 | 82 | display: flex; |
85 | 83 | } |
86 | 84 |
|
87 | | - /** Cap width of project title to force wrapping of longer titles (mobile first) */ |
| 85 | + /** Cap width of project title to force wrapping of longer titles (mobile first ie this is modified for larger |
| 86 | + devices) */ |
88 | 87 | .project-title { |
89 | 88 | max-width: 425px; |
90 | 89 | } |
|
124 | 123 | } |
125 | 124 | } |
126 | 125 |
|
| 126 | +:host-context(release) { |
| 127 | + |
| 128 | + .release-tables { |
| 129 | + |
| 130 | + mat-table { |
| 131 | + max-width: 720px; /* Match max width of table to max width of content above table - smaller devices only, |
| 132 | + this is modified by media queries for larger devices */ |
| 133 | + } |
| 134 | + } |
| 135 | +} |
| 136 | + |
| 137 | +:host-context(project-release) { |
| 138 | + |
| 139 | + .release-tables { |
| 140 | + |
| 141 | + mat-table { |
| 142 | + max-width: 600px; /* Match max width of table to max width of content above table - smaller devices only, |
| 143 | + this is modified by media queries for larger devices */ |
| 144 | + } |
| 145 | + } |
| 146 | +} |
| 147 | + |
| 148 | +/** |
| 149 | + * Small tablet +, medium handset +, small window + and, large table - and medium window - (special case to allow action |
| 150 | + * buttons to sit to the right of dataset details - for main release table only, and not project detail release table) |
| 151 | + */ |
| 152 | +@media screen and (min-width: 600px) and (max-width: 1023px) { |
| 153 | + |
| 154 | + :host-context(release) { |
| 155 | + |
| 156 | + .release-tables { |
| 157 | + |
| 158 | + mat-table { |
| 159 | + |
| 160 | + max-width: unset; |
| 161 | + |
| 162 | + mat-row { |
| 163 | + position: relative; |
| 164 | + } |
| 165 | + |
| 166 | + .project-title { |
| 167 | + max-width: unset; |
| 168 | + padding-right: 250px; |
| 169 | + } |
| 170 | + |
| 171 | + .actions { |
| 172 | + position: absolute; |
| 173 | + align-self: flex-end; |
| 174 | + } |
| 175 | + } |
| 176 | + } |
| 177 | + } |
| 178 | +} |
| 179 | + |
127 | 180 | /** |
128 | 181 | * Large tablet landscape +, medium window + (> 1024) |
129 | 182 | */ |
130 | 183 | @media screen and (min-width: 1024px) { |
131 | 184 |
|
132 | 185 | .release-tables { |
133 | | - |
| 186 | + |
134 | 187 | mat-table { |
135 | | - max-width: 1440px; /* Snap width at large window width */ |
| 188 | + max-width: 1440px !important; /* Snap width at large window width, override (!important) host context specific |
| 189 | + max-widths set on smaller breakpoints */ |
136 | 190 |
|
137 | 191 | mat-header-row { |
138 | 192 | border-bottom: 1px solid $hca-gray-light; |
|
150 | 204 | } |
151 | 205 |
|
152 | 206 | .project-title { |
153 | | - font-size: 12px; /** Set back to xxs (set to 14px for mobile first) */ |
| 207 | + font-size: 12px; /** Set back to correct xxs sizing (default is overridden to 14px for mobile first) */ |
154 | 208 | } |
155 | 209 | } |
156 | 210 |
|
|
187 | 241 | */ |
188 | 242 | @media screen and (min-width: 1024px) and (max-width: 1108px) { |
189 | 243 |
|
190 | | - .release-tables { |
191 | | - mat-table { |
192 | | - .project-title { |
193 | | - min-width: 200px; |
194 | | - } |
| 244 | + :host-context(release) { |
| 245 | + |
| 246 | + .release-tables { |
| 247 | + |
| 248 | + mat-table { |
| 249 | + |
| 250 | + .project-title { |
| 251 | + min-width: 185px; |
| 252 | + } |
195 | 253 |
|
196 | | - .dataset { |
197 | | - min-width: 160px; |
| 254 | + .dataset { |
| 255 | + min-width: 140px; |
| 256 | + } |
198 | 257 | } |
199 | 258 | } |
200 | 259 | } |
201 | | - |
| 260 | +} |
| 261 | + |
| 262 | +/** |
| 263 | + * Custom range to handle case where long organ values overflow into development stage; reduce size of project title and |
| 264 | + * dataset to accommodate. |
| 265 | + */ |
| 266 | +@media screen and (min-width: 1024px) and (max-width: 1146px) { |
| 267 | + |
202 | 268 | /** Reduce dataset width further on project release page */ |
203 | 269 | :host-context(project-release) { |
| 270 | + |
204 | 271 | .release-tables { |
| 272 | + |
205 | 273 | mat-table { |
| 274 | + |
206 | 275 | .dataset { |
207 | 276 | min-width: 100px; |
208 | 277 | } |
| 278 | + |
| 279 | + mat-header-cell, mat-cell { |
| 280 | + padding: 0 8px; |
| 281 | + } |
209 | 282 | } |
210 | 283 | } |
211 | 284 | } |
|
0 commit comments