Skip to content

Commit

Permalink
! fix #3407 clean up css for RTL buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
StealthWombat authored and Spuds committed Mar 26, 2022
1 parent 6c31789 commit 2ffb67f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
5 changes: 2 additions & 3 deletions themes/default/css/index.css
Expand Up @@ -1639,10 +1639,9 @@ a.bbc_link {
padding: 5px 5px 0 5px;
}

.buttonlist li {
float: left;
margin: 0 0 0 4px;
.buttonlist > li {
line-height: 2.231em;
display: inline-block;
}

/* @todo - Save code by amalgamating common button background declarations. */
Expand Down
4 changes: 0 additions & 4 deletions themes/default/css/rtl.css
Expand Up @@ -405,10 +405,6 @@ h2 a.collapse {

/* Styles for the standard button lists.
/* ------------------------------------------------------- */
.buttonlist li {
float: right;
margin: 0 4px 0 0;
}

/* The quick buttons. */
/* ------------------------------------------------------- */
Expand Down
4 changes: 0 additions & 4 deletions themes/default/index.template.php
Expand Up @@ -627,10 +627,6 @@ function template_button_strip($button_strip, $direction = '', $strip_options =
if (!is_array($strip_options))
$strip_options = array();

// List the buttons in reverse order for RTL languages.
if ($context['right_to_left'])
$button_strip = array_reverse($button_strip, true);

// Create the buttons... now with cleaner markup (yay!).
$buttons = array();
foreach ($button_strip as $key => $value)
Expand Down

0 comments on commit 2ffb67f

Please sign in to comment.