Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WW-4634 Centre alignment doesn't seem to work in Velocity tags #95

Merged
merged 19 commits into from
Jun 12, 2016
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion core/src/main/resources/template/xhtml/controlheader.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@
*/
-->
<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl" />
<td
<td
<#if parameters.align??>
class="tdAlign${parameters.align?html}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use - to separate prefix and suffix?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean like this class="tdAlign-${parameters.align?html}" ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

</#if>
><#t/>
5 changes: 5 additions & 0 deletions core/src/main/resources/template/xhtml/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@
.tdCheckboxErrorMessage {text-align:left; vertical-align:top;}
.tdErrorMessage {text-align:center; vertical-align:top;}
.formButton {text-align:right;}

.tdAligncenter{text-align:center;}
.tdAlignright{text-align:right;}
.tdAlignleft{text-align:left;}
.tdAlignjustify{text-align:justify;}