1
0

_rtl.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. ////////////////////////////////////////////////////////////////////////////////
  2. // RTL Styles Variables
  3. ////////////////////////////////////////////////////////////////////////////////
  4. $default: auto;
  5. ////////////////////////////////////////////////////////////////////////////////
  6. // TABLE OF CONTENTS
  7. ////////////////////////////////////////////////////////////////////////////////
  8. #toc>ul>li>a>span {
  9. float: left;
  10. }
  11. .toc-wrapper {
  12. transition: right 0.3s ease-in-out !important;
  13. left: $default !important;
  14. #{right}: 0;
  15. }
  16. .toc-h2 {
  17. padding-#{right}: $nav-padding + $nav-indent;
  18. }
  19. #nav-button {
  20. #{right}: 0;
  21. transition: right 0.3s ease-in-out;
  22. &.open {
  23. right: $nav-width
  24. }
  25. }
  26. ////////////////////////////////////////////////////////////////////////////////
  27. // PAGE LAYOUT AND CODE SAMPLE BACKGROUND
  28. ////////////////////////////////////////////////////////////////////////////////
  29. .page-wrapper {
  30. margin-#{left}: $default !important;
  31. margin-#{right}: $nav-width;
  32. .dark-box {
  33. #{right}: $default;
  34. #{left}: 0;
  35. }
  36. }
  37. .lang-selector {
  38. width: $default !important;
  39. a {
  40. float: right;
  41. }
  42. }
  43. ////////////////////////////////////////////////////////////////////////////////
  44. // CODE SAMPLE STYLES
  45. ////////////////////////////////////////////////////////////////////////////////
  46. .content {
  47. &>h1,
  48. &>h2,
  49. &>h3,
  50. &>h4,
  51. &>h5,
  52. &>h6,
  53. &>p,
  54. &>table,
  55. &>ul,
  56. &>ol,
  57. &>aside,
  58. &>dl {
  59. margin-#{left}: $examples-width;
  60. margin-#{right}: $default !important;
  61. }
  62. &>ul,
  63. &>ol {
  64. padding-#{right}: $main-padding + 15px;
  65. }
  66. table {
  67. th,
  68. td {
  69. text-align: right;
  70. }
  71. }
  72. dd {
  73. margin-#{right}: 15px;
  74. }
  75. aside {
  76. aside:before {
  77. padding-#{left}: 0.5em;
  78. }
  79. .search-highlight {
  80. background: linear-gradient(to top right, #F7E633 0%, #F1D32F 100%);
  81. }
  82. }
  83. pre,
  84. blockquote {
  85. float: left !important;
  86. clear: left !important;
  87. }
  88. }
  89. ////////////////////////////////////////////////////////////////////////////////
  90. // TYPOGRAPHY
  91. ////////////////////////////////////////////////////////////////////////////////
  92. h1,
  93. h2,
  94. h3,
  95. h4,
  96. h5,
  97. h6,
  98. p,
  99. aside {
  100. text-align: right;
  101. direction: rtl;
  102. }
  103. .toc-wrapper {
  104. text-align: right;
  105. direction: rtl;
  106. font-weight: 100 !important;
  107. }
  108. ////////////////////////////////////////////////////////////////////////////////
  109. // RESPONSIVE DESIGN
  110. ////////////////////////////////////////////////////////////////////////////////
  111. @media (max-width: $tablet-width) {
  112. .toc-wrapper {
  113. #{right}: -$nav-width;
  114. &.open {
  115. #{right}: 0;
  116. }
  117. }
  118. .page-wrapper {
  119. margin-#{right}: 0;
  120. }
  121. }
  122. @media (max-width: $phone-width) {
  123. %left-col {
  124. margin-#{left}: 0;
  125. }
  126. }