Skip to content

Commit

Permalink
Merge pull request #1406 from me-and/1398-disabled-command-css
Browse files Browse the repository at this point in the history
Add different formatting for unavailable commands
  • Loading branch information
afuna committed Jun 7, 2015
2 parents 7b4b79a + 576c52b commit c67c2f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cgi-bin/LJ/Console.pm
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ sub command_reference_html {

$ret .= "<hr /><div class='$style'><h2 id='cmd.$cmd'><code><b>$cmd</b> ";
$ret .= LJ::ehtml($class->usage);
$ret .= "</code></h2>\n";
$ret .= "</code>";
$ret .= " (unavailable)" unless $class->can_execute;
$ret .= "</h2>\n";
$ret .= "<p><em><?_ml error.console.notpermitted _ml?></em></p>" unless $class->can_execute;

$ret .= $class->desc;
Expand Down
4 changes: 4 additions & 0 deletions htdocs/scss/skins/_skin-colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ li.token {
}
}

// Enabled and disabled text
div.enabled, div.enabled * { color: $text-color; }
div.disabled, div.disabled * { color: scale-color($text-color, $lightness: 50%); }

// date and time picker
.picker__holder {
background-color: $reveal-modal-bg;
Expand Down

0 comments on commit c67c2f6

Please sign in to comment.