Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create from template button background color issue

Jonathan Smith
Contributor
December 31, 2020

In the past I was able to post the following CSS in the global stylesheet to make the background of the button white but since 7.7.3 the button continues to be transparent. 

 

/*changes the transparent create from template button to have white background*/

#main-content a.create-from-template-button {background-color: #f2f2f2;}

 

Any CSS help would be appreciated.

3 answers

0 votes
Kim Wallace July 27, 2023

I am having a similar issue with a user macro that creates a Jira - the background is being wiped out completely. I'm currently seeing 7 overrides to Input when I inspect the page. When I follow the line link to the issue, I see the statement, but there is nothing explicit in my CSS macro within Confluence. Ideas?

0 votes
Brant Schroeder
Community Champion
December 31, 2020

Jonathan,

#main-content a.create-from-template-button {background-color: #f2f2f2;} is actually a very light grey.  Using the hex value of #ffffff will make it white. #main-content a.create-from-template-button {background-color: #ffffff;}

Jonathan Smith
Contributor
January 4, 2021

The table's background color seems to trump the button color.

Brant Schroeder
Community Champion
January 4, 2021

can you inspect the element in the browsers and share the HTML.  Can you also share the CSS that you are applying on the table.

Like Monika Rani likes this
0 votes
Soumyadeep Mandal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 31, 2020

Hi @Jonathan Smith ,

You can use the following CSS in your space stylesheet 

#main-content a.create-from-template-button {
background-color: rgba(0, 0, 255, 0.3);
}
Jonathan Smith
Contributor
January 4, 2021

@Soumyadeep Mandal The code did not work at the global stylesheet or space stylesheet level.

Note: My use case is to put the button in a table.

a.jpg

Like Soumyadeep Mandal likes this
Soumyadeep Mandal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 4, 2021

Hi @Jonathan Smith ,

You can use 

background-color: rgba(255, 255, 255, 1);

or

background-color: rgb(255, 255, 255);

or

background: #fff;

or

background-color: rgba(255, 255, 255, 0.1);

 to make the background white!

Like Monika Rani likes this
Jonathan Smith
Contributor
January 4, 2021

@Soumyadeep Mandal Background is too generic, it needs to be 'create from template' button focused.

I am not sure if !important thrown in-front of the code above would force the button background to be dominant or not.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events