- 计算机
- Sub Item
- Sub Item
- Sub Item
- 物理
- 化学
Open Textboooks
愿景和目标
开放教科书项目旨在建立共建共享、开放开阔的教科书 。
开放教科书项目旨在建立共建共享、开放开阔的教科书 ,中文开放教科书项目由开放教育反应堆发起。它一般支持 Creative Commons License 和 GNU Freed Documentation License 协议。任何人不需作者的许可即可以浏览、下载、编辑或打印教科书的内容。 ⌘ + Space in laborum.1
开放 共建 共享 是开放教科书的主要特点。
学科
- 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. ↩