Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Message box/ombox.css: Difference between revisions

From 1F616EMO Survival Server Wiki
m 1 revision imported
No edit summary
 
Line 85: Line 85:
width: 238px;
width: 238px;
}
}
}
/* https://theapplewiki.com/wiki/Module:Message_box/tmbox.css */
/* Style similar to [[Module:Hatnote/styles.css]] */
body.skin-citizen .ombox {
padding: 0;
margin-top: var(--space-xs);
margin-bottom: var(--space-md);
background: var(--color-surface-2);
border-top: 0;
border-right: 0;
border-bottom: 0;
border-left-width: 10px;
border-radius: var(--border-radius-medium);
border-spacing: 0;
border-collapse: separate;
color: var(--color-subtle);
font-size: 0.875rem;
line-height: var(--line-height-xs);
}
body.skin-citizen .ombox.ombox-notice {
border-left-color: var(--border-color-progressive);
}
body.skin-citizen .ombox.ombox-speedy {
background-color: var(--background-color-destructive-subtle);
border-left-color: var(--border-color-destructive);
color: var(--color-emphasized);
}
body.skin-citizen .ombox.ombox-delete {
border-left-color: var(--border-color-destructive);
}
body.skin-citizen .ombox.ombox-content,
body.skin-citizen .ombox.ombox-style {
border-left-color: var(--background-color-warning);
}
body.skin-citizen .ombox .mbox-image,
body.skin-citizen .ombox .mbox-imageright,
body.skin-citizen .ombox .mbox-text {
padding: var(--space-sm) var(--space-md);
vertical-align: top;
}
body.skin-citizen .ombox .mbox-image {
padding-right: 0;
}
body.skin-citizen .ombox .mbox-imageright {
padding-left: 0;
}
body.skin-citizen .ombox .mbox-image-div {
width: auto;
}
body.skin-citizen .ombox .mbox-image img,
body.skin-citizen .ombox .mbox-imageright img,
body.skin-citizen .ombox .mbox-image-div img {
width: auto !important;
height: 16px !important;
vertical-align: bottom;
}
}

Latest revision as of 09:11, 21 October 2024

/* {{pp|small=y}} */
.ombox {
	margin: 4px 0;
	border-collapse: collapse;
	border: 1px solid #a2a9b1;    /* Default "notice" gray */
	background-color: #f8f9fa;
	box-sizing: border-box;
}

/* For the "small=yes" option. */
.ombox.mbox-small {
	font-size: 88%;
	line-height: 1.25em;
}

.ombox-speedy {
	border: 2px solid #b32424;    /* Red */
	background-color: #fee7e6;    /* Pink */
}

.ombox-delete {
	border: 2px solid #b32424;    /* Red */
}

.ombox-content {
	border: 1px solid #f28500;    /* Orange */
}

.ombox-style {
	border: 1px solid #fc3;       /* Yellow */
}

.ombox-move {
	border: 1px solid #9932cc;    /* Purple */
}

.ombox-protection {
	border: 2px solid #a2a9b1;    /* Gray-gold */
}

.ombox .mbox-text {
	border: none;
	/* @noflip */
	padding: 0.25em 0.9em;
	width: 100%;
}

.ombox .mbox-image {
	border: none;
	/* @noflip */
	padding: 2px 0 2px 0.9em;
	text-align: center;
}

.ombox .mbox-imageright {
	border: none;
	/* @noflip */
	padding: 2px 0.9em 2px 0;
	text-align: center;
}

/* An empty narrow cell */
.ombox .mbox-empty-cell {
	border: none;
	padding: 0;
	width: 1px;
}

.ombox .mbox-invalid-type {
	text-align: center;
}

@media (min-width: 720px) {
	.ombox {
		margin: 4px 10%;
	}
	
	.ombox.mbox-small {
		/* @noflip */
		clear: right;
		/* @noflip */
		float: right;
		/* @noflip */
		margin: 4px 0 4px 1em;
		width: 238px;
	}
}

/* https://theapplewiki.com/wiki/Module:Message_box/tmbox.css */
/* Style similar to [[Module:Hatnote/styles.css]] */
body.skin-citizen .ombox {
	padding: 0;
	margin-top: var(--space-xs);
	margin-bottom: var(--space-md);
	background: var(--color-surface-2);
	border-top: 0;
	border-right: 0;
	border-bottom: 0;
	border-left-width: 10px;
	border-radius: var(--border-radius-medium);
	border-spacing: 0;
	border-collapse: separate;
	color: var(--color-subtle);
	font-size: 0.875rem;
	line-height: var(--line-height-xs);
}

body.skin-citizen .ombox.ombox-notice {
	border-left-color: var(--border-color-progressive);
}

body.skin-citizen .ombox.ombox-speedy {
	background-color: var(--background-color-destructive-subtle);
	border-left-color: var(--border-color-destructive);
	color: var(--color-emphasized);
}

body.skin-citizen .ombox.ombox-delete {
	border-left-color: var(--border-color-destructive);
}

body.skin-citizen .ombox.ombox-content,
body.skin-citizen .ombox.ombox-style {
	border-left-color: var(--background-color-warning);
}

body.skin-citizen .ombox .mbox-image,
body.skin-citizen .ombox .mbox-imageright,
body.skin-citizen .ombox .mbox-text {
	padding: var(--space-sm) var(--space-md);
	vertical-align: top;
}

body.skin-citizen .ombox .mbox-image {
	padding-right: 0;
}

body.skin-citizen .ombox .mbox-imageright {
	padding-left: 0;
}

body.skin-citizen .ombox .mbox-image-div {
	width: auto;
}

body.skin-citizen .ombox .mbox-image img,
body.skin-citizen .ombox .mbox-imageright img,
body.skin-citizen .ombox .mbox-image-div img {
	width: auto !important;
	height: 16px !important;
	vertical-align: bottom;
}