Plugin.WordPress icon indicating copy to clipboard operation
Plugin.WordPress copied to clipboard

Lines are to high

Open SKB-CGN opened this issue 4 years ago • 19 comments

Describe the bug Lines are to high with Colibri Theme

WordPress Editing Mode Which WordPress editing mode you're using ?

  • Gutenberg

Frontend or Backend Issue

Does the issues occurs on your frontend or on the backend (WordPress admin area) Frontend

To Reproduce ?

Expected behavior Normal line numbers

Screenshots 2021-10-13 16_34_42-iRobot Steuerung in ioBroker - Kreyenborg koeln

SKB-CGN avatar Oct 13 '21 14:10 SKB-CGN

some css rules of your theme are overriding the EnlighterJS styles - use the element inspector of chrome/firefox to identify the weak rulesets and remove them from your theme

AndiDittrich avatar Oct 13 '21 14:10 AndiDittrich

Now the lines are a little bit smaller, but till very big. 2021-10-13 16_40_13-iRobot Steuerung in ioBroker - Kreyenborg koeln

This is the only thing i found. The high is reduced from 63px to 43px.

SKB-CGN avatar Oct 13 '21 14:10 SKB-CGN

take a look into all elements within enlighter-default

AndiDittrich avatar Oct 13 '21 14:10 AndiDittrich

Where i am able to do that and perhaps "how"?

SKB-CGN avatar Oct 13 '21 14:10 SKB-CGN

within element inspector, check each element within the .enlighter-default wrapper

AndiDittrich avatar Oct 13 '21 14:10 AndiDittrich

Only that one is using the class 2021-10-13 16_50_35-iRobot Steuerung in ioBroker - Kreyenborg koeln

SKB-CGN avatar Oct 13 '21 14:10 SKB-CGN

shure, expand the element and inspect all child elements

AndiDittrich avatar Oct 13 '21 14:10 AndiDittrich

There are no other classes used. 2021-10-13 16_57_13-iRobot Steuerung in ioBroker - Kreyenborg koeln

SKB-CGN avatar Oct 13 '21 14:10 SKB-CGN

the elements are matched by other selectors, they didn't require a own "class" attribute. by clicking on these element you will see that there a a lot of styles added...

AndiDittrich avatar Oct 13 '21 14:10 AndiDittrich

Sure, i inspected them. 2021-10-13 16_59_38-Inbox - stephan kreyenborg@intl att com - Outlook

If i deactivate this one marked in red, the line is "almost" ok. 2021-10-13 16_59_55-iRobot Steuerung in ioBroker - Kreyenborg koeln

SKB-CGN avatar Oct 13 '21 15:10 SKB-CGN

please provide a link to your page and i'll take a short look into it

AndiDittrich avatar Oct 13 '21 15:10 AndiDittrich

One second. As i am testing the Plugin for further use - it is not fully implemented. I will provide you one.

SKB-CGN avatar Oct 13 '21 15:10 SKB-CGN

Have a look here: https://www.kreyenborg.koeln/test-enlighter/

SKB-CGN avatar Oct 13 '21 15:10 SKB-CGN

the Enlighter plugin is not working (other issue) because your using some kind of "optimization" plugin which adds defer to the script tag. see https://github.com/EnlighterJS/documentation/blob/master/wordpress/FAQ.md#javascript-error-enlighterjs-resources-not-loaded-yet for details.

it's also possible to enable the "single file mode" see Enlighter -> options -> resources -> Initialization

AndiDittrich avatar Oct 13 '21 15:10 AndiDittrich

I added the Plugin to exclusion. In Edge its displaying nearly ok - but Firefox still has the high lines. Would you please have a look again?

SKB-CGN avatar Oct 13 '21 15:10 SKB-CGN

it's an issue with your theme (the css rule display:table for all pseudo elements looks very weak...) :

Screenshot_2021-10-13_17-58-57

AndiDittrich avatar Oct 13 '21 16:10 AndiDittrich

Thanks for having a look again. I will check with the theme.

SKB-CGN avatar Oct 13 '21 16:10 SKB-CGN

Thanks for pointing me to the right level .... I never looked into pseudo-elements :D If you want, you can test the page again. It should look like it should before, right? ;)

SKB-CGN avatar Oct 13 '21 16:10 SKB-CGN

A small additional question here. If i go to the page via my mobile phone in horizontal-mode, the code is not in a scroll-able area. Its not scroll-able right nor left.

If i switch my phone to landscape, the code even wraps inside the area.

Is this related to the theme or to the Plugin?

SKB-CGN avatar Oct 14 '21 07:10 SKB-CGN