- Item
- Sub Item
- Sub Item
- Sub Item
- Item
- Item
Tawian frontend
Components
Links and Typo
Lead ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet adipisicing elit, sed do eiusmod italic incididunt ut bold et dolore magna aliqua. Ut enim ad highlight minim veniam, deletion quis nostrud exercitation insertation ullamco laboris underlined nisi ut aliquip ex small ea commodo consequat abbr. Duis aute irure dolor in reprehenderit ⌘ + Space in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.1
Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate
List
- One
- Two
- Three
- Three One
- Three Two
- Four
Blockquote
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates quis cumque similique voluptas facilis fugit inventore odit, quidem et ab, quos, blanditiis iure! Ipsum nostrum corrupti architecto fugit, culpa expedita. someone
Code
You can use inline code
, inline sample output or code blocks. Use .scroll
to prevent code wrapping.
while true; do { echo -e "HTTP/1.1 200 OK\r\n"; cat index.html; } | nc -l 8080; done
3.00 real 0.00 user 0.00 sys
$ exit
Horizontal Rule
Form
Inline Form
Horizontal Form (default on larger screens)
Stateful Form
Help Block
Disabled
Readonly
Required
Vertical Form (default on smaller screens)
File Input with Dropzones, e.g. react-dropzone
Table
states | param | param | param |
---|---|---|---|
cell states | 90 | 80 | 70 |
normal state | 60 | 85 | 80 |
row state | 80 | 65 | 60 |
classes | param | param | param |
---|---|---|---|
narrow | ✗ | ✗ | ✔ |
striped | ✔ | ✔ | ✔ |
/ | ✔ | ✗ | ✔ |
/ | ✔ | ✔ | ✗ |
/ | ✔ | ✗ | ✔ |
/ | ✔ | ✔ | ✗ |
classes | param | param | param |
---|---|---|---|
wide | ✗ | ✗ | ✔ |
hoverable | ✔ | ✗ | ✔ |
/ | ✔ | ✔ | ✗ |
List Group
- Cras justo odio
- DISABLED
- Morbi leo risus Tag
- ACTIVE
- Porta ac consectetur
Progress bar
.narrow
For advanced progress bars consider progressbar.js.
Buttons
Button Groups
Loading Indicator
Tags
Tags have different states like normal and success and info and warning and error.
Icons from bytesize-icons
The icons don't work in IE / Edge. Consider inlining the svg file for Edge or svg4everybody for IE.
Yay
Can be sized, e.g. normal, medium or large.
Tooltips naive version, might be out of screen
Cards
echo "and a third"
Alerts
Default message
Info message
Warning message
Success message
Error message
Images and Figures
You can use inline.
.full-width
Figure with Caption
Details & Summary
Hidden Text Sample
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum molestiae et dicta, vero alias ab tempore obcaecati tempora odit voluptates. Eum inventore omnis, ullam rerum tenetur optio quasi a totam!
Hidden Code Sample
$ time sleep 33.00 real 0.00 user 0.00 sys
$ exit
Toggleable Cards
Card Header
3.00 real 0.00 user 0.00 sys
$ exit
Basic
Use .container
to centralize the main content.
Use .site-header
, .site-main
and .site-footer
for the main sectioning elements.
.site-header
contains .site-nav
which is not responsive by default but can be appended by .responsive-nav
to collapse and show a hamburger icon on smaller screens. It can carry .responsive-nav-animated
to add a sliding animation to the nav.
Grid
Inline Grid
Modifiers
.grid
modifiers
- To change spacing use
grid-narrow
orgrid-wide
- To align items with align-items use
grid-top
: To topgrid-middle
: To middlegrid-bottom
: To bottomgrid-stretch
: Stretch itemsgrid-baseline
: To baseline
- To layout contents with justify-content use
grid-left
: To leftgrid-center
: To centergrid-right
: To rightgrid-between
: Add spaces between itemsgrid-around
: Add spaces around items
.cell
modifiers
grid-top
: To topgrid-middle
: To middlegrid-bottom
: To bottom
cell-1
: Set item width to 8.3% of parentcell-2
: Set item width to 16.7% of parentcell-3
: Set item width to 25% of parentcell-4
: Set item width to 33% of parentcell-5
: Set item width to 41.7% of parentcell-6
: Set item width to 50% of parentcell-7
: Set item width to 58.3% of parentcell-8
: Set item width to 66.7% of parentcell-9
: Set item width to 75% of parentcell-10
: Set item width to 83.3% of parentcell-11
: Set item width to 91.7% of parentcell-12
: Set item width to 100% of parent
-
Example footnote text. ↩