diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2007-06-11 19:29:12 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2007-06-11 19:29:12 +0000 |
commit | 154463e87cf5e963e9900c4ff646ea8533001ff4 (patch) | |
tree | d56c33fbdc186869bae6b5bec0cfe49d0ddef40c /phpBB/adm/style | |
parent | 0c75bd4b8d07bb6ab5e184e2ea477371a94f99b3 (diff) | |
download | forums-154463e87cf5e963e9900c4ff646ea8533001ff4.tar forums-154463e87cf5e963e9900c4ff646ea8533001ff4.tar.gz forums-154463e87cf5e963e9900c4ff646ea8533001ff4.tar.bz2 forums-154463e87cf5e963e9900c4ff646ea8533001ff4.tar.xz forums-154463e87cf5e963e9900c4ff646ea8533001ff4.zip |
support RTL for menu switch
git-svn-id: file:///svn/phpbb/trunk@7752 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/style')
-rw-r--r-- | phpBB/adm/style/admin.css | 11 | ||||
-rw-r--r-- | phpBB/adm/style/overall_header.html | 20 |
2 files changed, 27 insertions, 4 deletions
diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css index 380cf9f3f5..f81c56846d 100644 --- a/phpBB/adm/style/admin.css +++ b/phpBB/adm/style/admin.css @@ -351,6 +351,12 @@ span.corners-bottom span { margin-left: 2px; } +.rtl #toggle { + left: 75%; + margin-right: 0; + margin-left: 6px; +} + #toggle-handle { display: block; width: 18px; @@ -359,6 +365,11 @@ span.corners-bottom span { background-image: url(../images/toggle.gif); } +.rtl #toggle-handle { + background-image: url(../images/toggle.gif); + background-position: 100% 50%; +} + /* Menu */ #menu { float: left; diff --git a/phpBB/adm/style/overall_header.html b/phpBB/adm/style/overall_header.html index d75d89ab13..4cc4dbd678 100644 --- a/phpBB/adm/style/overall_header.html +++ b/phpBB/adm/style/overall_header.html @@ -129,11 +129,17 @@ function switch_menu() main.style.width = '93%'; menu_state = 'hidden'; menu.style.display = 'none'; - toggle.style.left = '0'; toggle.style.width = '20px'; handle.style.backgroundImage = 'url(images/toggle.gif)'; - handle.style.backgroundPosition = '100% 50%'; handle.style.backgroundRepeat = 'no-repeat'; + + <!-- IF S_CONTENT_DIRECTION eq 'rtl' --> + handle.style.backgroundPosition = '0% 50%'; + toggle.style.left = '96%'; + <!-- ELSE --> + handle.style.backgroundPosition = '100% 50%'; + toggle.style.left = '0'; + <!-- ENDIF --> break; // show @@ -141,11 +147,17 @@ function switch_menu() main.style.width = '76%'; menu_state = 'shown'; menu.style.display = 'block'; - toggle.style.left = '15%'; toggle.style.width = '5%'; handle.style.backgroundImage = 'url(images/toggle.gif)'; - handle.style.backgroundPosition = '0% 50%'; handle.style.backgroundRepeat = 'no-repeat'; + + <!-- IF S_CONTENT_DIRECTION eq 'rtl' --> + handle.style.backgroundPosition = '100% 50%'; + toggle.style.left = '75%'; + <!-- ELSE --> + handle.style.backgroundPosition = '0% 50%'; + toggle.style.left = '15%'; + <!-- ENDIF --> break; } } |