Reverse button order when OS is not Windows

This commit is contained in:
tophf 2017-03-25 23:39:21 +03:00
parent 363f752934
commit 04084864cc
4 changed files with 18 additions and 4 deletions

5
dom.js
View File

@ -1,5 +1,10 @@
'use strict';
if (!/Windows/i.test(navigator.userAgent)) {
document.documentElement.classList.add('non-windows');
}
function onDOMready() {
if (document.readyState != 'loading') {
return Promise.resolve();

View File

@ -95,13 +95,18 @@
}
#message-box-buttons {
padding: .75rem;
padding: .75rem .375rem;
background-color: #f0f0f0;
text-align: center;
}
#message-box-buttons button:not(:last-child) {
margin-right: 1em;
.non-windows #message-box-buttons {
text-align: right;
direction: rtl;
}
#message-box-buttons button {
margin: 0 .375rem;
}
@keyframes fadein {

View File

@ -265,7 +265,11 @@ body>div:not(#installed) {
}
#confirm>div>div {
padding: 10px;
text-align: center;
}
.non-windows #confirm>div>div {
direction: rtl;
text-align: right;
}
@keyframes lights-off {
from {

View File

@ -54,8 +54,8 @@
<b>Style's Name</b>
<span i18n-text="deleteStyleConfirm"></span>
<div>
<button i18n-text="confirmCancel" data-cmd="cancel"></button>
<button i18n-text="confirmDelete" data-cmd="ok"></button>
<button i18n-text="confirmCancel" data-cmd="cancel"></button>
</div>
</div>
</div>