From 5413fb2a2a95fe67b782e6cd18a90ce52ed839f8 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 10 Sep 2014 16:22:45 +0000 Subject: [PATCH] Better sub-grid indenting --- pixelegg/css/pixelegg.css | 11 +++++++++++ pixelegg/less/etemplate2.less | 13 +++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/pixelegg/css/pixelegg.css b/pixelegg/css/pixelegg.css index ddd827d99e..dc3a4fcefe 100644 --- a/pixelegg/css/pixelegg.css +++ b/pixelegg/css/pixelegg.css @@ -1159,6 +1159,17 @@ background-image: url(../images/selectarrowdown.png); background-size: 16px 16px; } + /** + * Grid / nextmatch Hierarchy + */ + /** + * This class' margin-right is used to line up columns at each indent level + * Classes level_# are created programmatically with margin-right * depth + * Margin-right = -(indent + border) + */ + .indentation { + margin-right: -15px; + } /* End of hierarchy */ /* Mangled link-to widget inside a nextmatch - used for DnD uploads */ .et2_nextmatch * .et2_link_to { diff --git a/pixelegg/less/etemplate2.less b/pixelegg/less/etemplate2.less index c108132797..79c93272bb 100755 --- a/pixelegg/less/etemplate2.less +++ b/pixelegg/less/etemplate2.less @@ -1084,8 +1084,17 @@ button#admin-categories-index_add { background-image: url(../images/selectarrowdown.png); background-size: 16px 16px; } - - +/** + * Grid / nextmatch Hierarchy + */ +/** + * This class' margin-right is used to line up columns at each indent level + * Classes level_# are created programmatically with margin-right * depth + * Margin-right = -(indent + border) + */ +.indentation { + margin-right: -15px; +} /* End of hierarchy */