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.)
 
m (1 revision imported: importing Plyascript 2)
 
(No difference)

Latest revision as of 01:39, 28 June 2023

.__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;
}