Remove 'font-family: Arial/etc' on two selectors
authorNicol <vingle@users.noreply.github.com>
Fri, 12 Jul 2019 17:01:06 +0000 (18:01 +0100)
committerGitHub <noreply@github.com>
Fri, 12 Jul 2019 17:01:06 +0000 (18:01 +0100)
For some reason, thesae two selectors have hardcode Arial/etc as the font for form legends and H3 elements. Therefore while a front-end contribution page or profile will inherit the site fonts, but in these two instances it will use Arial/etc.

This can be overriden by the user, but given that there is no other use of Arial in CiviCRM, doesn't seem to make much sense. When theming front-end CiviCRM forms/pages these two elements have to be reset with "font-family: inherit". My guess is it's legacy from a much earlier version of the system (but in making this proposal perhaps the real reason will emerge).

css/civicrm.css

index c1c75403f444ef7ec02e6b2040ad8bf499b44b84..44028787edc57ed58cec6858a672bebb1f76ad96 100644 (file)
@@ -334,7 +334,6 @@ input.crm-form-entityref {
 
 .crm-container fieldset legend {
   display: block;
-  font-family: Arial, Helvetica, sans-serif;
   font-size: 14px;
   font-weight: bold;
   padding: 4px;
@@ -720,7 +719,6 @@ input.crm-form-entityref {
   /* h3 used as table header for civicrm */
   background-color: #CDE8FE;
   font-size: 15px;
-  font-family: Arial, Helvetica, sans-serif;
   font-weight: bold;
   color: #121A2D;
   padding: 4px 6px;