THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

250 lines
3.6KB

  1. code {
  2. white-space: inherit;
  3. word-break: break-all;
  4. }
  5. .markdown-wrap {
  6. font-size: 1.1em;
  7. clear: both;
  8. overflow: auto;
  9. font-family: @base-font-family;
  10. -webkit-font-smoothing: antialiased;
  11. -webkit-text-size-adjust: 100%;
  12. -webkit-font-feature-settings: "kern" 1;
  13. -moz-font-feature-settings: "kern" 1;
  14. -o-font-feature-settings: "kern" 1;
  15. font-feature-settings: "kern" 1;
  16. font-kerning: normal;
  17. padding: 15px 20px !important;
  18. word-wrap: break-word;
  19. > *:first-child {
  20. margin-top: 0 !important;
  21. }
  22. > *:last-child {
  23. margin-bottom: 0 !important;
  24. }
  25. ul, ol {
  26. padding: 0 0 5px 2.5em;
  27. font-weight: normal;
  28. margin-left: 0;
  29. }
  30. li {
  31. margin-bottom: 5px;
  32. }
  33. li > ul {
  34. margin-bottom: 0;
  35. :last-of-type {
  36. padding-bottom: 0;
  37. }
  38. pre {
  39. padding-bottom: 10px !important;
  40. }
  41. padding: 5px 0 0 2.5em;
  42. }
  43. li > p {
  44. margin-top: 16px;
  45. margin-bottom: 12px;
  46. }
  47. a {
  48. color: #4183c4;
  49. text-decoration: none;
  50. }
  51. a:hover {
  52. color: #4183c4;
  53. text-decoration: underline;
  54. }
  55. a:active {
  56. color: #4183c4;
  57. text-decoration: none;
  58. }
  59. .anchor() {
  60. .head-anchor {
  61. margin-left: 3px;
  62. opacity: 0;
  63. }
  64. &:hover {
  65. .head-anchor {
  66. opacity: 1;
  67. }
  68. }
  69. }
  70. h1,
  71. h2,
  72. h3 {
  73. line-height: 40px;
  74. margin-bottom: 16px;
  75. }
  76. h1 {
  77. font-size: 2.0em;
  78. padding-bottom: 0.3em;
  79. border-bottom: 1px solid #eee;
  80. .anchor();
  81. width: 95%;
  82. font-weight: 600;
  83. }
  84. h2 {
  85. line-height: 1.25;
  86. font-size: 1.5em;
  87. width: 95%;
  88. padding: 0 0 0.3em 0;
  89. border-bottom: 1px solid #eaecef;
  90. .anchor();
  91. }
  92. h3 {
  93. margin: 1em 0 5px;
  94. font-size: 1.4em;
  95. padding: 0;
  96. .anchor();
  97. }
  98. h4 {
  99. font-size: 1.25em;
  100. margin-top: 1.2em;
  101. padding: 0;
  102. .anchor();
  103. }
  104. h5 {
  105. font-size: 1em;
  106. margin-top: 20px;
  107. .anchor();
  108. }
  109. hr {
  110. height: 1px;
  111. margin: 10px 0;
  112. border: 0;
  113. color: #ccc;
  114. background-color: #ccc;
  115. }
  116. p {
  117. margin: 0 0 16px 0;
  118. line-height: 1.6em;
  119. }
  120. blockquote {
  121. p {
  122. font-size: 0.9em;
  123. font-weight: normal;
  124. }
  125. }
  126. code {
  127. padding: 5px 5px 2px 5px;
  128. border: 1px solid #ddd;
  129. border-radius: 3px;
  130. font-family: @fixed-font-family;
  131. font-size: 13px;
  132. .title {
  133. font-size: inherit;
  134. }
  135. }
  136. blockquote {
  137. border-left: 4px solid #DDD;
  138. padding: 0 15px;
  139. color: #777;
  140. }
  141. li > img {
  142. max-width: 80%;
  143. }
  144. li > input[type='checkbox'] {
  145. vertical-align: text-top;
  146. }
  147. img {
  148. max-width: 100%;
  149. margin: 10px 0;
  150. padding: 5px;
  151. border: 1px solid rgba(0, 0, 0, 0.1);
  152. .box-sizing(border-box);
  153. max-height: 300px;
  154. }
  155. > ul {
  156. line-height: 20px;
  157. list-style: disc;
  158. margin-bottom: 16px;
  159. }
  160. li {
  161. line-height: 1.6em;
  162. }
  163. ul ul, ol ul {
  164. list-style: circle;
  165. }
  166. ul ul ul, ol ul ul, ol ol ul, ul ol ul {
  167. list-style: square;
  168. }
  169. ol {
  170. line-height: 1.6em;
  171. list-style: decimal;
  172. }
  173. pre {
  174. font-size: 1em;
  175. background-color: #EFEFEF;
  176. padding: 10px;
  177. margin: 10px 0;
  178. word-break: normal;
  179. border: none;
  180. code {
  181. margin: 0;
  182. padding: 0;
  183. border: none;
  184. }
  185. }
  186. table {
  187. border-collapse: collapse;
  188. margin: 15px 15px;
  189. th {
  190. padding: 5px;
  191. border: 1px solid #dcddde;
  192. background-color: #f7f7f7;
  193. min-width: 45px;
  194. }
  195. td {
  196. padding: 5px;
  197. border: 1px solid #dcddde;
  198. word-break: break-all;
  199. }
  200. }
  201. &.markdown-before {
  202. visibility: hidden;
  203. }
  204. .popover {
  205. max-width: 400px;
  206. }
  207. .popover-title {
  208. font-size: 14px;
  209. font-weight: bold;
  210. }
  211. }