Template:Ditto/styles.css: Difference between revisions

From Ekatra Foundation
Jump to navigation Jump to search
enws>Xover
(Undo revision 11881379 by Xover (talk) Well, that didn't work. At all.)
(No difference)

Revision as of 23:10, 13 November 2021

.__ditto {
	display:inline-block;
	position:relative;
	/* According to the CSS spec, text-indent is inherited by default, and therefore on display:inline-block elements, it is "wise" to reset it to 0. */
	text-indent:0;
}

.__ditto_hidden {
	visibility:hidden;
	color: transparent; /* in case visibility doesn't work on a device, at least hide the text */
	white-space: nowrap; /* if the hidden text wraps the ditto will be in the wrong place. Probably the best you can do is use the whole line */
}

.__ditto_text {
	display:inline-block;
	position:absolute;
	left:0;
	width:100%;
	white-space:nowrap;
}