diff options
author | Simon Rettberg | 2016-09-07 16:32:06 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-07 16:32:06 +0200 |
commit | d22fd667d09c2c159daed9d7f1ba4f705fec9c74 (patch) | |
tree | ac76f4e0c2219b569ce959f690d4a512880c1676 /style | |
parent | [roomplanner] Sanity checks/fixups when saving computers, more user feedback,... (diff) | |
download | slx-admin-d22fd667d09c2c159daed9d7f1ba4f705fec9c74.tar.gz slx-admin-d22fd667d09c2c159daed9d7f1ba4f705fec9c74.tar.xz slx-admin-d22fd667d09c2c159daed9d7f1ba4f705fec9c74.zip |
[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 :))
Diffstat (limited to 'style')
-rw-r--r-- | style/default.css | 28 |
1 files changed, 14 insertions, 14 deletions
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: <table class="slx-ellipsis"><tr><td>my text bla bla</td></tr></table> */ + +table.slx-ellipsis { + width:100%; + table-layout: fixed; +} + +table.slx-ellipsis td { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} |