|
|
(6 intermediate revisions by 4 users not shown) |
Line 9: |
Line 9: |
| font-weight: var(--font-weight-medium); | | font-weight: var(--font-weight-medium); |
|
| |
|
| background-color: var({{{2|--color-information}}}); | | background-color: var({{{2|--color-information-bg}}}); |
| | | |
| padding: 12px 16px; | | padding: 12px 16px; |
Line 16: |
Line 16: |
| | | |
| border: 1px solid; | | border: 1px solid; |
| border-color: {{{2|rgba(96.9, 209.1, 249.9, 0.25)}}}; | | border-color: var({{{2|--color-information-bg}}}); |
| border-radius: 12px; | | border-radius: 12px; |
| ">{{#if:{{{3|}}}|{{{3|}}}|}}{{#if:{{{1|}}}|{{{1}}}|Example Text}}</div></onlyinclude> | | ">{{#if:{{{3|}}}|{{{3|}}}|}}{{#if:{{{1|}}}|<div>{{{1}}}</div>|Example Text}}</div></onlyinclude> |
|
| |
|
| == Examples == | | == Examples == |
|
| |
|
| {{Template:Container | | {{Container |
| |This is a note. | | |This is a note. |
| |--color-brand-hero-cyan /* Hero Cyan */ | | |--color-information-bg /* Hero Cyan */ |
| |[[File:PotatoBadge.png|40px|Note|link=]]}} | | |[[File:PotatoBadge.png|40px|Note|link=]]}} |
| {{Template:Container | | {{Container |
| |This is a note with a large amount of text to test how it overflows. {{Lorem ipsum}} | | |This is a note with a large amount of text to test how it overflows. {{Lorem ipsum}} |
| |--color-brand-hero-cyan /* Hero Cyan */ | | |--color-information-bg /* Hero Cyan */ |
| |[[File:PotatoBadge.png|40px|Note|link=]]}} | | |[[File:PotatoBadge.png|40px|Note|link=]]}} |
| {{Template:Container | | {{Container |
| |This note is potatoless. | | |This note is potatoless. |
| |--color-brand-hero-cyan /* Hero Cyan */}} | | |--color-information-bg /* Hero Cyan */}} |
| {{Template:Container | | {{Container |
| |This is a note with a large amount of text that's potatoless. {{Lorem ipsum}} | | |This is a note with a large amount of text that's potatoless. {{Lorem ipsum}} |
| |--color-brand-hero-cyan /* Hero Cyan */}} | | |--color-information-bg /* Hero Cyan */}} |
| {{Template:Container | | {{Container |
| |This is a note using an inline svg instead of png. This is cool because we can define the color of the image in the template! | | |This is a note using a svg instead of png. |
| |--color-brand-hero-cyan /* Hero Cyan */ | | |--color-information-bg /* Hero Cyan */ |
| |<svg style="flex-shrink: 0; width: 40px; height: 40px; fill: rgba(96.9, 209.1, 249.9, 1)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><circle cx="63.56" cy="112.22" r="13.8"/><path d="m98.03,36.45c0,4.64-.92,9.16-2.72,13.42-1.74,4.11-4.22,7.79-7.38,10.95-3.06,3.06-6.62,5.49-10.57,7.21v5.36c0,7.58-6.03,13.9-13.61,14-7.7.1-13.98-6.11-13.98-13.79v-16.45c0-6.79,4.9-12.43,11.36-13.58,0,0,0,0,0,0,.75-.13,1.51-.21,2.3-.21,3.81-.04,7-3.03,7.03-6.84s-3.07-6.96-6.9-6.96c-2.55,0-4.77,1.38-5.97,3.44s-3.51,3.46-5.98,3.46h-14.74c-4.52,0-7.81-4.27-6.68-8.64.42-1.62.96-3.22,1.62-4.78,1.74-4.11,4.22-7.79,7.38-10.95,3.16-3.15,6.84-5.64,10.95-7.37,3.51-1.49,7.2-2.37,10.98-2.63,0,0,0,0,0,0,.81-.06,1.62-.08,2.43-.08s1.63.03,2.43.08c0,0,0,0,0,0,3.78.26,7.47,1.14,10.98,2.63,4.11,1.74,7.79,4.22,10.95,7.37,3.16,3.16,5.64,6.84,7.38,10.95,1.8,4.27,2.72,8.78,2.72,13.42Z"/> | | |[[File:InformationIcon.svg|40px|link=]]}} |
| </svg>}}
| | {{Container |
| {{Template:Container | | |This is a note using an svg instead of png. With more text! {{Lorem ipsum}} |
| |This is a note using an inline svg instead of png. With more text! {{Lorem ipsum}} | | |--color-information-bg /* Hero Cyan */ |
| |--color-brand-hero-cyan /* Hero Cyan */ | | |[[File:InformationIcon.svg|40px|link=]]}} |
| |<svg style="flex-shrink: 0; inline; width: 40px; height: 40px; fill: rgba(96.9, 209.1, 249.9, 1)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><circle cx="63.56" cy="112.22" r="13.8"/><path d="m98.03,36.45c0,4.64-.92,9.16-2.72,13.42-1.74,4.11-4.22,7.79-7.38,10.95-3.06,3.06-6.62,5.49-10.57,7.21v5.36c0,7.58-6.03,13.9-13.61,14-7.7.1-13.98-6.11-13.98-13.79v-16.45c0-6.79,4.9-12.43,11.36-13.58,0,0,0,0,0,0,.75-.13,1.51-.21,2.3-.21,3.81-.04,7-3.03,7.03-6.84s-3.07-6.96-6.9-6.96c-2.55,0-4.77,1.38-5.97,3.44s-3.51,3.46-5.98,3.46h-14.74c-4.52,0-7.81-4.27-6.68-8.64.42-1.62.96-3.22,1.62-4.78,1.74-4.11,4.22-7.79,7.38-10.95,3.16-3.15,6.84-5.64,10.95-7.37,3.51-1.49,7.2-2.37,10.98-2.63,0,0,0,0,0,0,.81-.06,1.62-.08,2.43-.08s1.63.03,2.43.08c0,0,0,0,0,0,3.78.26,7.47,1.14,10.98,2.63,4.11,1.74,7.79,4.22,10.95,7.37,3.16,3.16,5.64,6.84,7.38,10.95,1.8,4.27,2.72,8.78,2.72,13.42Z"/> | |
| </svg>}}
| |
Example Text
Examples
This is a note.
This is a note with a large amount of text to test how it overflows. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit 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.
This is a note with a large amount of text that's potatoless. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit 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.
This is a note using a svg instead of png.
This is a note using an svg instead of png. With more text! Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit 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.