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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

123 views 12 6
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