Template:Crossreference/styles.css: Difference between revisions

From All Skies Encyclopaedia
imported>Favonian
m Protected "Template:Crossreference/styles.css": Highly visible template: requested at WP:RFPP ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
imported>SMcCandlish
testing attempt to fix the new spacing problem
Line 1: Line 1:
/* {{pp-template}} */
/* {{pp-template}} */
/* This snippet just undoes the default "padding-left: 1.6em;" imposed by
/* This snippet just undoes the default spacing of Module:Hatnote.   While it's
  div.hatnote, when Template:Crossreference is used in block (div) mode.
   unlikely our changes here do anything wrong for inline notes, we can't
  Ignore the dumb CSS editor's "Element (div.crossreference) is overqualified"
  guarantee it forever because the hatnote styles can change.  */
   warning.  It is wrong.  We do not want to apply any CSS intended for block
.crossreference {
  mode when it is not in block mode. While it's unlikely our "padding-left: 0;"
padding-left: -1.6em;
  does anything wrong in inline (span) mode, we can't guarantee it forever.  */
margin-bottom: -0.5em;
div.crossreference {
    padding-left: 0;
}
}

Revision as of 06:49, 12 July 2021

/* {{pp-template}} */
/* This snippet just undoes the default spacing of Module:Hatnote.   While it's
   unlikely our changes here do anything wrong for inline notes, we can't
   guarantee it forever because the hatnote styles can change.  */
.crossreference {
	padding-left: -1.6em;
	margin-bottom: -0.5em;
}