RTL support for admin panel
RSHB by arash
Details
Authorarash
LicenseNo License
Categoryuserstyles
Created
Updated
Size3.5 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name RSHB
@version 20220515.04.17
@namespace userstyles.world/user/arash
@description RTL support for admin panel
@author arash
@license No License
==/UserStyle== */
@-moz-document regexp(".*my.*ro.*server.*cmd=tickets.+") {
@font-face {
font-family:'Vazir';
src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@32.102/fonts/webfonts/Vazirmatn-Regular.woff2');
src: local('Vazir'), local('Vazir'), url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@32.102/fonts/ttf/Vazirmatn-Regular.ttf') format('truetype');
font-style: normal;
font-weight: normal;
}
@font-face {
font-family:'Vazir';
src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@32.102/fonts/webfonts/Vazirmatn-Bold.woff2');
src: local('Vazir'), local('Vazir'), url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@32.102/fonts/ttf/Vazirmatn-Bold.ttf') format('truetype');
font-style: normal;
font-weight: bold;
}
@font-face {
font-family:'Vazir-Code-Hack';
src: url('https://cdn.jsdelivr.net/npm/vazir-code-font@1.1.2/dist/Vazir-Code-Hack.eot');
src: local('Vazir-Code-Hack'), local('Vazir-Code-Hack'), url('https://cdn.jsdelivr.net/npm/vazir-code-font@1.1.2/dist/Vazir-Code-Hack.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
html, body {
font-family:'Vazir', "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: start;
}
#ticketbody {
direction: rtl;
text-align: start;
}
#tagsCont {
direction: ltr;
text-align: start;
}
#ticket_status {
padding-right: 20px;
}
.msgwrapper {
direction: rtl;
}
.ticketinfoblock{
float: right;
}
.tdetails {
float: left;
clear: right
}
.slide .tdetails {
direction: ltr;
}
.ticketmsg .msgavatar {
padding-left: 10px;
padding-right: 0;
}
.ticketmsg {
direction: rtl;
text-align: start;
font-size: 1.2em;
line-height: 1.5em;
}
.scroller, .editor, .quoter, .quoter2, .btn-tickets {
float: left!important;
}
.ticketmsg .btn-tickets {
display: inline-block;
visibility: hidden;
}
.ticketmsg:hover .btn-tickets {
display: inline-block;
visibility: visible;
}
.slide .ticketinfoblock {
clear: left!important;
}
.tx-editor textarea {
direction: rtl;
text-align: -webkit-auto;
}
.tx-editor .tx-icon {
right: -20px!important;
}
}
@-moz-document regexp(".*my.*ro.*server.*/admin.*") {
@font-face {
font-family:'Vazir';
src: url('https://cdn.jsdelivr.net/npm/vazir-font@26.0.2/dist/Vazir.eot');
src: local('Vazir'), local('Vazir'), url('https://cdn.jsdelivr.net/npm/vazir-font@26.0.2/dist/Vazir.ttf') format('truetype');
font-style: normal;
}
@font-face {
font-family:'Vazir-Code-Hack';
src: url('https://cdn.jsdelivr.net/npm/vazir-code-font@1.1.2/dist/Vazir-Code-Hack.eot');
src: local('Vazir-Code-Hack'), local('Vazir-Code-Hack'), url('https://cdn.jsdelivr.net/npm/vazir-code-font@1.1.2/dist/Vazir-Code-Hack.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
html, body {
font-family:'Vazir', "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: -webkit-auto;
}
#notesContainer {
direction: rtl;
}
pre {
font-family: 'Vazir-Code-Hack';
}
.admin-note-body {
clear: right;
direction: rtl!important;
text-align: right;
margin-top: 20px!important;
line-height: 1.5em!important;
}
.admin-note > .editbtn {
float: left;
}
.admin-note > .left {
float: right;
}
}