From cf2c8e759bf06596f9492d090f4dd8dbb76a178c Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sat, 25 Jul 2015 22:58:51 +0100 Subject: changed input submits to buttons, fixed small RTL issue --- lib/plugins/styling/admin.php | 10 +++++----- lib/plugins/styling/lang/en/lang.php | 2 +- lib/plugins/styling/script.js | 2 +- lib/plugins/styling/style.less | 6 +++++- 4 files changed, 12 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/plugins/styling/admin.php b/lib/plugins/styling/admin.php index c6c04bb52..c747c3130 100644 --- a/lib/plugins/styling/admin.php +++ b/lib/plugins/styling/admin.php @@ -83,22 +83,22 @@ class admin_plugin_styling extends DokuWiki_Admin_Plugin { echo ''; echo ''; - echo 'colorClass($key).' />'; + echo 'colorClass($key).' dir="ltr" />'; echo ''; } echo ''; echo '

'; - echo ' '; - echo ''; #FIXME only if preview.ini exists + echo ' '; + echo ''; #FIXME only if preview.ini exists echo '

'; echo '

'; - echo ''; + echo ''; echo '

'; echo '

'; - echo ''; #FIXME only if local.ini exists + echo ''; #FIXME only if local.ini exists echo '

'; echo ''; diff --git a/lib/plugins/styling/lang/en/lang.php b/lib/plugins/styling/lang/en/lang.php index 010743956..e0011eb83 100644 --- a/lib/plugins/styling/lang/en/lang.php +++ b/lib/plugins/styling/lang/en/lang.php @@ -17,7 +17,7 @@ $lang['error'] = 'Sorry, this template does not support this functionality.'; $lang['btn_preview'] = 'Preview changes'; $lang['btn_save'] = 'Save changes'; $lang['btn_reset'] = 'Reset current changes'; -$lang['btn_revert'] = 'Revert all styles back to the template\'s default'; +$lang['btn_revert'] = 'Revert styles back to template\'s default'; // default guaranteed placeholders $lang['__text__'] = 'Main text color'; diff --git a/lib/plugins/styling/script.js b/lib/plugins/styling/script.js index 2f4285269..aa343fd71 100644 --- a/lib/plugins/styling/script.js +++ b/lib/plugins/styling/script.js @@ -85,7 +85,7 @@ jQuery(function () { }; // don't reload on our own buttons - jQuery('input[type=submit]').click(function(e){ + jQuery(':button').click(function(e){ doreload = false; }); diff --git a/lib/plugins/styling/style.less b/lib/plugins/styling/style.less index 120768289..be0e16a5b 100644 --- a/lib/plugins/styling/style.less +++ b/lib/plugins/styling/style.less @@ -1,7 +1,11 @@ #plugin__styling { - input.primary { + button.primary { font-weight: bold; } + + [dir=rtl] & table input { + text-align: right; + } } #plugin__styling_loader { -- cgit v1.2.3