Reverse button order when OS is not Windows
This commit is contained in:
parent
363f752934
commit
04084864cc
5
dom.js
5
dom.js
|
@ -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();
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user