Skip to content

Commit

Permalink
Added table
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJltres committed Jul 16, 2020
1 parent 655d506 commit 93987f4
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,22 @@ This extension provides code snippets for [Fomantic-UI](https://fomantic-ui.com/
| `ui-steps-unstackable` | A step can prevent itself from stacking on mobile |
| `ui-steps-fluid` | A fluid step takes up the width of its container |
| `ui-steps-attached` | Steps can be attached to other elements |
| **Table** | |
| `ui-table` | A standard table |
| `ui-table-definition` | A table may be formatted to emphasize a first column that defines a rows content |
| `ui-table-structured` | A table can be formatted to display complex structured data |
| `ui-table-single-line` | A table can specify that its cell contents should remain on a single line, and not wrap. |
| `ui-table-fixed` | A table can use table-layout: fixed a special faster form of table rendering that does not resize table cells based on content. |
| `ui-table-stackable` | A table can specify how it stacks table content responsively |
| `ui-table-unstackable` | A table can specify how it stacks table content responsively |
| `ui-table-striped` | A table can stripe alternate rows of content with a darker color to increase contrast |
| `ui-table-celled` | A table may be divided each row into separate cells |
| `ui-table-basic` | A table can reduce its complexity to increase readability. |
| `ui-table-collapsing` | A table can be collapsing, taking up only as much space as its rows. |
| `ui-table-sortable` | A table may allow a user to sort contents by clicking on a table header. |
| `ui-table-padded` | A table may sometimes need to be more padded for legibility |
| `ui-table-compact` | A table may sometimes need to be more compact to make more rows visible at a time |
| **Text** | |
| `ui-text` | A text is always used inline and uses one color from the FUI color palette |

### JS
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"repository": {
"url": "https://github.com/fomantic/Fomantic-UI-vscode-snippets/"
},
"version": "0.25.0",
"version": "0.26.0",
"scripts": {
"start": "node ."
},
Expand Down
252 changes: 252 additions & 0 deletions snippets/fomantic-css.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -1597,6 +1597,258 @@
"</div>"
]
},
"Fomantic-UI Default Table": {
"prefix": "ui-table",
"description": "A standard table",
"body": [
"<table class=\"ui table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Definition Table": {
"prefix": "ui-table-definition",
"description": "A table may be formatted to emphasize a first column that defines a rows content",
"body": [
"<table class=\"ui definition table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Structured Table": {
"prefix": "ui-table-structured",
"description": "A table can be formatted to display complex structured data",
"body": [
"<table class=\"ui structured table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Single Line Table": {
"prefix": "ui-table-single-line",
"description": "A table can specify that its cell contents should remain on a single line, and not wrap.",
"body": [
"<table class=\"ui single line table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Fixed Table": {
"prefix": "ui-table-fixed",
"description": "A table can use table-layout: fixed a special faster form of table rendering that does not resize table cells based on content.",
"body": [
"<table class=\"ui fixed table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Stackable Table": {
"prefix": "ui-table-stackable",
"description": "A table can specify how it stacks table content responsively",
"body": [
"<table class=\"ui stackable table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Untackable Table": {
"prefix": "ui-table-unstackable",
"description": "A table can specify how it stacks table content responsively",
"body": [
"<table class=\"ui unstackable table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Striped Table": {
"prefix": "ui-table-striped",
"description": "A table can stripe alternate rows of content with a darker color to increase contrast",
"body": [
"<table class=\"ui striped table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Celled Table": {
"prefix": "ui-table-celled",
"description": "A table may be divided each row into separate cells",
"body": [
"<table class=\"ui celled table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Basic Table": {
"prefix": "ui-table-basic",
"description": "A table can reduce its complexity to increase readability.",
"body": [
"<table class=\"ui table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Collapsing Table": {
"prefix": "ui-table-collapsing",
"description": "A table can be collapsing, taking up only as much space as its rows.",
"body": [
"<table class=\"ui collapsing table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Sortable Table": {
"prefix": "ui-table-sortable",
"description": "A table may allow a user to sort contents by clicking on a table header.",
"body": [
"<table class=\"ui sortable table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Padded Table": {
"prefix": "ui-table-padded",
"description": "A table may sometimes need to be more padded for legibility",
"body": [
"<table class=\"ui padded table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Compact Table": {
"prefix": "ui-table-compact",
"description": "A table may sometimes need to be more compact to make more rows visible at a time",
"body": [
"<table class=\"ui compact table\">",
" <thead>",
" <tr>",
" <th>${1:Name}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td data-label=\"${1:Name}\">${2:James}</td>",
" </tr>",
" </tbody>",
"</table>"
]
},
"Fomantic-UI Default Text": {
"prefix": "ui-text",
"description": "A text is always used inline and uses one color from the FUI color palette",
Expand Down
Loading

0 comments on commit 93987f4

Please sign in to comment.