Šablona:Note / test / styles.css

styles.css

Z Wiki JU
Verze z 8. 10. 2026, 14:47, kterou vytvořil Ofara (diskuse | příspěvky) (založena nová stránka s textem „→Template:Note/styles.css (content model: Sanitized CSS): .note { box-sizing: border-box; position: relative; margin: 0.6em 0; padding: 0.7em 1em 0.7em 2.8em; color: #202122; background-color: #eef3fc; border: 1px solid #c8d6f2; border-left: 5px solid #3366cc; border-radius: 6px; box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.08 ); line-height: 1.5; } →Icon: .note::before { content: '\2139'; position: absolute; left: 0.7em; top: 0.65…“)
(rozdíl) ← Starší verze | zobrazit aktuální verzi (rozdíl) | Novější verze → (rozdíl)
/* Template:Note/styles.css  (content model: Sanitized CSS) */

.note {
	box-sizing: border-box;
	position: relative;
	margin: 0.6em 0;
	padding: 0.7em 1em 0.7em 2.8em;
	color: #202122;
	background-color: #eef3fc;
	border: 1px solid #c8d6f2;
	border-left: 5px solid #3366cc;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.08 );
	line-height: 1.5;
}

/* Icon */
.note::before {
	content: '\2139';
	position: absolute;
	left: 0.7em;
	top: 0.65em;
	width: 1.4em;
	height: 1.4em;
	line-height: 1.4em;
	text-align: center;
	font-weight: bold;
	font-size: 0.9em;
	color: #ffffff;
	background-color: #3366cc;
	border-radius: 50%;
}

/* Types */
.note-reminder {
	background-color: #f4effc;
	border-color: #dccff3;
	border-left-color: #7b4fd0;
}
.note-reminder::before {
	content: '\23F0';
	background-color: #7b4fd0;
}

.note-warn {
	background-color: #fff7e0;
	border-color: #f2dc9c;
	border-left-color: #d68a00;
}
.note-warn::before {
	content: '!';
	background-color: #d68a00;
}

.note-error {
	background-color: #fdeeee;
	border-color: #f3c3c3;
	border-left-color: #dd3333;
}
.note-error::before {
	content: '\2715';
	background-color: #dd3333;
}

/* Inline variant: small badge in the text flow */
.note-inline {
	display: inline-block;
	margin: 0 0.2em;
	padding: 0.05em 0.6em 0.05em 2em;
	border-width: 1px;
	border-left-width: 3px;
	border-radius: 4px;
	box-shadow: none;
	line-height: 1.4;
}
.note-inline::before {
	left: 0.45em;
	top: 0.25em;
	width: 1.2em;
	height: 1.2em;
	line-height: 1.2em;
	font-size: 0.8em;
}

/* Dark mode */
.skin-theme-clientpref-night .note {
	color: #eaecf0;
	background-color: #1c2433;
	border-color: #34415c;
	border-left-color: #6b9bf5;
}
.skin-theme-clientpref-night .note::before { background-color: #6b9bf5; color: #101418; }

.skin-theme-clientpref-night .note-reminder { background-color: #231d33; border-color: #43385f; border-left-color: #a98af0; }
.skin-theme-clientpref-night .note-reminder::before { background-color: #a98af0; }

.skin-theme-clientpref-night .note-warn { background-color: #332a14; border-color: #5a4a1f; border-left-color: #f0b429; }
.skin-theme-clientpref-night .note-warn::before { background-color: #f0b429; }

.skin-theme-clientpref-night .note-error { background-color: #341b1b; border-color: #5e2d2d; border-left-color: #f26b6b; }
.skin-theme-clientpref-night .note-error::before { background-color: #f26b6b; }