Skip to content

Commit

Permalink
MINOR Reverted special styling of preview button in CMS, too hard to …
Browse files Browse the repository at this point in the history
…keep consistent alignment
  • Loading branch information
chillu committed Dec 20, 2011
1 parent ac96375 commit 47f53df
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions admin/css/screen.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion admin/scss/_forms.scss
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ form.nostyle {
* ---------------------------------------------------- */ * ---------------------------------------------------- */


.Actions { .Actions {
margin-right: 80px; // Accommodate preview button
min-height: 30px; min-height: 30px;


& > div { & > div {
Expand Down
11 changes: 5 additions & 6 deletions admin/templates/Includes/LeftAndMain_EditForm.ss
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@
</div> </div>


<div class="cms-content-actions south"> <div class="cms-content-actions south">
<% if CurrentPage.PreviewLink %>
<a href="$CurrentPage.PreviewLink" class="cms-preview-toggle-link ss-ui-button">
<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
</a>

<% end_if %>
<% if Actions %> <% if Actions %>
<div class="Actions"> <div class="Actions">
<% control Actions %> <% control Actions %>
$Field $Field
<% end_control %> <% end_control %>
<% if CurrentPage.PreviewLink %>
<a href="$CurrentPage.PreviewLink" class="cms-preview-toggle-link ss-ui-button">
<% _t('LeftAndMain.PreviewButton', 'Preview') %> &raquo;
</a>
<% end_if %>
</div> </div>
<% end_if %> <% end_if %>
</div> </div>
Expand Down

0 comments on commit 47f53df

Please sign in to comment.