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

Template:Hlist/styles.css: Difference between revisions

Template page
m Create Template:Hlist/styles.css
m Create Template:Hlist/styles.css
Line 10: Line 10:
}
}


/* Middle dot, not a comma -- matches Wikipedia's own hlist convention.
/* Hides the separator dot on whichever item ends up first (the dot
  Six-digit hex escape (rather than \00B7 followed by a space) so the
   itself lives in the template's own HTML output, not here -- see the
   space after it survives as literal content instead of being consumed
   comment in _gen_hlist.py for why). */
  as the escape's own whitespace terminator -- confirmed live that the
.loka-hlist li:first-child .loka-hlist-sep {
   short form silently ate the trailing space, leaving "text ·text"
display: none;
  with no gap after the dot. */
.loka-hlist li:not(:last-child)::after {
content: " \0000B7 ";
}
}


Line 28: Line 25:
}
}


.loka-hlist--stacked li:not(:last-child)::after {
.loka-hlist--stacked .loka-hlist-sep {
content: none;
display: none;
}
}

Revision as of 22:55, 22 August 2026

.loka-hlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline;
}

.loka-hlist li {
	display: inline;
}

/* Hides the separator dot on whichever item ends up first (the dot
   itself lives in the template's own HTML output, not here -- see the
   comment in _gen_hlist.py for why). */
.loka-hlist li:first-child .loka-hlist-sep {
	display: none;
}

.loka-hlist--stacked {
	display: block;
}

.loka-hlist--stacked li {
	display: block;
}

.loka-hlist--stacked .loka-hlist-sep {
	display: none;
}