diff --git a/docs/customization/table.html b/docs/customization/table.html index d69e9c0..038de4e 100644 --- a/docs/customization/table.html +++ b/docs/customization/table.html @@ -28,6 +28,8 @@ table#carded td {display: block;border: 0; border-bottom: 1px solid #bdbdbd; text-align: right; } table#carded td:before { content: attr(data-label); float: left; font-weight: 700; } table#carded td:last-child { border-bottom: 0; } .border-fix > td, .border-fix > th { border-top: 0; } + td:first-child, td:last-child { font-family: monospace, monospace; } + td:first-child::before, td:last-child::before { font-family: -apple-system, BlinkMacSystemFont,"Segoe UI","Roboto", "Droid Sans","Helvetica Neue", Helvetica, Arial, sans-serif;} sup a { text-decoration: none; padding: 2px;} @@ -63,14 +65,126 @@

Presenting information the right way is very important, especially so when dealing with large amounts of data. The table module reinvents tabular data presentation, using modern styling and responsiveness to help make tables fun again for all users no matter the device size. Tables can be either vertical or horizontal, both collapsing to a card view on smaller devices, so that they are easier to view properly. Horizontal tables are also flexible, allowing you to take as little space as possible, while still providing your users with a pleasant way to view their data. Finally, like in most CSS frameworks nowadays, you can stripe your tables to make reading them slightly less tiresome for your users' eyes. Note that all of the table variants are fully accessible.


-

Quick start

-

To use the table module, simply include the link to the flavor you are using and start writing your HTML page as usual. One suggestion we will make is to add the following line inside your HTML page's <head> to utilize the viewport meta tag:


-
<meta name="viewport" content="width=device-width, initial-scale=1">

+

Quick start

+

To customize the table module, duplicate an existing flavor file (we suggest you use the mini-default.scss flavor file) and use this page's variable tables and mixins as a reference to change only the values you need. Remember to compile your flavor file (not the module's partial file) using a Sass preprocessor (we highly recommend using sass-autocompile if you are working with Atom).


- + +
+
+
+

Table styling

+
+

The table module contains definitions for tables and table variants.


+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Variables
VariableTypeDescriptionSample value
$table-border-styleBorderBorder style for <table> elements1px solid #bdbdbd
$table-border-radiusBorder radiusBorder radius for <table> elements2px
$table-marginMarginMargin for <table> elements0 auto
$table-box-shadowBox shadowBox shadow for <table> elements0 1px 3px rgba(0,0,0, 0.1)
$table-caption-font-sizeFont sizerFont size for <caption> elements1.5em
$table-caption-marginMarginMargin for <caption> elements8px
$table-row-paddingPaddingPadding for <tr> elements8px
$table-column-paddingPaddingPadding for <td> and <th> elements10px
$table-head-back-colorColorBackground color for <th> elements#e0e0e0
$table-head-fore-colorColorText color for <th> elements$fore-color
$table-body-back-colorColorBackground color for <td> elements#fafafa
$table-body-fore-colorColorText color for <td> elements$fore-color
$table-mobile-breakpointBreakpointBreakpoint for <table> elements' mobile view767px
$table-mobile-card-spacingMargin bottomBottom margin for <table> elements' cards in mobile view10px
$table-mobile-card-labelStringAttribute used to replace headers for <table> elements in mobile view'data-label'
$table-mobile-label-font-weightFont weightFont weight for the labels of <table> elements' cards in mobile view700
$include-horizontal-tableLogicalEnables horizontal <table> elements1true
$table-horizontal-nameStringClass name for horizontal <table> elements1'horizontal'
$table-horizontal-breakpointBreakpointBreakpoint for horizontal <table> elements' mobile view1768px
$table-not-responsive-nameStringClass name for preset <table> elements'preset'
$table-striped-nameStringClass name for striped <table> elements'striped'
$table-striped-alt-body-back-colorColorSecondary background color for striped <table> elements#eeeeee

+
+
+

Notes:

+
    +
  1. The values of $table-horizontal-name and $table-horizontal-breakpoint will only be used if $include-horizontal-table is set to true.
  2. +
+
+
+
+
+

If you want to learn more about customizing mini.css, go back to the customization page or choose a module from the top menu to see its documentation.

diff --git a/docs/v2/DEVLOG.md b/docs/v2/DEVLOG.md index dc21e3c..6d89ec2 100644 --- a/docs/v2/DEVLOG.md +++ b/docs/v2/DEVLOG.md @@ -965,3 +965,4 @@ - Documented `navigation` module's customization page. - Resolved #63, replacing the `flex-grow` and `flex-shrink` properties with the `flex` shorthand. Everything should display properly across browsers now. +- Fully documented `input_control` and `table` modules in terms of customization.