-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom font in Drupal overridden #136
Comments
Yes, it looks like if you use the civicrm-custom.css file included in this extension your entire site will be converted to use Open Sans. This limits the usefulness of this extension, for sure, unless there's an undocumented way of overriding that. From my reading, the only way to fix it would be to setup gulp, etc. and edit a scss file somewhere. |
This seems to be an issue that only occurs when using the CSS aggregation in Drupal in admin/config/development/performance I have not tested this (but having the same issue that I'm currently overriding with some CSS in a Drupal block), it would become something like this:
Also mentioning #110 because it is definitely related. |
Ah, thanks for that observation - that suggests that the preprocessing is generating css that Drupal's aggregation is choking on. |
This is not limited to Drupal's CSS aggregation being active. The issue is that shoreditch's custom-civicrm.css is being loaded on every page, including non-CiviCRM pages - more precisely, everytime However, using |
@jensschuppe I agree that Shoreditch is too aggressive in its use of |
Seems like this issue and #234 are duplicates. @christianwach I agree that Shoreditch's styles should only target CiviCRM markup, which may be tricky sometimes. Consider a Drupal block being placed into CiviCRM pages - this block should maybe not be affected by Shoreditch's styles, although it is placed inside a |
@jensschuppe Yes, pretty much.
I would say that |
@christianwach There should be more thought put into which elements Shoreditch should apply styles on. Shoreditch only works reliably with Drupal's "Seven" theme (as stated in the README) because Shoreditch has selectors for Seven's markup. For example, you could not have the body background color when not applying CSS to markup outside of You can't predict what markup is around the |
@jensschuppe But surely this is the responsibility of the theme? Why would Shoreditch set this?
Again, I don't understand why this would matter to Shoreditch? It should leave DOM elements outside its scope as they are. |
@christianwach Because Shoreditch claims, according to the README, to be
which it isn't or can't be without the problems we encountered. Shoreditch adds styles to DOM elements like the page title, the breadcrumb menu, which are not part of the page content, but theme markup. So, you suggest Shoreditch to do less than it currently tries to, right? |
@jensschuppe Yes, exactly. Shoreditch is a theme for CiviCRM, not Drupal, Joomla or WordPress. In my opinion, when it tries to style elements that are not part of the CiviCRM container, blocks or menu then it is exceeding its scope. |
PCHR-4356: Sync fork with latest release
Closed by #381 |
The last line of the css: {font-family:'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important}
is used with the !important on the very general body element so it is overriding the font used by Drupal on all pages. It does not seem needed as this font-family is already assigned to all Civicrm pages (on body class .page-civicrm).
The text was updated successfully, but these errors were encountered: