How do I change the PDF export for date picker

Our team is standardizing on the built in Date Picker widget so we ensure normalized dates throughout the wiki (i.e. no more June 30th, 6/30, 30/6, 6/30/15 just a nice simple 30 Jun 2015). Unfortunately when exported to PDF this looks really clunky with the widget showing a dark gray box around it.

I'm spelunking through the PDF export stylesheet docs; is there a way to alter the export look/feel for macros like this?

1 answer

1 accepted

Accepted Answer
0 votes

Customize this macro with the following CSS style in your pdf space stylesheet (the example below cancels any formatting and shows a normal format):

.wiki-content time{
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-color: #FFFFFF !important;
  border: 0px solid #FFFFFF  !important;
  border-radius: 0px !important;
  padding: 0 0px 0 0px  !important;
  white-space: none !important;
}

Thank you Benoit, that is perfect!

Really nice solution! And thanks for asking the question; this was one of those things I didn't know I cared about until I saw the better result.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 09, 2018 in Confluence

Introducing Praecipio Consulting, an Atlassian Solution Partner

Hey there Community!  My name is Vannya Vallejo, the Channel Communication Specialist at Atlassian and I want to help Atlassian users like you learn about our Solution Partners and how they c...

388 views 0 9
Read article

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