CSS styling query
-
Hi
I have some queries and I wonder if you can help me get to the bottom of them. I would be grateful for your guidance. Here is the background.
I am using the latest bbPress plugin and I notice that the bbpress.css file is 1702 lines long.
I am using a premium theme (seos-video-premium) and even though I am using a child theme, I have noticed that my Support forum is actually using:
wp-content/themes/seos-video-premium/seos-video-premium/css/bbpress.css
I assume this is because there is no bbpress.css in my child theme css folder so it uses the themes one instead of the bbPress plugin’s one?
So I have two specific questions here.
1/ the bbpress.css file in the premium theme folder is actually 1408 lines of code. So it is 300+ lines shorter than the plugin version. To be honest, I was not expecting to find a bbpress.css file inside the theme. So what am I supposed to do? Simply replace the theme version with your plugin version?
2/ I have been trying to use a beta version of EnlighterJS Plugin (it is their beta that uses EnlighterJS v3. There was an issue with these styles:
#bbpress-forums div.bbp-topic-content pre, #bbpress-forums div.bbp-reply-content pre { display: block; line-height: 18px; margin: 0 0 24px; padding: 5px 10px; white-space: pre; overflow: auto; }
In their classes they have this styling:
.enlighter-default .enlighter-raw { display: none; min-width: 100%; line-height: inherit; font-size: 12px; font-family: inherit; margin: 0; padding: 0; white-space: pre-wrap; word-wrap: break-word; border: none; box-shadow: none; }
The HTML is:
<pre class="enlighter-raw">.textMaterial { /* Uncomment to hide the material */ /* display:none;*/ font-size: 10pt; font-style: italic; font-weight: 700; background-color: yellow; } .textMethod { /* Uncomment to hide the method */ /* display:none;*/ font-size: 10pt; font-style: italic; font-weight: 700; background-color: cyan; }</pre>
Notice that ttheir CSS style uses
display: none;
? The bbpress CSS filepre
class has adisplay:block;
. This causes a problem with the plugin I am trying to use.The author does not want to use
!important
because he says it is bad design. So how do we fix this? How can we allow bbpress to do what it wants withpre
and EnlighterJS do what it wants?
- You must be logged in to reply to this topic.