Skip to content

Commit

Permalink
Add fixed table variation
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Aug 13, 2015
1 parent d1bd78a commit 4d017c2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Expand Up @@ -14,6 +14,7 @@
- **Input** - Added `disabled` state for inputs #2694
- **Menu** - Appearance of `labeled icon menu` has been modified. Horizontal menus now have icons above text, and icons are slightly larger than before.
- **Menu** - Added new `tabular` menu types, `right tabular`, `bottom tabular`, added many new `tabular` menu variables for customizing
- **Table** - New `fixed` table variation added for use with `table-layout: fixed;`. This also supports "..." ellipsis when used with `single line` content

**[Enhancements](https://github.com/Semantic-Org/Semantic-UI/issues?q=is%3Aissue+milestone%3A2.1.0+is%3Aclosed)**
- **Breadcrumb** - Breadcrumb no longer receives vertical spacing by default. This may often cause vertical alignment issues when displayed next to other `inline-block` content.
Expand Down
19 changes: 19 additions & 0 deletions src/definitions/collections/table.less
Expand Up @@ -465,6 +465,21 @@
white-space: nowrap;
}

/*--------------
Fixed
---------------*/

.ui.fixed.table {
table-layout: fixed;
}

.ui.fixed.table th,
.ui.fixed.table td {
overflow: hidden;
text-overflow: ellipsis;
}


/*--------------
Hoverable
---------------*/
Expand Down Expand Up @@ -570,6 +585,10 @@
Single Line
---------------*/

.ui.table[class*="single line"],
.ui.table [class*="single line"] {
white-space: nowrap;
}
.ui.table[class*="single line"],
.ui.table [class*="single line"] {
white-space: nowrap;
Expand Down

0 comments on commit 4d017c2

Please sign in to comment.