r15
| 1 | [include(사용자:jhk1090/연습장, red=red)] |
|---|
| 2 | |
|---|
r14
| 3 | {{{#!style |
|---|
| 4 | /* scoped styles are not supported */ |
|---|
| 5 | .red { |
|---|
| 6 | color: red; |
|---|
| 7 | } |
|---|
| 8 | |
|---|
| 9 | table.colored { |
|---|
| 10 | border: 3px solid red; |
|---|
| 11 | } |
|---|
| 12 | |
|---|
| 13 | table.colored > tbody > tr > td { |
|---|
| 14 | padding: 0; |
|---|
| 15 | } |
|---|
| 16 | |
|---|
| 17 | table.colored > tbody > tr > td:first-of-type { |
|---|
| 18 | font-weight: bold; |
|---|
| 19 | } |
|---|
| 20 | table.colored > tbody > tr:nth-of-type(3n) > td:first-of-type { |
|---|
| 21 | color: red; |
|---|
| 22 | } |
|---|
| 23 | table.colored > tbody > tr:nth-of-type(3n + 1) > td:first-of-type { |
|---|
| 24 | color: lime; |
|---|
| 25 | } |
|---|
| 26 | table.colored > tbody > tr:nth-of-type(3n + 2) > td:first-of-type { |
|---|
| 27 | color: blue; |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | /* media query is not supported */ |
|---|
| 31 | @theseed-dark-mode { |
|---|
| 32 | table.colored > tbody > tr:nth-of-type(3n) > td:first-of-type { |
|---|
| 33 | color: yellow; |
|---|
| 34 | } |
|---|
| 35 | table.colored > tbody > tr:nth-of-type(3n + 1) > td:first-of-type { |
|---|
| 36 | color: yellow; |
|---|
| 37 | } |
|---|
| 38 | table.colored > tbody > tr:nth-of-type(3n + 2) > td:first-of-type { |
|---|
| 39 | color: yellow; |
|---|
| 40 | } |
|---|
| 41 | } |
|---|
| 42 | }}} |
|---|
| 43 | |
|---|
| 44 | {{{#!wiki class="red" lang="ja" |
|---|
| 45 | aaa}}} |
|---|
| 46 | |
|---|
| 47 | == styled table test == |
|---|
| 48 | ||<tableclass=colored><table width=100%><table bgcolor=#ffffff,#2d2f34><table color=#212529,#e0e0e0><colbgcolor=#ffffff,#000000> 1 ||1 || |
|---|
| 49 | || 2 ||2 || |
|---|
| 50 | || 3 ||3 || |
|---|
| 51 | || 4 ||4 || |
|---|
| 52 | || 5 ||5 || |
|---|
| 53 | || 6 ||6 || |
|---|
| 54 | || 7 ||7 || |
|---|
| 55 | || 8 ||8 || |
|---|
| 56 | || 9 ||9 || |
|---|
| 57 | || 10 ||10 || |
|---|
| 58 | |
|---|
| 59 | === reuse === |
|---|
| 60 | ||<tableclass=colored><table width=100%><table bgcolor=#ffffff,#2d2f34><table color=#212529,#e0e0e0><colbgcolor=#ffffff,#000000> 1 ||1 || |
|---|
| 61 | || 2 ||2 || |
|---|
| 62 | || 3 ||3 || |
|---|
| 63 | || 4 ||4 || |
|---|
| 64 | || 5 ||5 || |
|---|
| 65 | || 6 ||6 || |
|---|
| 66 | || 7 ||7 || |
|---|
| 67 | || 8 ||8 || |
|---|
| 68 | || 9 ||9 || |
|---|
| 69 | || 10 ||10 || |
|---|