1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-10-23 17:18:51 +02:00
phorge-phorge/webroot/rsrc/css/fuel/fuel-grid.css
epriestley 57f9450bcf Improve desktop and mobile layouts for new "CommitGridView"
Summary:
Ref T13552. The current layout doesn't work particularly well on desktops or devices.

We have some device/desktop table layout code, but it isn't generic. We also have property list layout code, but it isn't generic either.

Provide generic layout elements ("Fuel", from "Phabricator UI Layout" to "PHUIL"?) and narrowly specialize their display behavior. Then swap the ListItemView stuff to use it.

Test Plan:
Saw slightly better responsive behavior:

{F7637457}

Maniphest Tasks: T13552

Differential Revision: https://secure.phabricator.com/D21418
2020-08-12 09:04:07 -07:00

29 lines
449 B
CSS

/**
* @provides fuel-grid-css
*/
.device-desktop .fuel-grid {
display: table;
table-layout: fixed;
}
.device-desktop .fuel-grid-body {
display: table-row-group;
}
.device-desktop .fuel-grid-row {
display: table-row;
}
.device-desktop .fuel-grid-cell {
display: table-cell;
vertical-align: top;
}
.device-desktop .fuel-grid-cell-count-2 > .fuel-grid-cell {
width: 50%;
}
.fuel-grid-property-list > .fuel-grid {
width: 100%;
}