custom-rtl.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. // ================================================================================================
  2. // File Name: custom-rtl.scss
  3. // Description: RTL support SCSS file.
  4. // ----------------------------------------------------------------------------------------------
  5. // Item Name: Vuexy - Vuejs, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ================================================================================================
  9. /*rtl:begin:ignore*/
  10. // Variables
  11. // ------------------------------
  12. // Core variables and mixins
  13. @import "bootstrap/functions";
  14. @import "bootstrap/mixins";
  15. @import "bootstrap-extended/mixins";
  16. // Core variables and mixins overrides
  17. @import "core/variables/variables";
  18. @import "bootstrap/variables";
  19. // Overrides user variable
  20. @import "core/variables/components-variables";
  21. // Align icons position
  22. .main-menu {
  23. .navigation li > a > i,
  24. .dropdown-menu i,
  25. .dropdown-user > a > i,
  26. .navigation > li > a > i {
  27. float: right;
  28. }
  29. .navigation > li ul li > a {
  30. display: flex;
  31. align-items: center;
  32. }
  33. }
  34. // Dropdown RTL Changes
  35. .header-navbar .navbar-container ul.nav li.dropdown{
  36. .dropdown-menu{
  37. top: 48px !important;
  38. &::before{
  39. top: 1px;
  40. }
  41. }
  42. &.dropdown-user .dropdown-menu{
  43. .dropdown-item{
  44. i{
  45. float: right;
  46. }
  47. }
  48. }
  49. }
  50. .header-navbar{
  51. .dropdown,.dropup{
  52. .dropdown-menu.dropdown-menu-right::before{
  53. right: auto;
  54. left: .5rem;
  55. }
  56. }
  57. }
  58. .dropdown,.dropup{
  59. .dropdown-menu{
  60. right: auto !important;
  61. top: 0 !important;
  62. left: auto !important;
  63. &.dropdown-menu-right{
  64. left: 0 !important;
  65. &::before{
  66. right: 0.6rem;
  67. left: auto;
  68. }
  69. }
  70. }
  71. }
  72. .dropleft .dropdown-toggle{
  73. &::before{
  74. content: '\e844' !important;
  75. }
  76. }
  77. .dropright .dropdown-toggle{
  78. &::after{
  79. content: '\e843' !important;
  80. }
  81. }
  82. // Input Group dropdown
  83. .input-group{
  84. .dropdown-menu.show{
  85. top: 0 !important;
  86. right: auto !important;
  87. left: 0px !important;
  88. }
  89. }
  90. // Chartist
  91. .chartjs-render-monitor{
  92. margin-right: 1rem;
  93. }
  94. // Datatable
  95. div.dataTables_wrapper div.dataTables_filter {
  96. text-align: left !important;
  97. }
  98. // Dashboard Style
  99. #dashboard-analytics{
  100. .img-left{
  101. left: 0;
  102. right: auto !important;
  103. }
  104. .img-right{
  105. right: 0;
  106. left: auto;
  107. }
  108. }
  109. // No UI RTL css
  110. .square{
  111. &.slider-xl{
  112. .noUi-handle{
  113. &:before{
  114. left: 5px;
  115. }
  116. &:after{
  117. left: 10px;
  118. }
  119. }
  120. }
  121. .noUi-handle{
  122. &:before{
  123. left: 2px;
  124. }
  125. &:after{
  126. left: 7px;
  127. }
  128. }
  129. }
  130. .noUi-vertical{
  131. &.square{
  132. .noUi-handle{
  133. &:before{
  134. left:-1px;
  135. }
  136. &:after{
  137. left:-1px;
  138. }
  139. }
  140. }
  141. }
  142. .noUi-horizontal{
  143. &.slider-sm{
  144. .noUi-handle{
  145. left: auto !important;
  146. right: -2px !important;
  147. }
  148. }
  149. &.slider-xs{
  150. .noUi-handle{
  151. left: auto !important;
  152. right: -2px !important;
  153. }
  154. }
  155. }
  156. // Context menu list css
  157. .context-menu-list{
  158. z-index: 1031 !important;
  159. }
  160. .context-menu-item>.context-menu-list{
  161. right: 100%;
  162. margin-right: 0;
  163. }
  164. // Pagination
  165. .pagination .page-item.prev-item .page-link:before {
  166. content: "\e844";
  167. font-family: 'feather';
  168. }
  169. .pagination .page-item.next-item .page-link:after {
  170. content: "\e843";
  171. font-family: 'feather';
  172. }
  173. .pagination .page-item.prev .page-link:after,
  174. .pagination .page-item.previous .page-link:after {
  175. content: "\e844";
  176. font-family: 'feather';
  177. }
  178. .pagination .page-item.prev .page-link:before,
  179. .pagination .page-item.previous .page-link:before {
  180. display: none;
  181. }
  182. .pagination .page-item.next .page-link:before {
  183. content: "\e843";
  184. font-family: 'feather';
  185. }
  186. .pagination .page-item.next .page-link:after {
  187. display: none;
  188. }
  189. code[class*="language-"],
  190. pre[class*="language-"] {
  191. direction: ltr;
  192. }
  193. @media print {
  194. code[class*="language-"],
  195. pre[class*="language-"] {
  196. text-shadow: none;
  197. }
  198. }
  199. // Application
  200. .list-group .list-group-item i{
  201. float: right;
  202. }
  203. // Email Application
  204. .email-application {
  205. .app-content {
  206. .list-group {
  207. .list-group-item {
  208. i {
  209. float: right !important;
  210. }
  211. }
  212. }
  213. }
  214. }
  215. // Ecommerce Application
  216. .ecommerce-application .sidebar-shop .range-slider.noUi-horizontal .noUi-handle{
  217. left: 5px !important;
  218. }
  219. // Calendar
  220. .fc .fc-header-toolbar .fc-right .fc-button.fc-prev-button .fc-icon{
  221. right: 4px !important;
  222. }
  223. .fc .fc-header-toolbar .fc-right .fc-button.fc-next-button .fc-icon{
  224. left: -3px !important;
  225. }
  226. // Button with Icons
  227. .btn{
  228. i{
  229. float: right;
  230. margin-left: .25rem;
  231. }
  232. &.btn-icon i{
  233. margin-left: 0;
  234. }
  235. }
  236. // carousel changes
  237. .carousel-control-next{
  238. left: auto;
  239. right: 0;
  240. }
  241. .carousel-control-prev{
  242. left: 0;
  243. right: auto;
  244. }
  245. // Tooltip
  246. .bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^='left'] .arrow::before{
  247. border-width: 0.4rem 0 0.4rem 0.4rem;
  248. border-left-color: $tooltip-bg;
  249. }
  250. .bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^='left'] .arrow {
  251. right: 0;
  252. left: auto;
  253. }
  254. .bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^='right'] .arrow::before{
  255. border-width: 0.4rem 0.4rem 0.4rem 0;
  256. border-right-color: $tooltip-bg;
  257. }
  258. .bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^='right'] .arrow {
  259. left: 0;
  260. right: auto;
  261. }
  262. // Popover Style
  263. .popover{
  264. right: auto !important;
  265. }
  266. // Quill Editor
  267. .ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{
  268. right: auto !important;
  269. }
  270. // Perfact scrollbar RTL fix
  271. body .ps__rail-y{
  272. right: auto !important;
  273. left: 1px !important;
  274. }
  275. /*rtl:end:ignore*/