From d22fd667d09c2c159daed9d7f1ba4f705fec9c74 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 7 Sep 2016 16:32:06 +0200 Subject: [sysconfig] Improve design, hide more controls in location-specific view, get rid of JS hack for ellipsis in tables (by adding a HTML/CSS hack for it :)) --- style/default.css | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'style') diff --git a/style/default.css b/style/default.css index 06833121..470af96e 100644 --- a/style/default.css +++ b/style/default.css @@ -133,20 +133,6 @@ body { background-color: #eee; } -.slx-ellipsis { - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - max-width: 240px; -} - -.slx-dyn-ellipsis { - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - display: block; -} - .slx-space { margin-top: 1em; margin-bottom: 1em; @@ -556,3 +542,17 @@ it only applies if they're in a container that has the checkbox class */ font-family: "Glyphicons Halflings"; content: "\E013"; } + +/* Hack to get ellipsis in containers without absolute width */ +/* Use:
my text bla bla
*/ + +table.slx-ellipsis { + width:100%; + table-layout: fixed; +} + +table.slx-ellipsis td { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} -- cgit v1.2.3-55-g7522