Confluence searchbox customization

In chrome it looks:

In mozilla it looks:

I am applying css to the seachbox to change its look but its working in mozilla not in chrome.Searchbox appears different in chrome.I have attached the screenshot for your reference.CSS code i am using is :

background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #E24C30;
border-radius: 5px 5px 5px 5px;
height: 23px;
padding: 1px 9px;
width: 380px;

2 answers

1 accepted

This widget could not be displayed.

Are you sure that you're doing this on OnDemand? As we do not allow css customizations due to platform restrictions. Next to the css rules, can you please provide your full css including the css selector that you're using? It might be that Chrome is not succesfully picking that up.

Yes.I am doing all the changes in custom Stylesheet.I am not using any css selector. i am just changing the confluence

#header .quick-search-query {
width: 13em;
}
class to
.quick-search-query
{
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #E24C30;
border-radius: 5px 5px 5px 5px;
height: 24px;
padding: 0px 9px;
width: 382px;
margin-top:6px;
}

.quick-search-query {
width: 29em;
}
which works in mozzila but not in chrome.

This widget could not be displayed.

for chrome:

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
}
input[type="search"]{
-webkit-appearance: none;
-webkit-box-sizing: content-box;
outline:none;
}

Thanks a lot it works..

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

337 views 2 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you