Skip to content

Commit

Permalink
Added locale specific css for popup.
Browse files Browse the repository at this point in the history
See #1 for more
information.
  • Loading branch information
InternalError503 committed Nov 10, 2016
1 parent 0e53c79 commit 77069d4
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
10 changes: 10 additions & 0 deletions css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,14 @@
}
html {
-webkit-user-select: none;
}

/*
locale specific
*/
.main-pl {
height: 330px !important;
}
.main-pla {
height: 370px !important;
}
10 changes: 10 additions & 0 deletions css/forget.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,14 @@
}
html {
-webkit-user-select: none;
}

/*
locale specific
*/
.main-pl {
height: 240px !important;
}
.main-pla {
height: 280px !important;
}
9 changes: 9 additions & 0 deletions js/forget.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@
document.getElementById('forgetOpenNewLi').style.display = "none";
document.getElementById('main-forget').style.height= "220px";
}

// locale specific
if (window.navigator.language == "pl" && !key.closeTabsWindows) {
document.getElementById('main-forget').className += "main-pl";
} else if (window.navigator.language == "pl" && key.closeTabsWindows) {
document.getElementById('main-forget').className += "main-pla";
}


});

document.getElementById('forgetFromHeading').textContent = chrome.i18n.getMessage("appPopupForgetFromHeading");
Expand Down
8 changes: 8 additions & 0 deletions js/timedForget.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
document.getElementById('forgetOpenNewLi').style.display = "none";
document.getElementById('main-timed-forget').style.height= "260px";
}

// locale specific
if (window.navigator.language == "pl" && !key.closeTabsWindows) {
document.getElementById('main-timed-forget').className += "main-pl";
} else if (window.navigator.language == "pl" && key.closeTabsWindows) {
document.getElementById('main-timed-forget').className += "main-pla";
}

});

document.getElementById('timedForgetTitle').textContent = chrome.i18n.getMessage("appForgetTitle");
Expand Down

0 comments on commit 77069d4

Please sign in to comment.