Jump to content

Template:Infobox book/styles.css: Difference between revisions

From Insurer Brain
Content deleted Content added
Created page with "{{pp-template|small=yes}}: .ib-book .infobox-title { font-style: italic; padding-bottom: 0.2em; so title doesn't touch border: } Firefox apparently reads out the empty title for accessibility agents * [[Template_talk:Infobox_book#Code_read_out_when_using_a_screen_reader]]: .ib-book .Z3988 { display: none; } .ib-book .infobox-below { border-top: #aaa 1px solid; }"
 
No edit summary
Line 1: Line 1:
/* Title inside the box */
/* {{pp-template|small=yes}} */
.ib-book .infobox-title {
.ib-book .infobox-above {
font-style: italic;
font-style: italic; /* keep book titles italic */
font-weight: bold;
padding-bottom: 0.2em; /* so title doesn't touch border */
text-align: center;
padding: 0.2em 0.5em;
border-bottom: 1px solid #aaa; /* matches .infobox-below’s top border */
}
}


/* Option A (simple): just hide the old caption visually and from AT */
/* Firefox apparently reads out the empty title for accessibility agents
.ib-book caption.infobox-title { display: none; }
* [[Template_talk:Infobox_book#Code_read_out_when_using_a_screen_reader]]
*/
.ib-book .Z3988 {
display: none;
}

.ib-book .infobox-below {
border-top: #aaa 1px solid;
}

Revision as of 23:34, 15 October 2025

/* Title inside the box */
.ib-book .infobox-above {
  font-style: italic;          /* keep book titles italic */
  font-weight: bold;
  text-align: center;
  padding: 0.2em 0.5em;
  border-bottom: 1px solid #aaa; /* matches .infobox-below’s top border */
}

/* Option A (simple): just hide the old caption visually and from AT */
.ib-book caption.infobox-title { display: none; }