/*
 * Compact grid density, independent of the theme colour.
 *
 * Active when index.php puts the class "ui1-compact" on <body> (per-device cookie
 * ui1DensityCookie, switched in the gear menu). Triton rows are 33px high (7px + 19px
 * line + 6px + border), Neptune rows 25px; these rules bring Triton grids down to about
 * 25px so a grid shows as many rows as under Neptune.
 *
 * Only grids are affected. The left menu is a grid as well (.menugrid) and keeps its
 * size, since it is the main touch target.
 */

body.ui1-compact .x-grid:not(.menugrid) .x-grid-item {
	line-height: 17px
}

body.ui1-compact .x-grid:not(.menugrid) .x-grid-cell-inner {
	padding-top: 4px;
	padding-bottom: 3px;
	padding-left: 6px;
	padding-right: 6px
}

body.ui1-compact .x-grid:not(.menugrid) .x-grid-cell-inner-treecolumn {
	padding-left: 6px
}

body.ui1-compact .x-grid:not(.menugrid) .x-grid-cell-inner-row-numberer {
	padding-left: 3px;
	padding-right: 5px
}

/* icon columns: keep the 16-18px icons, trim the space around them */
body.ui1-compact .x-grid:not(.menugrid) .x-grid-cell-inner-action-col {
	padding-top: 2px;
	padding-bottom: 2px
}

body.ui1-compact .x-grid:not(.menugrid) .x-grid-cell-inner-row-expander {
	padding-top: 4px;
	padding-bottom: 4px
}

/* check columns: the 18px checkbox glyph would make the row 1-2px taller than the text rows */
body.ui1-compact .x-grid:not(.menugrid) .x-grid-cell-inner-checkcolumn {
	padding-top: 3px;
	padding-bottom: 2px
}

/* tree columns: Triton sizes the elbow and node icons for a 32px row */
body.ui1-compact .x-grid:not(.menugrid) .x-tree-elbow-img,
body.ui1-compact .x-grid:not(.menugrid) .x-tree-icon {
	height: 24px;
	line-height: 24px
}

body.ui1-compact .x-grid:not(.menugrid) .x-tree-icon,
body.ui1-compact .x-grid:not(.menugrid) .x-tree-elbow-img,
body.ui1-compact .x-grid:not(.menugrid) .x-tree-checkbox {
	margin-top: -4px;
	margin-bottom: -3px
}

body.ui1-compact .x-grid:not(.menugrid) .x-column-header-inner {
	padding-top: 4px;
	padding-bottom: 3px;
	padding-left: 6px;
	padding-right: 6px
}
