From 5b6064d36012baa99d1d49eae0fd2fc6c0d6cf12 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 7 Feb 2014 16:12:46 +0000 Subject: [PATCH] new et2_nowrap class to not wrap content of a single widget incl. label or children of a hbox --- etemplate/templates/default/etemplate2.css | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/etemplate/templates/default/etemplate2.css b/etemplate/templates/default/etemplate2.css index 1a73edfec6..ae40190cdf 100644 --- a/etemplate/templates/default/etemplate2.css +++ b/etemplate/templates/default/etemplate2.css @@ -1216,4 +1216,25 @@ div.ui-toolbar-menulist{ } .et2_toolbar_actionlist{ float:left; -} \ No newline at end of file +} + +/** + * Do not wrap content of a single widget incl. a label or children of a hbox. + * Taking into eg. select-account widget rendered as ul and prefixed with a label + * and maintaining some space between widgets. + */ +.et2_nowrap{ + white-space: nowrap; +} +ul.et2_nowrap, div.et2_nowrap{ + display: inline-block; +} +.et2_nowrap > *{ + padding-left: 5px; +} +.et2_nowrap > *:first-child{ + padding-left: 0; +} +.et2_nowrap > label > *{ + padding-left: 5px; +}