By Brandon Scivolette on Tuesday, 12 April 2016
Posted in General Issues
Replies 8
Likes 0
Views 719
Votes 0
While configuring EasyBlog with my existing blog content I realized that CSS associated with UIkit isn't being recognized. I have the UIkit CSS built into my theme template and some custom modifications to their styles as well. Every other component on my site is using the UIKit CSS without issue. How can I prevent EB from ignoring or blocking it?
Hi Brandon,

I am really sorry for the delay of this reply.

It seems like our IP is blacklisted and unable to access your site. Here is our current IP address : 175.139.130.20 .

Regarding on the issue above, may I know do you place the code under HTML Block? If possible kindly provide us with the uikit css code so we can test it in our local instance as well.
·
Tuesday, 12 April 2016 13:31
·
0 Likes
·
0 Votes
·
0 Comments
·
The UIKit code being overriden is:


<a class="uk-button uk-button-primary" title="MPG Fuel Calculator for Moving Truck" href="/moving-truck-rental/fuel-calculator" role="button">Truck MPG Calculator <i class="fa fa-external-link"></i></a>


I think I found the issue, on further inspection. The 'transparent' attribute in your CSS style in style-min.css is being applied instead of our button background color. I will update our custom CSS to have our background color as !important.


div#fd a {
background: transparent;
}
·
Tuesday, 12 April 2016 22:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Unless you have a better way to have the custom and UIKit CSS take priority over the EB theme styling? Most of what I am seeing is simple HTML markup to handle buttons, alerts and similar.
·
Tuesday, 12 April 2016 22:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Brandon,

The reason we applied 'transparent' attribute for 'a' tags need to prevent templates styling override our components UI.

To fixed it, you can either go to
/media/foundry/5.0/styles/foundry/reset.less comment out the 'transparent' attribute http://screencast.com/t/miojaNvRn , after that go to EasyBlog backend > Themes > Recompile LESS Files

or

Insert !important attribute for all the buttons from UIKits button.less.
e.g.:
.uk-button-primary {
background-color: @button-primary-background !important;
}
·
Wednesday, 13 April 2016 13:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Sure. It's easier, of course, to just comment it out via the EB reset.less file. But won't any changes I make be overridden when the template/component has an update?
·
Thursday, 14 April 2016 01:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Brandon Scivolette wrote:

Sure. It's easier, of course, to just comment it out via the EB reset.less file. But won't any changes I make be overridden when the template/component has an update?


Sorry that both method will get overridden when you update the template/component.
·
Thursday, 14 April 2016 10:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Just an FYI for anyone else who finds this issue: I found that overriding the styles with !important in my own custom.css file became a big issue. Notably because there are so many different classes and states, not to mention the contrast styles for UIkit buttons.

So, I ultimately decided to revise the reset.less file as suggested by Chang. However, I quickly found that simply commenting out just one line didn't resolve the problem because of the active, hover, focus states. So, I commented out the entire 'a' styling which fully resolved my problem. Below shows lines 68-84 that have been commented out.


// a {
// background: transparent;
// &:link {
// text-decoration: none;
// }

// &:hover {
// color: @link-hover-color;
// }

// &:hover,
// &:focus,
// &:active {
// color: @link-color;
// background-color: transparent;
// }
//}
·
Friday, 15 April 2016 00:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Brandon
·
Friday, 15 April 2016 17:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post