diff options
Diffstat (limited to 'style/default.css')
-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; +} |