rich-text.less 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. @rt-font-family-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  2. @rt-line-padding: 8%;
  3. .rich-text .CodeMirror {
  4. font-family: @rt-font-family-serif;
  5. font-size: 1.15em;
  6. pre {
  7. font-family: @rt-font-family-serif;
  8. }
  9. .CodeMirror-line {
  10. // Add horizontal padding, to emulate a manuscript more closely
  11. padding: 0 @rt-line-padding;
  12. }
  13. .CodeMirror-linenumber {
  14. font-size: 0.8em;
  15. }
  16. // TODO: Change prefix away from wl- ?
  17. /****************************************************************************/
  18. .preamble h1 {
  19. text-align: center;
  20. font-size: 2em;
  21. color: @text-color;
  22. }
  23. .preamble ul.authors {
  24. margin-left: 0;
  25. padding-left: 0;
  26. list-style: none;
  27. text-align: center;
  28. }
  29. .preamble ul.authors li {
  30. padding-bottom: 5px;
  31. }
  32. /****************************************************************************/
  33. // wl-indent-X is used to add extra left padding to nested itemize/enumerate
  34. // environments, so that the inner list appears more indented than the outer
  35. .wl-indent-0 {
  36. padding-left: calc(~'2.5em + @{rt-line-padding}') !important;
  37. }
  38. .wl-indent-1 {
  39. padding-left: calc(~'3.5em + @{rt-line-padding}') !important;
  40. }
  41. .wl-indent-2 {
  42. padding-left: calc(~'4.5em + @{rt-line-padding}') !important;
  43. }
  44. .wl-indent-3 {
  45. padding-left: calc(~'5.5em + @{rt-line-padding}') !important;
  46. }
  47. .wl-indent-4 {
  48. padding-left: calc(~'6.5em + @{rt-line-padding}') !important;
  49. }
  50. // wl-indent-env-X is used to add extra left padding to empty nested itemize/
  51. // enumerate environments
  52. .wl-indent-env-0 {
  53. padding-left: calc(~'4px + @{rt-line-padding}') !important;
  54. }
  55. .wl-indent-env-1 {
  56. padding-left: calc(~'1.5em + @{rt-line-padding}') !important;
  57. }
  58. .wl-indent-env-2 {
  59. padding-left: calc(~'2.5em + @{rt-line-padding}') !important;
  60. }
  61. .wl-indent-env-3 {
  62. padding-left: calc(~'3.5em + @{rt-line-padding}') !important;
  63. }
  64. .wl-indent-env-4 {
  65. padding-left: calc(~'4.5em + @{rt-line-padding}') !important;
  66. }
  67. .wl-enumerate-item-open {
  68. text-align: right;
  69. width: 1.5em;
  70. display: inline-block;
  71. padding-right: 0.2em;
  72. }
  73. .wl-item-open {
  74. text-align: right;
  75. width: 1.5em;
  76. display: inline-block;
  77. padding-right: 0.2em;
  78. }
  79. .wl-input {
  80. font-style: oblique;
  81. }
  82. /****************************************************************************/
  83. .wl-abstract-open,
  84. .wl-abstract-close {
  85. border-top: 1px solid #999;
  86. font-size: large;
  87. font-weight: bold;
  88. width: 100%;
  89. }
  90. .wl-figure {
  91. max-height: 120px;
  92. width: auto;
  93. margin: 0 auto;
  94. }
  95. .wl-figure-wrap {
  96. padding: 10px 0;
  97. background-color: #f5f5f5;
  98. box-shadow: 1.3px 2px 2px #dfdfdf;
  99. width: 96%;
  100. margin: 0 auto;
  101. text-align: center;
  102. }
  103. .wl-figure-caption {
  104. padding: 3px 0 4px;
  105. font-size: small;
  106. margin: 0 auto;
  107. text-align: center;
  108. }
  109. /****************************************************************************/
  110. .wl-chapter,
  111. .wl-chapter-open,
  112. .wl-chapter-close {
  113. font-size: 2.2em;
  114. font-weight: bold;
  115. }
  116. .wl-chapter-open,
  117. .wl-chapter-close {
  118. color: #999;
  119. }
  120. /****************************************************************************/
  121. .wl-section,
  122. .wl-section-open,
  123. .wl-section-close {
  124. font-size: 1.8em;
  125. font-weight: bold;
  126. }
  127. .wl-section-open,
  128. .wl-section-close {
  129. color: #999;
  130. }
  131. /****************************************************************************/
  132. .wl-subsection,
  133. .wl-subsection-open,
  134. .wl-subsection-close {
  135. font-size: 1.5em;
  136. font-weight: bold;
  137. }
  138. .wl-subsection-open,
  139. .wl-subsection-close {
  140. color: #999;
  141. }
  142. /****************************************************************************/
  143. .wl-subsubsection,
  144. .wl-subsubsection-open,
  145. .wl-subsubsection-close {
  146. font-size: 1.1em;
  147. font-weight: bold;
  148. }
  149. .wl-subsubsection-open,
  150. .wl-subsubsection-close {
  151. color: #999;
  152. }
  153. /****************************************************************************/
  154. .wl-textbf {
  155. font-weight: bold;
  156. }
  157. .wl-textbf-open {
  158. font-weight: bold;
  159. color: #999;
  160. }
  161. .wl-textbf-close {
  162. font-weight: bold;
  163. color: #999;
  164. }
  165. .wl-label-bracket {
  166. font-weight: bold;
  167. color: #999;
  168. }
  169. .wl-label-open,
  170. .wl-input-link {
  171. .wl-icon {
  172. padding-left: 5px;
  173. padding-right: 2px;
  174. vertical-align: middle;
  175. // @include wl-icon-size(inherit);
  176. }
  177. }
  178. .wl-img-default {
  179. width: 0.9em;
  180. padding: 0 1px 1px;
  181. }
  182. .wl-label-close {
  183. background-color: #f7f7f9;
  184. border: 1px solid #e1e1e8;
  185. border-radius: 4px;
  186. font-size: small;
  187. }
  188. /****************************************************************************/
  189. .wl-textit {
  190. font-style: italic;
  191. }
  192. .wl-textit-open {
  193. font-style: italic;
  194. color: #999;
  195. }
  196. .wl-textit-close {
  197. font-style: italic;
  198. color: #999;
  199. }
  200. .spelling-error {
  201. background-image: url(../../../../public/img/spellcheck-underline.png);
  202. background-repeat: repeat-x;
  203. background-position: bottom;
  204. }
  205. }