diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-01-18 07:10:41 +0700 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-01-18 11:33:14 -0500 |
commit | 066cf793655e1ba89634bf378126af940cbff0a1 (patch) | |
tree | cd8772fe8ea0df7728abec4d33737030e1a5486a /install | |
parent | aa48d3b72efa4a9e285815c01ec89fc98ccaa22c (diff) | |
download | freeipa-066cf793655e1ba89634bf378126af940cbff0a1.tar.gz freeipa-066cf793655e1ba89634bf378126af940cbff0a1.tar.xz freeipa-066cf793655e1ba89634bf378126af940cbff0a1.zip |
CSS class for buttons without icons.
A new CSS class has been added for buttons without icons. The
IPA.button() has been modified to use this class if there is
no icons specified.
Diffstat (limited to 'install')
-rw-r--r-- | install/static/details.js | 10 | ||||
-rw-r--r-- | install/static/ipa.css | 7 |
2 files changed, 15 insertions, 2 deletions
diff --git a/install/static/details.js b/install/static/details.js index 5c6bc83a..aad77a9c 100644 --- a/install/static/details.js +++ b/install/static/details.js @@ -699,12 +699,18 @@ IPA.button = function(spec) { id: spec.id, html: spec.label, title: spec.title || spec.label, - 'class': 'ui-state-default ui-corner-all input_link' + 'class': 'ui-state-default ui-corner-all' }); if (spec.click) button.click(spec.click); if (spec['class']) button.addClass(spec['class']); - if (spec.icon) button.append('<span class="ui-icon '+spec.icon+'" ></span> '); + + if (spec.icon) { + button.addClass('input_link'); + button.append('<span class="ui-icon '+spec.icon+'" ></span> '); + } else { + button.addClass('button-without-icon'); + } return button; }; diff --git a/install/static/ipa.css b/install/static/ipa.css index 518e8aa2..66b0509e 100644 --- a/install/static/ipa.css +++ b/install/static/ipa.css @@ -52,6 +52,13 @@ body{ top: 50%; } +.button-without-icon { + padding: .4em 1em .4em 1em; + text-decoration: none; + position: relative; + cursor: pointer; +} + /* ---- Header ---- */ div.header { background-color:#0C3B00; |