mediawiki-skins-Citizen/resources/skins.citizen.styles/skinning/interface-message-box.less
沈澄心 1137a374d8
feat(core): add border to message boxes (#672)
* Update Header.php

* Clean up and ucfirst group member name

* Update theme.less

* Update interface-message-box.less

* Update interface-message-box.less

* Update theme.less

* Update interface-message-box.less

---------

Co-authored-by: alistair3149 <alistair3149@users.noreply.github.com>
2023-06-23 02:31:35 -04:00

54 lines
1.2 KiB
Plaintext

/*
* Citizen
*
* Module: mediawiki.skinning.interface-message-box
* Version: REL1_39
*
* Date: 2023-06-22
*/
.mw-message-box {
overflow: hidden;
padding: var( --space-sm ) var( --space-md );
border: 1px solid var( --border-color-base );
border-radius: var( --border-radius--small );
background-color: var( --color-surface-2 );
color: var( --color-base--emphasized );
/* Standard property is `overflow-wrap` */
overflow-wrap: break-word;
word-wrap: break-word;
/* Ensure box inner spacing is not all over the place no matter what element is only child. */
> :only-child {
margin: 0;
}
// Formerly provided by mw-warning-with-logexcerpt, now available for all messageboxes.
.mw-logevent-loglines li {
font-size: 90%;
}
&-error {
background-color: var( --background-color-destructive );
border-color: var( --background-color-destructive );
}
&-warning {
background-color: var( --background-color-warning );
border-color: var( --background-color-warning );
}
&-success {
background-color: var( --background-color-success );
border-color: var( --background-color-success );
}
}
#siteNotice {
.mw-message-box {
border: 0;
// Since it is edge to edge
border-radius: 0;
}
}