Skip to content

Commit

Permalink
Fixed container inversion, without background
Browse files Browse the repository at this point in the history
  • Loading branch information
stfkolev committed Sep 5, 2019
1 parent 7bec8ef commit e922430
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "evilsystem/invert",
"type": "phpbb-extension",
"description": "Inverts the theme",
"version": "0.1.2",
"version": "0.1.4",
"time": "2019-09-01",
"keywords": ["phpbb", "extension", "style"],
"license": "GPL-2.0",
Expand Down
4 changes: 2 additions & 2 deletions language/en/invert.php
Expand Up @@ -35,6 +35,6 @@
//

$lang = array_merge($lang, array(
'INVERTED_THEME' => 'Inverted',
'CLASSIC_THEME' => 'Classic',
'INVERTED_THEME' => 'Dark theme',
'CLASSIC_THEME' => 'Light theme',
));
2 changes: 1 addition & 1 deletion styles/all/theme/invert.css
@@ -1,4 +1,4 @@
body.inverted {
.wrap.inverted {
filter: invert(1) hue-rotate(.5turn);
}

Expand Down
4 changes: 2 additions & 2 deletions styles/all/theme/invert.js
@@ -1,6 +1,6 @@
function invert(inverted) {
if (inverted) {
$("body").addClass("inverted");
$(".wrap").addClass("inverted");
$("#callInvert").hide();
$("#callClassic").show();

Expand All @@ -11,7 +11,7 @@ function invert(inverted) {
document.cookie = "inverted=true;expires=" + date.toGMTString() + ";path=/";

} else {
$("body").removeClass("inverted");
$(".wrap").removeClass("inverted");
$("#callInvert").show();
$("#callClassic").hide();

Expand Down

0 comments on commit e922430

Please sign in to comment.