From 637a418a6f31da0cc87e0ec1128544bbe15d361f Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Tue, 14 Sep 2021 13:03:55 +0800 Subject: [PATCH] Format markdown table --- awk.md | 24 +- bash.md | 156 ++--- chmod.md | 28 +- cpp.md | 70 +- cron.md | 26 +- css.md | 188 +++--- docker.md | 44 +- emacs.md | 358 +++++----- emoji.md | 1702 ++++++++++++++++++++++++------------------------ find.md | 26 +- golang.md | 20 +- graphql.md | 24 +- grep.md | 70 +- html.md | 170 ++--- java.md | 36 +- json.md | 18 +- markdown.md | 18 +- mime.md | 146 ++--- mitmproxy.md | 180 ++--- mysql.md | 76 +-- nc.md | 26 +- neo4j.md | 26 +- netstat.md | 46 +- numpy.md | 120 ++-- php.md | 32 +- postgres.md | 126 ++-- python.md | 16 +- quickref.md | 14 +- redis.md | 282 ++++---- regex.md | 530 +++++++-------- resolutions.md | 128 ++-- screen.md | 84 +-- sed.md | 56 +- tmux.md | 112 ++-- vim.md | 312 ++++----- xpath.md | 76 +-- yaml.md | 70 +- 37 files changed, 2718 insertions(+), 2718 deletions(-) diff --git a/awk.md b/awk.md index 1b6f21b..c3fd4bd 100644 --- a/awk.md +++ b/awk.md @@ -21,7 +21,7 @@ Getting started {.cols-3} $ awk -F: '{print $1, $NF}' /etc/passwd ``` ---- -|- | - | - | +| - | - | - | |---|---------------|---------------------------| | | `-F:` | Colon as a separator | | | `{...}` | Awk program | @@ -280,10 +280,10 @@ Awk Operators {.cols-3} | `$1 ~ /regex/` | Field matches | | `$1 !~ /regex/` | Field not matches | #### More conditions -| - | - | -|--------------------------|-----| +| - | - | +|------------------------|-----| | `($2 <= 4 || $3 < 20)` | Or | -| `($1 == 4 && $3 < 20)` | And | +| `($1 == 4 && $3 < 20)` | And | ### Operations #### Arithmetic operations @@ -745,14 +745,14 @@ Miscellaneous {.cols-3} {.cols-3 .style-none} ### Escape Sequences -| - | - | -|--------|---------------------| -| `\b` | Backspace | -| `\f` | Form feed | -| `\n` | Newline (line feed) | -| `\r` | Carriage return | -| `\t` | Horizontal tab | -| `\v` | Vertical tab | +| - | - | +|------|---------------------| +| `\b` | Backspace | +| `\f` | Form feed | +| `\n` | Newline (line feed) | +| `\r` | Carriage return | +| `\t` | Horizontal tab | +| `\v` | Vertical tab | ### Run script diff --git a/bash.md b/bash.md index 1d0cad9..f1df03e 100644 --- a/bash.md +++ b/bash.md @@ -67,18 +67,18 @@ Multi-line comments use `:'` to open and `'` to close ### Arguments {.row-span-2} -| Expression | Description | -| --- | --- | -| `$1` … `$9`| Parameter 1 ... 9 | -| `$0` | Name of the script itself | -| `$1` | First argument | -| `${10}` | Positional parameter 10 | -| `$#` | Number of arguments | -| `$$` | Process id of the shell | -| `$*` | All arguments | -| `$@` | All arguments, starting from first | -| `$-` | Current options | -| `$_` | Last argument of the previous command | +| Expression | Description | +|-------------|---------------------------------------| +| `$1` … `$9` | Parameter 1 ... 9 | +| `$0` | Name of the script itself | +| `$1` | First argument | +| `${10}` | Positional parameter 10 | +| `$#` | Number of arguments | +| `$$` | Process id of the shell | +| `$*` | All arguments | +| `$@` | All arguments, starting from first | +| `$-` | Current options | +| `$_` | Last argument of the previous command | See: [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables). @@ -116,7 +116,7 @@ echo {A,B}.js --- | Expression | Description | -| ---------- | ------------------- | +|------------|---------------------| | `{A,B}` | Same as `A B` | | `{A,B}.js` | Same as `A.js B.js` | | `{1..5}` | Same as `1 2 3 4 5` | @@ -143,7 +143,7 @@ Bash Parameter expansions {.cols-3} ### Syntax {.row-span-2} | Code | Description | -| ----------------- | ------------------- | +|-------------------|---------------------| | `${FOO%suffix}` | Remove suffix | | `${FOO#prefix}` | Remove prefix | | `${FOO%%suffix}` | Remove long suffix | @@ -154,20 +154,20 @@ Bash Parameter expansions {.cols-3} | `${FOO/#from/to}` | Replace prefix | #### Substrings | Expression | Description | -| --------------- | ------------------------------ | +|-----------------|--------------------------------| | `${FOO:0:3}` | Substring _(position, length)_ | | `${FOO:(-3):3}` | Substring from the right | #### Length | Expression | Description | -| ---------- | ---------------- | +|------------|------------------| | `${#FOO}` | Length of `$FOO` | #### Default values -| Expression | Description | -| ----------------- | -------------------------------------------------------- | -| `${FOO:-val}` | `$FOO`, or `val` if unset | -| `${FOO:=val}` | Set `$FOO` to `val` if unset | -| `${FOO:+val}` | `val` if `$FOO` is set | -| `${FOO:?message}` | Show message and exit if `$FOO` is unset | +| Expression | Description | +|-------------------|------------------------------------------| +| `${FOO:-val}` | `$FOO`, or `val` if unset | +| `${FOO:=val}` | Set `$FOO` to `val` if unset | +| `${FOO:+val}` | `val` if `$FOO` is set | +| `${FOO:?message}` | Show message and exit if `$FOO` is unset | @@ -274,17 +274,17 @@ declare -a Numbers=(1 2 3 4 5 6) ### Indexing -| - | - | -|--------------------|-----------------------| -| `${Fruits[0]}` | First element | -| `${Fruits[-1]}` | Last element | -| `${Fruits[*]}` | All elements | -| `${Fruits[@]}` | All elements | -| `${#Fruits[@]}` | Number of all | -| `${#Fruits}` | Length of 1st | -| `${#Fruits[3]}` | Length of nth | -| `${Fruits[@]:3:2}` | Range | -| `${!Fruits[@]}` | Keys of all | +| - | - | +|--------------------|---------------| +| `${Fruits[0]}` | First element | +| `${Fruits[-1]}` | Last element | +| `${Fruits[*]}` | All elements | +| `${Fruits[@]}` | All elements | +| `${#Fruits[@]}` | Number of all | +| `${#Fruits}` | Length of 1st | +| `${#Fruits[3]}` | Length of nth | +| `${Fruits[@]:3:2}` | Range | +| `${!Fruits[@]}` | Keys of all | @@ -384,32 +384,32 @@ Bash Conditionals {.cols-3} ### Integer conditions -| Condition | Description | -| --- | --- | -| `[[ NUM -eq NUM ]]` | Equal | -| `[[ NUM -ne NUM ]]` | Not equal | -| `[[ NUM -lt NUM ]]` | Less than | -| `[[ NUM -le NUM ]]` | Less than or equal | -| `[[ NUM -gt NUM ]]` | Greater than | -| `[[ NUM -ge NUM ]]` | Greater than or equal | -| `(( NUM < NUM ))` | Less than | -| `(( NUM <= NUM ))` | Less than or equal | -| `(( NUM > NUM ))` | Greater than | -| `(( NUM >= NUM ))` | Greater than or equal | +| Condition | Description | +|---------------------|---------------------------------------------| +| `[[ NUM -eq NUM ]]` | Equal | +| `[[ NUM -ne NUM ]]` | Not equal | +| `[[ NUM -lt NUM ]]` | Less than | +| `[[ NUM -le NUM ]]` | Less than or equal | +| `[[ NUM -gt NUM ]]` | Greater than | +| `[[ NUM -ge NUM ]]` | Greater than or equal | +| `(( NUM < NUM ))` | Less than | +| `(( NUM <= NUM ))` | Less than or equal | +| `(( NUM > NUM ))` | Greater than | +| `(( NUM >= NUM ))` | Greater than or equal | ### String conditions -| Condition | Description | -| --- | --- | -| `[[ -z STR ]]` | Empty string | -| `[[ -n STR ]]` | Not empty string | -| `[[ STR == STR ]]` | Equal | -| `[[ STR = STR ]]` | Equal (Same above) | -| `[[ STR < STR ]]` | Less than _(ASCII)_ | -| `[[ STR > STR ]]` | Greater than _(ASCII)_ | -| `[[ STR != STR ]]` | Not Equal | -| `[[ STR =~ STR ]]` | Regexp | +| Condition | Description | +|--------------------|-----------------------------| +| `[[ -z STR ]]` | Empty string | +| `[[ -n STR ]]` | Not empty string | +| `[[ STR == STR ]]` | Equal | +| `[[ STR = STR ]]` | Equal (Same above) | +| `[[ STR < STR ]]` | Less than _(ASCII)_ | +| `[[ STR > STR ]]` | Greater than _(ASCII)_ | +| `[[ STR != STR ]]` | Not Equal | +| `[[ STR =~ STR ]]` | Regexp | @@ -470,29 +470,29 @@ fi ### File conditions {.row-span-2} -| Condition | Description | -| --- | --- | -| `[[ -e FILE ]]` | Exists | -| `[[ -d FILE ]]` | Directory | -| `[[ -f FILE ]]` | File | -| `[[ -h FILE ]]` | Symlink | -| `[[ -s FILE ]]` | Size is > 0 bytes | -| `[[ -r FILE ]]` | Readable | -| `[[ -w FILE ]]` | Writable | -| `[[ -x FILE ]]` | Executable | -| `[[ f1 -nt f2 ]]` | f1 newer than f2 | -| `[[ f1 -ot f2 ]]` | f2 older than f1 | -| `[[ f1 -ef f2 ]]` | Same files | +| Condition | Description | +|-------------------|----------------------------------------| +| `[[ -e FILE ]]` | Exists | +| `[[ -d FILE ]]` | Directory | +| `[[ -f FILE ]]` | File | +| `[[ -h FILE ]]` | Symlink | +| `[[ -s FILE ]]` | Size is > 0 bytes | +| `[[ -r FILE ]]` | Readable | +| `[[ -w FILE ]]` | Writable | +| `[[ -x FILE ]]` | Executable | +| `[[ f1 -nt f2 ]]` | f1 newer than f2 | +| `[[ f1 -ot f2 ]]` | f2 older than f1 | +| `[[ f1 -ef f2 ]]` | Same files | ### More conditions -| Condition | Description | -| -------------------- | ------------------------ | +| Condition | Description | +|----------------------|----------------------| | `[[ -o noclobber ]]` | If OPTION is enabled | -| `[[ ! EXPR ]]` | Not | -| `[[ X && Y ]]` | And | -| `[[ X || Y ]]` | Or | +| `[[ ! EXPR ]]` | Not | +| `[[ X && Y ]]` | And | +| `[[ X || Y ]]` | Or | ### logical and, or @@ -733,14 +733,14 @@ Bash History {.cols-2} ### Commands | Command | Description | -| --------------------- | ----------------------------------------- | +|-----------------------|-------------------------------------------| | `history` | Show history | | `shopt -s histverify` | Don't execute expanded result immediately | ### Expansions | Expression | Description | -| ------------ | ---------------------------------------------------- | +|--------------|------------------------------------------------------| | `!$` | Expand last parameter of most recent command | | `!*` | Expand all parameters of most recent command | | `!-n` | Expand `n`th most recent command | @@ -750,7 +750,7 @@ Bash History {.cols-2} ### Operations | Code | Description | -| -------------------- | --------------------------------------------------------------------- | +|----------------------|-----------------------------------------------------------------------| | `!!` | Execute last command again | | `!!:s///` | Replace first occurrence of `` to `` in most recent command | | `!!:gs///` | Replace all occurrences of `` to `` in most recent command | @@ -762,7 +762,7 @@ Bash History {.cols-2} ### Slices | Code | Description | -| -------- | ---------------------------------------------------------------------------------------- | +|----------|------------------------------------------------------------------------------------------| | `!!:n` | Expand only `n`th token from most recent command (command is `0`; first argument is `1`) | | `!^` | Expand first argument from most recent command | | `!$` | Expand last token from most recent command | @@ -905,7 +905,7 @@ fi ### Special variables {.row-span-2} | Expression | Description | -| ---------- | ---------------------------- | +|------------|------------------------------| | `$?` | Exit status of last task | | `$!` | PID of last background task | | `$$` | PID of shell | diff --git a/chmod.md b/chmod.md index ad86947..828491b 100644 --- a/chmod.md +++ b/chmod.md @@ -43,15 +43,15 @@ Chmod Generator allows you to quickly and visually generate permissions in numer ### Common Permissions | Command | s | Meaning | |---------|-----------|------------------------------| -|`400` | r-------- | Readable by owner only | -|`500` | r-x------ | Avoid Changing | -|`600` | rw------- | Changeable by user | -|`644` | rw-r--r-- | Read and change by user | -|`660` | rw-rw---- | Changeable by user and group | -|`700` | rwx------ | Only user has full access | -|`755` | rwxr-xr-x | Only changeable by user | -|`775` | rwxrwxr-x | Sharing mode for a group | -|`777` | rwxrwxrwx | Everybody can do everything | +| `400` | r-------- | Readable by owner only | +| `500` | r-x------ | Avoid Changing | +| `600` | rw------- | Changeable by user | +| `644` | rw-r--r-- | Read and change by user | +| `660` | rw-rw---- | Changeable by user and group | +| `700` | rwx------ | Only user has full access | +| `755` | rwxr-xr-x | Only changeable by user | +| `775` | rwxrwxr-x | Sharing mode for a group | +| `777` | rwxrwxrwx | Everybody can do everything | ### Explains @@ -89,11 +89,11 @@ d rwx r-x r-x ### Objects | Who (abbr.) | Meaning | -|--------------|--------------------| -| `u` | `U`ser | -| `g` | `G`roup | -| `o` | `O`thers | -| `a` | `A`ll, same as ugo | +|-------------|--------------------| +| `u` | `U`ser | +| `g` | `G`roup | +| `o` | `O`thers | +| `a` | `A`ll, same as ugo | {.show-header} diff --git a/cpp.md b/cpp.md index e05ae32..2cc058a 100644 --- a/cpp.md +++ b/cpp.md @@ -55,15 +55,15 @@ std::cout << age; // Print 25 ### Primitive Data Types -| Data Type | Size | Range | -|-----------|---------|---------------------| -| `int` | 4 bytes | -2^31^ ^to^ 2^31^-1 | -| `float` | 4 bytes |_N/A_ | -| `double` | 8 bytes |_N/A_ | -| `char` | 1 byte | -128 ^to^ 127 | -| `bool` | 1 byte | true / false | -| `void` |_N/A_ |_N/A_ | -| `wchar_t` | 2 ^or^ 4 bytes| 1 wide character | +| Data Type | Size | Range | +|-----------|----------------|---------------------| +| `int` | 4 bytes | -2^31^ ^to^ 2^31^-1 | +| `float` | 4 bytes | _N/A_ | +| `double` | 8 bytes | _N/A_ | +| `char` | 1 byte | -128 ^to^ 127 | +| `bool` | 1 byte | true / false | +| `void` | _N/A_ | _N/A_ | +| `wchar_t` | 2 ^or^ 4 bytes | 1 wide character | {.show-header} @@ -326,8 +326,8 @@ else #### Assignment Operators -| Example | Equivalent to | -|----------|-------------------------| +| Example | Equivalent to | +|----------|-----------------| | `a += b` | _Aka_ a = a + b | | `a -= b` | _Aka_ a = a - b | | `a *= b` | _Aka_ a = a * b | @@ -336,22 +336,22 @@ else #### Logical Operators -| Example | Meaning | -|----------------------|------------------------| -| `exp1 && exp2` | Both are true _(AND)_ | -| `exp1 || exp2` | Either is true _(OR)_ | -| `!exp` | `exp` is false _(NOT)_ | +| Example | Meaning | +|----------------|------------------------| +| `exp1 && exp2` | Both are true _(AND)_ | +| `exp1 || exp2` | Either is true _(OR)_ | +| `!exp` | `exp` is false _(NOT)_ | #### Bitwise Operators -| Operator | Description | -|--------------|-------------------------| -| `a & b` | Binary AND | -| `a | b` | Binary OR | -| `a ^ b` | Binary XOR | -| `a ~ b` | Binary One's Complement | -| `a << b` | Binary Shift Left | -| `a >> b` | Binary Shift Right | +| Operator | Description | +|----------|-------------------------| +| `a & b` | Binary AND | +| `a | b` | Binary OR | +| `a ^ b` | Binary XOR | +| `a ~ b` | Binary One's Complement | +| `a << b` | Binary Shift Left | +| `a >> b` | Binary Shift Right | ### Ternary Operator @@ -693,17 +693,17 @@ Miscellaneous {.cols-3} | Escape Sequences | Characters | |------------------|-----------------------| -| `\b` | Backspace | -| `\f` | Form feed | -| `\n` | Newline | -| `\r` | Return | -| `\t` | Horizontal tab | -| `\v` | Vertical tab | -| `\\` | Backslash | -| `\'` | Single quotation mark | -| `\"` | Double quotation mark | -| `\?` | Question mark | -| `\0` | Null Character | +| `\b` | Backspace | +| `\f` | Form feed | +| `\n` | Newline | +| `\r` | Return | +| `\t` | Horizontal tab | +| `\v` | Vertical tab | +| `\\` | Backslash | +| `\'` | Single quotation mark | +| `\"` | Double quotation mark | +| `\?` | Question mark | +| `\0` | Null Character | ### Keywords {.col-span-2 .row-span-2} diff --git a/cron.md b/cron.md index 1986bfb..0988383 100644 --- a/cron.md +++ b/cron.md @@ -53,13 +53,13 @@ Min Hour Day Mon Weekday ### Examples -| Example | Description | -|----------------|------------------------------------------------------| -| `*/15 * * * *` | Every 15 mins | -| `0 * * * *` | Every hour | -| `0 */2 * * *` | Every 2 hours | -| `15 2 * * *` | At 2:15AM of every day | -| `15 2 * * ?` | At 2:15AM of every day | +| Example | Description | +|----------------|------------------------| +| `*/15 * * * *` | Every 15 mins | +| `0 * * * *` | Every hour | +| `0 */2 * * *` | Every 2 hours | +| `15 2 * * *` | At 2:15AM of every day | +| `15 2 * * ?` | At 2:15AM of every day | | `10 9 * * 5` | At 9:10AM of every Friday | | `0 0 * * 0` | At midnight of every Sunday | @@ -89,17 +89,17 @@ Min Hour Day Mon Weekday ### Crontab command -| - | - | -|------|-------------------------------------------------------------------------| -| `crontab -e` | Edit or create a crontab file if doesn’t already exist. | -| `crontab -l` | Display the crontab file. | -| `crontab -r` | Remove the crontab file. | +| - | - | +|--------------|-------------------------------------------------------------------------| +| `crontab -e` | Edit or create a crontab file if doesn’t already exist. | +| `crontab -l` | Display the crontab file. | +| `crontab -r` | Remove the crontab file. | | `crontab -v` | Display the last time you edited your crontab file.
_(non-standard)_ | {.shortcuts} ### Special characters {.col-span-2} -| Special Character | Description | +| Special Character | Description | |---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------| | `Asterik(*)` | Matches all values in the field or any possible value. | | `Hyphen(-)` | Used to define a range.Ex: 1-5 in 5th field(Day Of Week) Every Weekday i.e., Monday to Friday | diff --git a/css.md b/css.md index c68c348..53dd216 100644 --- a/css.md +++ b/css.md @@ -248,43 +248,43 @@ p:first-child { ### Basic -| | | -|---------------------------|-----------------------------------| -| `*` | All elements | -| `div` | All div tags | -| `.classname` | All elements with class | -| `#idname` | Element with ID | -| `div,p` | All divs and paragraphs | -| `#idname *` | All elements inside #idname | +| | | +|--------------|-----------------------------| +| `*` | All elements | +| `div` | All div tags | +| `.classname` | All elements with class | +| `#idname` | Element with ID | +| `div,p` | All divs and paragraphs | +| `#idname *` | All elements inside #idname | See also: [Type](https://developer.mozilla.org/en-US/docs/Web/CSS/Type_selectors) / [Class](https://developer.mozilla.org/en-US/docs/Web/CSS/Class_selectors) / [ID](https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors) / [Universal](https://developer.mozilla.org/en-US/docs/Web/CSS/Universal_selectors) selectors ### Combinators -| Selector | Description | -| ------------------- | ----------------- | -| `div.classname` | Div with certain classname | -| `div#idname` | Div with certain ID | -| `div p` | Paragraphs inside divs | -| `div > p` | All p tags
_one level deep in div_ | -| `div + p` | P tags immediately after div | -| `div ~ p` | P tags preceded by div | +| Selector | Description | +|-----------------|---------------------------------------| +| `div.classname` | Div with certain classname | +| `div#idname` | Div with certain ID | +| `div p` | Paragraphs inside divs | +| `div > p` | All p tags
_one level deep in div_ | +| `div + p` | P tags immediately after div | +| `div ~ p` | P tags preceded by div | See also: [Adjacent](https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator) / [Sibling](https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_combinator) / [Child](https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator) selectors ### Attribute selectors -| | | -|---------------------------|-----------------------------------| -| `a[target]` | With a target attribute | -| `a[target="_blank"]` | Open in new tab | -| `a[href^="/index"]` | Starts with /index | -| `[class|="chair"]` | Starts with chair | -| `[class*="chair"]` | containing chair | -| `[title~="chair"]` | Contains the word chair | -| `a[href$=".doc"]` | Ends with .doc | -| `[type="button"]` | Specified type | +| | | +|----------------------|------------------------------------| +| `a[target]` | With a target attribute | +| `a[target="_blank"]` | Open in new tab | +| `a[href^="/index"]` | Starts with /index | +| `[class|="chair"]` | Starts with chair | +| `[class*="chair"]` | containing chair | +| `[title~="chair"]` | Contains the word chair | +| `a[href$=".doc"]` | Ends with .doc | +| `[type="button"]` | Specified type | See also: [Attribute selectors](https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors) @@ -292,65 +292,65 @@ See also: [Attribute selectors](https://developer.mozilla.org/en-US/docs/Web/CSS ### User action pseudo classes -| | | -|---------------------------|-----------------------------------| -| `a:link ` | Link in normal state | -| `a:active ` | Link in clicked state | -| `a:hover ` | Link with mouse over it | -| `a:visited ` | Visited link | +| | | +|--------------|-------------------------| +| `a:link ` | Link in normal state | +| `a:active ` | Link in clicked state | +| `a:hover ` | Link with mouse over it | +| `a:visited ` | Visited link | ### Pseudo classes -| | | -|---------------------------|-----------------------------------| -| `p::after` | Add content after p | -| `p::before` | Add content before p | -| `p::first-letter` | First letter in p | -| `p::first-line` | First line in p | -| `::selection` | Selected by user | -| `::placeholder` | [Placeholder](https://developer.mozilla.org/en-US/docs/Web/CSS/::placeholder) attribute | -| `:root` | Documents root element | -| `:target` | Highlight active anchor | -| `div:empty` | Element with no children | -| `p:lang(en)` | P with en language attribute | -| `:not(span)` | Element that's not a span | +| | | +|-------------------|-----------------------------------------------------------------------------------------| +| `p::after` | Add content after p | +| `p::before` | Add content before p | +| `p::first-letter` | First letter in p | +| `p::first-line` | First line in p | +| `::selection` | Selected by user | +| `::placeholder` | [Placeholder](https://developer.mozilla.org/en-US/docs/Web/CSS/::placeholder) attribute | +| `:root` | Documents root element | +| `:target` | Highlight active anchor | +| `div:empty` | Element with no children | +| `p:lang(en)` | P with en language attribute | +| `:not(span)` | Element that's not a span | ### Input pseudo classes -| | | -|---------------------------|-----------------------------------| -| `input:checked` | Checked inputs | -| `input:disabled` | Disabled inputs | -| `input:enabled` | Enabled inputs | -| `input:focus` | Input has focus | -| `input:in-range` | Value in range | -| `input:out-of-range` | Input value out of range | -| `input:valid` | Input with valid value | -| `input:invalid` | Input with invalid value | -| `input:optional` | No required attribute | -| `input:required` | Input with required attribute | -| `input:read-only` | With readonly attribute | -| `input:read-write` | No readonly attribute | -| `input:indeterminate` | With [indeterminate](https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate) state | +| | | +|-----------------------|---------------------------------------------------------------------------------------------| +| `input:checked` | Checked inputs | +| `input:disabled` | Disabled inputs | +| `input:enabled` | Enabled inputs | +| `input:focus` | Input has focus | +| `input:in-range` | Value in range | +| `input:out-of-range` | Input value out of range | +| `input:valid` | Input with valid value | +| `input:invalid` | Input with invalid value | +| `input:optional` | No required attribute | +| `input:required` | Input with required attribute | +| `input:read-only` | With readonly attribute | +| `input:read-write` | No readonly attribute | +| `input:indeterminate` | With [indeterminate](https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate) state | ### Structural pseudo classes -| | | -|---------------------------|-----------------------------------| -| `p:first-child` | First child | -| `p:last-child` | Last child | -| `p:first-of-type` | First of some type | -| `p:last-of-type` | Last of some type | -| `p:nth-child(2)` | Second child of its parent | -| `p:nth-child(3n42)` | Nth-child (an + b) formula | -| `p:nth-last-child(2)` | Second child from behind | -| `p:nth-of-type(2)` | Second p of its parent | -| `p:nth-last-of-type(2)` | ...from behind | -| `p:only-of-type` | Unique of its parent | -| `p:only-child` | Only child of its parent | +| | | +|-------------------------|----------------------------| +| `p:first-child` | First child | +| `p:last-child` | Last child | +| `p:first-of-type` | First of some type | +| `p:last-of-type` | Last of some type | +| `p:nth-child(2)` | Second child of its parent | +| `p:nth-child(3n42)` | Nth-child (an + b) formula | +| `p:nth-last-child(2)` | Second child from behind | +| `p:nth-of-type(2)` | Second p of its parent | +| `p:nth-last-of-type(2)` | ...from behind | +| `p:only-of-type` | Unique of its parent | +| `p:only-child` | Only child of its parent | @@ -360,12 +360,12 @@ CSS Fonts {.cols-3} ### Properties {.row-span-3} -| Property | Description | -| ------------------ | ------------------------------------ | -| `font-family:` | \ | -| `font-size:` | \ | -| `letter-spacing:` | \ | -| `line-height:` | \ | +| Property | Description | +|-------------------|-----------------| +| `font-family:` | \ | +| `font-size:` | \ | +| `letter-spacing:` | \ | +| `line-height:` | \ | | `font-weight:` | \ / bold / normal | | `font-style:` | italic / normal | @@ -380,7 +380,7 @@ See also: [Font](https://developer.mozilla.org/en-US/docs/Web/CSS/font) ### Shorthand {.secondary .col-span-2} | | style | weight | size (required) | | line-height | family | -| ------- | -------- | ------ | --------------- | --- | ----------- | ----------------- | +|---------|----------|--------|-----------------|-----|-------------|-------------------| | `font:` | `italic` | `400` | `14px` | `/` | `1.5` | `sans-serif` | | | style | weight | size (required) | | line-height | family (required) | @@ -489,9 +489,9 @@ CSS Backgrounds {.cols-3} ### Properties {.row-span-2} -| Property | Description | -| ------------------------ | ---------------------------------------- | -| `background:` | _(Shorthand)_ | +| Property | Description | +|---------------|---------------| +| `background:` | _(Shorthand)_ | | `background-color:` | See: [Colors](#colors) | | `background-image:` | url(...) | @@ -504,11 +504,11 @@ CSS Backgrounds {.cols-3} ### Shorthand {.secondary .col-span-2} -| | color | image | positionX | positionY | | size | repeat | attachment | -| ------------- | ------ | ------------- | --------- | --------- | --- | -------------- | ----------- | ---------- | +| | color | image | positionX | positionY | | size | repeat | attachment | +|---------------|--------|--------------|-----------|-----------|-----|----------------|-------------|------------| | `background:` | `#ff0` | `url(a.jpg)` | `left` | `top` | `/` | `100px` `auto` | `no-repeat` | `fixed;` | | `background:` | `#abc` | `url(b.png)` | `center` | `center` | `/` | `cover` | `repeat-x` | `local;` | -| | color | image | posX | posY | | size | repeat | attach..| +| | color | image | posX | posY | | size | repeat | attach.. | ### Examples {.col-span-2} @@ -601,23 +601,23 @@ CSS Animation {.cols-5} ### Shorthand {.col-span-5 .secondary} | | name | duration | timing-function | delay | count | direction | fill-mode | play-state | -| ------------ | -------- | -------- | --------------- | ------- | ---------- | ------------------- | --------- | ---------- | +|--------------|----------|----------|-----------------|---------|------------|---------------------|-----------|------------| | `animation:` | `bounce` | `300ms` | `linear` | `100ms` | `infinite` | `alternate-reverse` | `both` | `reverse` | | | name | duration | timing-function | delay | count | direction | fill-mode | play-state | ### Properties {.row-span-2 .col-span-2} -| Property | Value | -| ---------------------------- | -------------------------------------------------------- | -| `animation:` | _(shorthand)_ | +| Property | Value | +|------------------------------|--------------------------------------------------------| +| `animation:` | _(shorthand)_ | | `animation-name:` | \ | | `animation-duration:` | \