preview-md.sass 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro')
  2. @import url('https://fonts.googleapis.com/css?family=Source+Code+Pro')
  3. @import url('//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css')
  4. @import url('//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css')
  5. @font-face
  6. font-family: 'fontello'
  7. src: url('//www.defold.com/static/fonts/fontello/font/fontello.eot')
  8. src: url('//www.defold.com/static/fonts/fontello/font/fontello.eot#iefix') format('embedded-opentype'),url('https://www.defold.com/static/fonts/fontello/font/fontello.woff') format('woff'),url('https://www.defold.com/static/fonts/fontello/font/fontello.ttf') format('truetype'),url('https://www.defold.com/static/fonts/fontello/font/fontello.svg#fontello') format('svg')
  9. font-weight: normal
  10. font-style: normal
  11. @font-face
  12. font-family: icomoon-15
  13. src: url(//www.defold.com/static/fonts/icomoon-15px/fonts/icomoon-15.eot)
  14. src: url(//www.defold.com/static/fonts/icomoon-15px/fonts/icomoon.eot#iefix) format("embedded-opentype"), url(//www.defold.com/static/fonts/icomoon-15px/fonts/icomoon.ttf) format("truetype"), url(//www.defold.com/static/fonts/icomoon-15px/fonts/icomoon.woff) format("woff"), url(//www.defold.com/static/fonts/icomoon-15px/fonts/icomoon.svg?#icomoon) format("svg")
  15. font-weight: normal
  16. font-style: normal
  17. // Colors
  18. $text-black: #282c34
  19. $text-white: #d1d1d1
  20. $dark-grey: #282c34
  21. $light-grey: #e3e4e5
  22. $gray-light: #d0d3db
  23. $gray-lighter: #f2f3f5
  24. $gray-light-background: #f7f8fa
  25. $blue-dark-faded: #6a7480
  26. $orange-primary: #fd6623
  27. $blue-primary: #1e64ea
  28. body
  29. font-family: Source Sans Pro, sans-serif
  30. color: $text-black
  31. line-height: 1.44em
  32. font-size: 1.1em
  33. .documentation
  34. position: relative
  35. width: 682px
  36. padding: 24px
  37. margin-left: auto
  38. margin-right: auto
  39. h1
  40. font-size: 2.2rem
  41. font-weight: 300
  42. h2
  43. font-size: 1.8em
  44. font-weight: 300
  45. margin-top: 1.4em
  46. margin-bottom: 0.4em
  47. strong, b
  48. font-weight: 600
  49. h1 + p
  50. font-weight: 600
  51. ul, ol
  52. li
  53. margin-top: 0.2em
  54. margin-bottom: 0.2em
  55. dl
  56. dt
  57. font-weight: 600
  58. dd
  59. margin-left: 1.4em
  60. margin-top: 0.2em
  61. margin-bottom: 0.8em
  62. a
  63. text-decoration: none
  64. img
  65. max-width: 100%
  66. display: block
  67. margin: 1.6em 0
  68. margin-left: auto
  69. margin-right: auto
  70. img.inline
  71. display: inline-block
  72. img.left
  73. display: inline-block
  74. float: left
  75. margin: 0.2em 0
  76. margin-right: 1.4em
  77. img.right
  78. display: inline-block
  79. float: right
  80. margin: 0.2em 0
  81. margin-left: 1.4em
  82. img.icon
  83. display: inline
  84. margin: 0
  85. vertical-align: middle
  86. .anchor
  87. display: block
  88. position: relative
  89. top: -100px
  90. visibility: hidden
  91. .anchor-link:before
  92. font-family: fontello
  93. content: '\e870'
  94. color: #bfbfbf
  95. font-size: 1rem
  96. padding: 0.5em
  97. .note
  98. position: relative
  99. .sidenote
  100. line-height: 1.1em
  101. position: absolute
  102. right: -18em
  103. width: 14em
  104. transform: translateY(-50%)
  105. background-color: #fff7d4
  106. outline-style: solid
  107. outline-width: 1px
  108. outline-offset: -1px
  109. outline-color: #e3d9aa
  110. box-shadow: 0 3px 0 0 rgba(0, 0, 0, .04)
  111. .note-content
  112. font-size: 80%
  113. padding: .6em 1.2em
  114. .important
  115. border: 1px solid #fd6623
  116. background-color: #fff7d4
  117. box-shadow: 0 3px 0 0 rgba(0, 0, 0, .04)
  118. margin: 1.25rem 0
  119. .note-icon
  120. color: #fd6623
  121. display: table-cell
  122. width: 3em
  123. text-align: center
  124. .note-icon::before
  125. font-family: 'fontello'
  126. content: '\e871'
  127. .note-content
  128. display: table-cell
  129. padding: 1em 1em 1em 0em
  130. pre
  131. font-family: 'Source Code Pro', monospace
  132. color: $text-white
  133. font-size: 14px
  134. line-height: 1.6em
  135. padding: 1.4em
  136. background-color: $dark-grey
  137. overflow: auto
  138. .callout
  139. color: $text-black
  140. background-color: #bfbfbf
  141. border: 1px solid #000
  142. margin-left: 1.4em
  143. padding: 0.1em 0.3em
  144. .hljs-built_in
  145. color: #d19a66
  146. .hljs-title
  147. font-weight: 400
  148. .k, .kd, .o, .hljs-keyword, .nt
  149. color: #e06c75
  150. .s, .s2, .hljs-string
  151. color: #98c379
  152. .c1, .hljs-comment
  153. color: #abb2bf
  154. [data-pseudo-content]::before
  155. content: attr(data-pseudo-content)
  156. code
  157. font-family: 'Source Code Pro', monospace
  158. font-size: 15px
  159. code.type,
  160. code.mark
  161. font-family: Source Sans Pro, sans-serif
  162. font-size: 0.9375em
  163. line-height: 120%
  164. border: 1px solid $gray-light
  165. padding: 2px 6px
  166. margin-right: 2px
  167. color: $blue-dark-faded
  168. background-color: $gray-lighter
  169. .file
  170. color: $orange-primary
  171. code.mark
  172. border: 1px solid $orange-primary
  173. code.scriptfilelabel
  174. font-size: 14px
  175. position: relative
  176. top: 20px
  177. kbd
  178. font-family: Source Sans Pro, sans-serif
  179. background-color: $light-grey
  180. padding: 0.02em 0.4em
  181. table
  182. margin-top: .625rem
  183. margin-bottom: 2.5rem
  184. width: 100%
  185. border: 1px solid #d8dde6
  186. tr:nth-child(odd)
  187. background-color: #f7f8fa
  188. .game-container
  189. position: relative
  190. img
  191. display: block
  192. position: absolute
  193. top: 0
  194. left: 0
  195. margin: 0
  196. width: 100%
  197. height: 100%
  198. button
  199. color: #4b4f4d
  200. font-size: 1.1em
  201. font-weight: 600
  202. display: block
  203. position: absolute
  204. top: 50%
  205. left: 50%
  206. transform: translateX(-50%) translateY(-50%)
  207. border: none
  208. border-radius: 2px
  209. background-color: hsla(0, 0%, 100%, .75)
  210. padding: 1em 1.2em
  211. .icon:before
  212. font-family: icomoon-15
  213. -webkit-font-smoothing: antialiased
  214. font-size: 23px
  215. font-weight: 400
  216. content: "\e90a"
  217. vertical-align: middle
  218. margin: 0 0.2em
  219. canvas
  220. display: block
  221. top: 0
  222. left: 0
  223. max-width: 100%
  224. max-height: 100%
  225. // COPY TO CLIPBOARD
  226. .copy-to-clipboard:before
  227. font-family: 'fontello'
  228. font-size: 16px
  229. content: "\e819"
  230. .copy-to-clipboard:active
  231. transform: translateY(-8px)
  232. .copy-to-clipboard
  233. position: absolute
  234. right: -10px
  235. background-color: transparent
  236. transform: translateY(-10px)
  237. border: 0
  238. color: #13234a