More actions
mNo edit summary |
Add dark mode support Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
<templatestyles src="Template:Notice/style.css"/><div class="noticebox" style="--border: {{{outline|#36c}}}; --background: {{{background|#def}}}; | <templatestyles src="Template:Notice/style.css"/><div class="noticebox" style="--border-light: {{{outline|#36c}}}; --background-light: {{{background|#def}}}; --text-light: {{{textcolor|#000}}}; --border-dark: {{{outline-dark|#6d9eff}}}; --background-dark: {{{background-dark|#041424}}; --text-dark: {{{textcolor-dark|#eee}}};"> | ||
{{{1|{{{content}}}}}} | {{{1|{{{content}}}}}} | ||
</div><noinclude> | </div><noinclude> | ||
Line 31: | Line 31: | ||
"type": "string", | "type": "string", | ||
"default": "#000" | "default": "#000" | ||
}, | |||
"outline-dark": { | |||
"label": "Outline (Dark mode)", | |||
"description": "Outline color in dark themes. For a quick fix, invert and hue-rotate the light theme by 180deg.", | |||
"type": "string", | |||
"default": "#6d9eff" | |||
}, | |||
"background-dark": { | |||
"label": "Background (Dark mode)", | |||
"description": "Background color in dark themes.", | |||
"type": "string", | |||
"default": "#041424" | |||
}, | |||
"textcolor-dark": { | |||
"label": "Text color (Dark mode)", | |||
"description": "Text color in dark themes.", | |||
"type": "string", | |||
"default": "#eee" | |||
} | } | ||
}, | }, | ||
Line 37: | Line 55: | ||
"outline", | "outline", | ||
"background", | "background", | ||
"textcolor" | "textcolor", | ||
"outline-dark", | |||
"background-dark", | |||
"textcolor-dark" | |||
], | ], | ||
"format": "inline" | "format": "inline" |
Revision as of 19:59, 24 October 2024
{{{content}}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | content 1 | no description | Content | required |
Outline | outline | Color used for the border, including the left side color swatch.
| Unknown | optional |
Background | background | Color used for the background of the box.
| Unknown | optional |
Text Color | textcolor color | Color to use for the box's text
| String | optional |
Outline (Dark mode) | outline-dark | Outline color in dark themes. For a quick fix, invert and hue-rotate the light theme by 180deg.
| String | optional |
Background (Dark mode) | background-dark | Background color in dark themes.
| String | optional |
Text color (Dark mode) | textcolor-dark | Text color in dark themes.
| String | optional |