MediaWiki:Common.css: Difference between revisions
Appearance
Computerwhz (talk | contribs) No edit summary |
Computerwhz (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
background: #f8f9fa; | background: #f8f9fa; | ||
color: #202122; | color: #202122; | ||
margin: 1em 0 0.25em 0; | margin: 1em 0 0.25em 0; | ||
padding: 0.75em 1em; | padding: 0.75em 1em; | ||
display: flex; | display: flex; | ||
| Line 12: | Line 12: | ||
.cw-messagebox-icon { | .cw-messagebox-icon { | ||
width: | width: 36px; | ||
min-width: | min-width: 36px; | ||
height: | height: 36px; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
line-height: 1; | line-height: 1; | ||
text-align: center; | text-align: center; | ||
| Line 25: | Line 24: | ||
.cw-messagebox-icon img { | .cw-messagebox-icon img { | ||
display: block; | |||
max-width: 32px; | max-width: 32px; | ||
max-height: 32px; | max-height: 32px; | ||
display: | width: auto; | ||
height: auto; | |||
object-fit: contain; | |||
} | |||
.cw-messagebox-default-icon { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 32px; | |||
height: 32px; | |||
font-size: 22px; | |||
line-height: 1; | |||
} | } | ||
| Line 35: | Line 47: | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
line-height: 1.4; | |||
} | } | ||
| Line 42: | Line 55: | ||
} | } | ||
/* Dark mode */ | |||
html.skin-theme-clientpref-night .cw-messagebox { | |||
background: #202122; | |||
color: #f8f9fa; | |||
border-color: #54595d; | |||
} | |||
html.skin-theme-clientpref-night .cw-messagebox a { | |||
color: #6bace6; | |||
} | |||
.cw-command-table { | .cw-command-table { | ||
width: 100%; | width: 100%; | ||
Revision as of 13:05, 5 June 2026
.cw-messagebox {
border: 1px solid #a2a9b1;
background: #f8f9fa;
color: #202122;
margin: 1em 0 0.25em 0;
padding: 0.75em 1em;
display: flex;
align-items: center;
gap: 0.9em;
box-sizing: border-box;
}
.cw-messagebox-icon {
width: 36px;
min-width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
text-align: center;
color: inherit;
}
.cw-messagebox-icon img {
display: block;
max-width: 32px;
max-height: 32px;
width: auto;
height: auto;
object-fit: contain;
}
.cw-messagebox-default-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
font-size: 22px;
line-height: 1;
}
.cw-messagebox-content {
flex: 1;
color: inherit;
margin: 0;
padding: 0;
line-height: 1.4;
}
.cw-messagebox-content p {
margin: 0;
padding: 0;
}
/* Dark mode */
html.skin-theme-clientpref-night .cw-messagebox {
background: #202122;
color: #f8f9fa;
border-color: #54595d;
}
html.skin-theme-clientpref-night .cw-messagebox a {
color: #6bace6;
}
.cw-command-table {
width: 100%;
border-collapse: collapse;
margin: 1em 0;
table-layout: auto;
}
.cw-command-table th,
.cw-command-table td {
border: 1px solid #a2a9b1;
padding: 0.55em 0.8em;
vertical-align: middle;
}
.cw-command-table-command {
width: 1%;
white-space: nowrap;
text-align: center;
background: #eaecf0;
font-weight: bold;
font-family: monospace;
padding-left: 1.2em;
padding-right: 1.2em;
}
.cw-command-table-description {
width: 99%;
text-align: left;
background: #fff;
}
/* Dark mode */
html.skin-theme-clientpref-night .cw-command-table th,
html.skin-theme-clientpref-night .cw-command-table td {
border-color: #54595d;
}
html.skin-theme-clientpref-night .cw-command-table-command {
background: #2a2d31;
color: #f8f9fa;
}
html.skin-theme-clientpref-night .cw-command-table-description {
background: #202122;
color: #f8f9fa;
}