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

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.

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,933 views 27 12
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