Перейти к содержанию

Модуль:Message box/tmbox.css: различия между версиями

Материал из Crimson Grid Wiki
Ghoster создал страницу Модуль:Message box/tmbox.css с использованием нестандартной модели содержимого «CSS»
 
Нет описания правки
 
Строка 1: Строка 1:
/* Скопировано из [[:en:Module:Message box/tmbox.css]] с изменениями */
.tmbox {
align-items: center;
margin: 4px 0;
border-collapse: collapse;
border: 1px solid #c0c090;    /* Default "notice" gray-brown */
background-color: #f8eaba;
box-sizing: border-box;
display: flex;
}


.mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
margin: 2px 0;   /* this declaration overrides other styles (including mbox-small above)  */
width: 100%; /* For Safari and Opera */
}
/* For the "small=yes" option. */
.tmbox.mbox-small {
font-size: 88%;
line-height: 1.25em;
}
.tmbox .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
line-height: 1.5em;   /* also "nested", so reset styles that are  */
font-size: 100%; /* set in "mbox-small" above. */
}
.tmbox-speedy {
border: 2px solid var(--border-color-destructive, #b32424);    /* Red */
background-color: var(--background-color-error-subtle, #ffe9e5);    /* Pink */
}
.tmbox-delete {
border: 2px solid var(--border-color-destructive, #b32424);    /* Red */
}
.tmbox-content {
border: 2px solid #f28500;    /* Orange */
}
.tmbox-style {
border: 2px solid #fc3;      /* Yellow */
}
.tmbox-move {
border: 2px solid #9932cc;    /* Purple */
}
@media screen {
html.skin-theme-clientpref-night .tmbox {
background-color: #3d2500;
}
html.skin-theme-clientpref-night .tmbox-notice,
html.skin-theme-clientpref-night .tmbox-protection{
border-color: #987;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .tmbox {
background-color: #3d2500;
}
html.skin-theme-clientpref-os .tmbox-notice,
html.skin-theme-clientpref-os .tmbox-protection{
border-color: #987;
}
}
.tmbox .mbox-text {
border: none;
/* @noflip */
padding: 0.25em 0.9em;
width: 100%;
}
.tmbox .mbox-image {
border: none;
/* @noflip */
padding: 2px 0 2px 0.9em;
text-align: center;
}
.tmbox .mbox-imageright {
border: none;
/* @noflip */
padding: 2px 0.9em 2px 0;
text-align: center;
}
/* An empty narrow cell */
.tmbox .mbox-empty-cell {         
border: none;
padding: 0;
width: 1px;
}
.tmbox .mbox-invalid-type {
text-align: center;
}
/* Хак, TODO: посмотреть, как оно на самом деле работает */
.tmbox .mbox-textsmall-div {
font-size: 90%;
}
@media (min-width: 720px) {
.tmbox {
margin: 4px 10%;
}
.tmbox.mbox-small {
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 4px 0 4px 1em;
width: 238px;
}
}
/* Стили нотификаций для ноутбуков */
@media (max-width: 1366px) {
.tmbox {
margin-left: 6%;
margin-right: 6%;
}
}
/* [[Категория:Модули:Подстраницы CSS]] */

Текущая версия от 18:16, 23 октября 2026

/* Скопировано из [[:en:Module:Message box/tmbox.css]] с изменениями */
.tmbox {
	align-items: center;
	margin: 4px 0;
	border-collapse: collapse;
	border: 1px solid #c0c090;    /* Default "notice" gray-brown */
	background-color: #f8eaba;
	box-sizing: border-box;
	display: flex;
}

.mbox-inside .tmbox { /* For tmboxes inside other templates. The "mediawiki" class ensures that */
	margin: 2px 0;			   /* this declaration overrides other styles (including mbox-small above)   */
	width: 100%;				 /* For Safari and Opera */
}

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

.tmbox .tmbox.mbox-small { /* "small" tmboxes should not be small when  */
	line-height: 1.5em;		  /* also "nested", so reset styles that are   */
	font-size: 100%;			 /* set in "mbox-small" above.				*/
}

.tmbox-speedy {
	border: 2px solid var(--border-color-destructive, #b32424);    /* Red */
	background-color: var(--background-color-error-subtle, #ffe9e5);    /* Pink */
}

.tmbox-delete {
	border: 2px solid var(--border-color-destructive, #b32424);    /* Red */
}

.tmbox-content {
	border: 2px solid #f28500;    /* Orange */
}

.tmbox-style {
	border: 2px solid #fc3;       /* Yellow */
}

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

@media screen {
	html.skin-theme-clientpref-night .tmbox {
		background-color: #3d2500;
	}

	html.skin-theme-clientpref-night .tmbox-notice,
	html.skin-theme-clientpref-night .tmbox-protection{
		border-color: #987;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .tmbox {
		background-color: #3d2500;
	}

	html.skin-theme-clientpref-os .tmbox-notice,
	html.skin-theme-clientpref-os .tmbox-protection{
		border-color: #987;
	}
}


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

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

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

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

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

/* Хак, TODO: посмотреть, как оно на самом деле работает */
.tmbox .mbox-textsmall-div {
	font-size: 90%;
}

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

/* Стили нотификаций для ноутбуков */
@media (max-width: 1366px) {
	.tmbox {
		margin-left: 6%;
		margin-right: 6%;
	}
}
/* [[Категория:Модули:Подстраницы CSS]] */