| r51 vs r52 | ||
|---|---|---|
| ... | ... | |
| 663 | 663 | || 10 ||10 || |
| 664 | 664 | }}} |
| 665 | 665 | |
| 666 | === 대괄호 === | |
| 667 | 대괄호 ({{{#!wiki style="display:inline-block; font-family:monospace" | |
| 668 | \{}}}, {{{#!wiki style="display:inline-block; font-family:monospace" | |
| 669 | \}}}})는 컴퓨터가 어디부터 어디까지 읽는 영역을 표시하는 기호이므로, 많은 내용을 한 줄에 넣고 싶다면 대괄호 사이에 굳이 개행을 할 필요 없이 wiki style 문법으로 한 줄로 속성을 적듯이 만들면 된다. 이를테면 앞의 내용인 | |
| 670 | >{{{#!wiki style="display: inline; font-family: monospace;" | |
| 671 | \{{{#!style | |
| 672 | /* scoped styles are not supported */ | |
| 673 | table.colored > tbody > tr > td:first-of-type { | |
| 674 | font-weight: bold; | |
| 675 | } | |
| 676 | table.colored > tbody > tr:nth-of-type(3n) > td:first-of-type { | |
| 677 | color: red; | |
| 678 | } | |
| 679 | table.colored > tbody > tr:nth-of-type(3n + 1) > td:first-of-type { | |
| 680 | color: lime; | |
| 681 | } | |
| 682 | table.colored > tbody > tr:nth-of-type(3n + 2) > td:first-of-type { | |
| 683 | color: blue; | |
| 684 | } | |
| 685 | ||
| 686 | /* media query is not supported */ | |
| 687 | @theseed-dark-mode { | |
| 688 | table.colored > tbody > tr:nth-of-type(3n) > td:first-of-type { | |
| 689 | color: maroon; | |
| 690 | } | |
| 691 | table.colored > tbody > tr:nth-of-type(3n + 1) > td:first-of-type { | |
| 692 | color: green; | |
| 693 | } | |
| 694 | table.colored > tbody > tr:nth-of-type(3n + 2) > td:first-of-type { | |
| 695 | color: navy; | |
| 696 | } | |
| 697 | } | |
| 698 | \}}}\ }}} | |
| 699 | 부분을 줄여서 | |
| 700 | >{{{#!wiki style="display: inline; font-family: monospace;" | |
| 701 | \{{{#!if s="table.colored > tbody > tr", n=":nth-of-type" | |
| 702 | \}}}\{{{#!style | |
| 703 | /* scoped styles are not supported */ | |
| 704 | table.colored > tbody > tr > td:first-of-type {font-weight: bold;} | |
| 705 | table.colored > tbody > tr:nth-of-type(3n) > td:first-of-type {color: red;} | |
| 706 | table.colored > tbody > tr:nth-of-type(3n + 1) > td:first-of-type {color: lime;} | |
| 707 | table.colored > tbody > tr:nth-of-type(3n + 2) > td:first-of-type {color: blue;} | |
| 708 | ||
| 709 | /* media query is not supported */ | |
| 710 | @theseed-dark-mode { | |
| 711 | table.colored > tbody > tr:nth-of-type(3n) > td:first-of-type {color: maroon;} | |
| 712 | table.colored > tbody > tr:nth-of-type(3n + 1) > td:first-of-type {color: green;} | |
| 713 | table.colored > tbody > tr:nth-of-type(3n + 2) > td:first-of-type {color: navy;} | |
| 714 | } | |
| 715 | \}}}\ }}} | |
| 716 | 식으로 줄여도 된다. | |
| 717 | ||
| 718 | ||
| 666 | 719 | {{{#!wiki sytle="display:none" |
| 667 | 720 | [각주]}}} |