MediaWiki:Custom-common.less/containers.less

/* Custom container styling ("boxes") for this wiki */

/* Message Boxes */ /* Coloring impl attributed to Minecraft Wiki (minecraft.fandom.com) */ /* Template:MessageBoxPlus */ .messagebox, .messagebox-inline { --messagebox-background-color: ~"rgba(var(--theme-accent-color--rgb), .05)"; --messagebox-border-color: var(--theme-accent-color); display: flex; justify-content: space-between; align-items: center; gap: 1em; margin: 1em 0; padding: .4em 1.6em; background-color: var(--messagebox-background-color); box-shadow: inset 3px 0 0 0 var(--messagebox-border-color), inset -3px 0 0 0 var(--messagebox-border-color); border-radius: .5em; border: none; font-size: 14px; text-align: left; overflow: auto; } .messagebox-inline { display: inline-flex; margin: 0 1em; } .messagebox-main { display: flex; align-items: center; gap: 1em; } table.messagebox td { /* for messageboxes that still uses a table */ padding: 0 0.8em; } .messagebox-blue { --messagebox-background-color: var(--custom-background-blue-highlight); --messagebox-border-color: var(--custom-border-blue-highlight); } .messagebox-green { --messagebox-background-color: var(--custom-background-green-highlight); --messagebox-border-color: var(--custom-border-green-highlight); } .messagebox-orange { --messagebox-background-color: var(--custom-background-orange-highlight); --messagebox-border-color: var(--custom-border-orange-highlight); } .messagebox-purple { --messagebox-background-color: var(--custom-background-purple-highlight); --messagebox-border-color: var(--custom-border-purple-highlight); } .messagebox-red { --messagebox-background-color: var(--custom-background-red-highlight); --messagebox-border-color: var(--custom-border-red-highlight); } .messagebox-yellow { --messagebox-background-color: var(--custom-background-yellow-highlight); --messagebox-border-color: var(--custom-border-yellow-highlight); } .messagebox-magenta { --messagebox-background-color: var(--custom-background-magenta-highlight); --messagebox-border-color: var(--custom-border-magenta-highlight); } .messagebox-gray { --messagebox-background-color: var(--custom-background-grey); --messagebox-border-color: var(--custom-border-grey); } /* Other Message Boxes */ .messagebox-disambiguations { font-size: 95%; text-align: center; margin: 6px auto; padding: 0 10px; border: 3px double #625; border-radius: 10px; display: table; } .messagebox-warn, .messagebox-error { margin: 0 7%; padding: .4em .8em; border-top-right-radius: .5em; border-top-left-radius: .5em; } .messagebox-warn { background-color: #905f00; } .messagebox-error { background-color: #7F0000; } /* Dark Message Box - Template:DarkMessageBox */ .darkmsgbox { margin: 1em auto; .darkmsgbox-image { padding: 15px; background: #754242; box-shadow: 0 0 5px var(--theme-accent-color); border: 1px solid; border-color: var(--theme-accent-color); .theme-fandomdesktop-light & { background: #a2962e; }	}	.darkmsgbox-text { background: #2e191b; padding: 3px 8px; box-shadow: 0 0 5px var(--theme-accent-color); border: 1px solid; border-color: var(--theme-accent-color); .theme-fandomdesktop-light & { background: #d0c678; }	}	.darkmsgbox-bottom { text-align: center; background: #0e0909; box-shadow: 0 0 5px var(--theme-accent-color); border: 1px solid; border-color: var(--theme-accent-color); .theme-fandomdesktop-light & { background: #c9c9c9; }	} }

/* AF Warning Styles */ .afwarning-box { &.disallow { background-color: #543c3f; }	&.warn { background-color: #843d0a; }	&.default { background-color: #872525; }	.afwarning-mark { opacity: 75%; min-width: fit-content; .theme-fandomdesktop-light & { filter: invert(1); }	}	.afwarning-title { font-size: 2.3em; } } @media only screen and (max-width: 1023px) { .afwarning-box .afwarning-mark img { max-width: 250px; height: auto; } } @media only screen and (max-width: 785px) { .afwarning-box .messagebox-main { flex-direction: column; } }

/* Custom widgetbox styling */ .custom-widgetbox-gold { display: block; border: 2px solid #ed9a01; border-radius: 5px; padding: 10px; text-align: center; .custom-widgetbox-image { font-size: 1em; background-color: rgba(0,0,0,0.1); padding: .4em; text-align: center; }	.custom-widgetbox-bottomtext { padding-top: 1em; } }

/* Delete Box */ .delete-box { padding: 15px; margin: 5px; background-color: #7f1d1d; text-align: center; color: white; a { color: #fec356; }	hr { margin: 0.1em 3px; border: 0.5px solid tan; }	.button { padding: 10px; font-size: 1em; font-weight: bold; width: 100%; height: 100%; }	.delete-box-buttons { margin-left: 2%; margin-right: 2%; font-size: 14px; td:first-of-type { text-align: left; }		td:last-of-type { margin-right: 2em; }	}	.delete-box-reason { font-size: 14px; } }

/* Rightbox */ .hsw-rightbox { &.small { border: 1px solid #5e484a; margin: 5px 2px 2px 5px; padding: 14px; float: right; text-align: center; font-size: 75%; box-shadow: 0 0 5px var(--theme-accent-color); border: 1px solid; border-color: var(--theme-accent-color); .theme-fandomdesktop-light & { background: #ddd; }		.theme-fandomdesktop-dark & { background: #251214; }	}	&.medium { float: right; width: 240px; margin: .1em .1em .5em .25em; padding: 4px; }	.hsw-rightbox-sep { border-bottom: 1px solid #555; padding: 0 3px; clear: right; }	.hsw-rightbox-image { border-right: 0; padding: 0 12px; }	.hsw-rightbox-content { border-left: 0; width: 100%; padding: 0 5px 0 0; } } .hsw-luabox { float: right; width: 240px; margin: .1em .1em .5em .25em; padding: 4px; box-shadow: 0 0 5px var(--theme-accent-color); border: 1px solid; border-color: var(--theme-accent-color); .theme-fandomdesktop-light & { background: #ddd; }	.theme-fandomdesktop-dark & { background: #251214; }	.hsw-luabox-list { list-style-type: disc; margin: 0 0 0 15px; white-space: nowrap; }	.hsw-luabox-actions { font-size: small; } }	border-left: 0; width: 100%; padding: 12px 12px 12px 0 !important; }	border-right: 0; padding: 0 12px !important; } .hsw-userbox-list { padding: 2.5px } .hsw-shortcut-list { font-weight: bold; } .hsw-archivebox { margin: 7px 0; border: 2px solid var(--theme-page-text-color); box-shadow: 0 0 15px #000000; float: right; .hsw-archivebox-header { color: white; /* to be removed */ background: var(--theme-accent-color); padding: 1.5px; }	.hsw-archivebox-content { padding: 2px 15px; background-color: #542e2e; }	.hsw-archivebox-text { padding: 0 15px; background-color: #542e2e; text-align: center; }	.hsw-archivebox-list { padding: 4px 14px; border-top: 2px solid #775454; border-bottom: 2px solid #775454; }	.hsw-archivebox-search { padding: 4px; }	.mw-ui-input { font-size: small; }	.mw-ui-button { height: 32px !important; } } .hsw-archivelist { .hsw-archivelist-actions { font-size: 10px; } }
 * 1) content .hsw-luabox .hsw-luabox-content {
 * 1) content .hsw-luabox .hsw-luabox-icon {

/* Tutorial box styling */ .tutorial-box-buttons { display: flex; justify-content: space-evenly; align-items: center; } .tutorial-box-inputbox { margin: 0 1em; max-width: 20em; }

/* Discord Link Box styling */ .discord-link-box { border: solid 2px #717171; padding: 2em; margin-bottom: 10px; } .discord-link-wrapper .discord-link { text-transform: none; font-size: 80%; display: contents; line-height: 80%; } .discord-link-wrapper .wds-button { border-color: black; margin: 0.7em; padding: 1em 8em; background-color: #0f090a; box-shadow: 0 0 15px 0.2px red; cursor: pointer; font-size: 1em; color: #e6e6e6; animation: discordlinkspectrum 10s linear 0s infinite, discordlinkbg 7s linear 0s infinite; transition: all .5s; } .discord-link-wrapper .wds-button:hover { font-size: 1.2em; } @keyframes discordlinkspectrum { 16% {box-shadow: 0 0 15px 0.2px orange;} 32% {box-shadow: 0 0 15px 0.2px yellow;} 48% {box-shadow: 0 0 15px 0.2px green;} 64% {box-shadow: 0 0 15px 0.2px blue;} 80% {box-shadow: 0 0 15px 0.2px purple;} 100% {box-shadow: 0 0 15px 0.2px red;} } @keyframes discordlinkbg { 50% {background-color: #222222;} 100% {background-color: #0f090a;} }

/* Retro userboxes */ .userbox-retro { .userbox-info { background-color: var(--custom-adaptive-extralight); }	.userbox-id { background-color: var(--custom-adaptive-light); } }

/* Documentation Boxes */ .hsw-documentation { border: 1.3px solid var(--theme-page-text-color); clear: both; .hsw-documentation-titlebox { padding: 18px 8px 2px 8px; margin: 4px 4px 0 4px; box-shadow: 0 0 2px var(--theme-page-text-color); .hsw-documentation-icon { float: left; }		.hsw-documentation-header { font: bold x-large Arial; margin-left: 7px; text-align: center; }		.hsw-documentation-actions { font-size: small; margin-left: 7px; }		.hsw-documentation-tnote { font-size: small; font-style: italic; }		hr { background-color: #daa9ad; border: 0; height: 1px; margin-bottom: 3px; margin-top: 0; width: 100%; }		p { margin: 0; }	}	.hsw-documentation-body { background-color: rgba(120,120,120,0.05); box-shadow: 0 0 2px var(--theme-page-text-color); padding: 0.5em; margin: 0 4px; padding: 20px 20px 10px; clear: both; .hsw-documentation-main-idk { display: none; }		.hsw-documentation-main-pd { clear: both; margin-bottom: 5px; }	}	.hsw-documentation-bottombox { padding: 2px 8px; margin: 0 4px 4px 4px; box-shadow: 0 0 2px var(--theme-page-text-color); .hsw-documentation-hdtw { margin: 5px; font-weight: bold; }	}	.hsw-documentation-jtc, .hsw-documentation-btt { float: right; margin-top: 4px; font-style: italic; font-size: small; } }