app.scss 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. @charset "UTF-8";
  2. @import 'function';
  3. @import 'reset';
  4. @import 'highlight';
  5. /* General Style */
  6. body {
  7. font-size: 16px;
  8. font-family: Helvetica, Arial, sans-serif;
  9. color: #52514c;
  10. background: #ffffff;
  11. }
  12. a {
  13. text-decoration: none;
  14. color: #4298BA;
  15. &:visited {
  16. color: #4298BA;
  17. }
  18. &:hover {
  19. color: #0F769F;
  20. }
  21. &:active {
  22. color:#9E792E;
  23. }
  24. &:hover, &:active {
  25. outline: 0;
  26. }
  27. }
  28. /* Layout */
  29. .wrapper {
  30. width: 960px;
  31. margin: 0 auto;
  32. header {
  33. padding: 50px 0 15px;
  34. h1 {
  35. width: 300px;
  36. margin: 0 auto;
  37. padding: 130px 0 0 0;
  38. background-position: 4px 0;
  39. @include at2x('logo', 'png', 264px, 107px);
  40. a {
  41. display: block;
  42. width: 180px;
  43. height: 50px;
  44. margin: 0 auto;
  45. font-size: 50px;
  46. font-family: 'Myriad', 'Helvetica Neue', Helvetica;
  47. color: #3b5f6d;
  48. text-align: center;
  49. text-indent: -9999px;
  50. overflow: hidden;
  51. background-position: center 0;
  52. @include at2x('title', 'png', 171px, 39px);
  53. }
  54. }
  55. .desc {
  56. font-size: 19px;
  57. color: #9ba5a9;
  58. text-align: center;
  59. }
  60. }
  61. nav {
  62. text-align: center;
  63. padding: 26px 0;
  64. a {
  65. padding: 0 25px;
  66. font-size: 16px;
  67. color: #4f838f;
  68. line-height: 20px;
  69. &:hover {
  70. color: #666666;
  71. }
  72. &.active {
  73. color: #000000;
  74. }
  75. }
  76. }
  77. section {
  78. border-top: 2px solid #dee7ec;
  79. }
  80. footer {
  81. font-size: 14px;
  82. margin: 40px 0;
  83. color: #999999;
  84. text-align: center;
  85. a {
  86. color: #999999;
  87. &:hover {
  88. text-decoration: underline;
  89. }
  90. }
  91. }
  92. #link-fork {
  93. display: block;
  94. width: 133px;
  95. height: 133px;
  96. position: absolute;
  97. top: 0;
  98. right: 0;
  99. }
  100. }
  101. /* Demo Page */
  102. section#page-demo {
  103. border-top: none;
  104. .simditor {
  105. box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  106. }
  107. #preview {
  108. min-height: 100px;
  109. padding: 15px;
  110. margin: 60px 0 0 0;
  111. border: 1px solid #dfdfdf;
  112. }
  113. }
  114. /* Sidebar Page */
  115. section.page-sidebar {
  116. position: relative;
  117. margin: 0 0 30px 0;
  118. aside {
  119. width: 180px;
  120. padding: 50px 0 0 0;
  121. position: absolute;
  122. top: 0;
  123. left: 0;
  124. ul {
  125. padding: 0 10px 0 60px;
  126. li {
  127. margin: 0 0 30px 0;
  128. position: relative;
  129. .icon {
  130. display: none;
  131. width: 10px;
  132. line-height: 20px;
  133. font-size: 14px;
  134. color: #000000;
  135. position: absolute;
  136. top: 0;
  137. left: -18px;
  138. }
  139. a {
  140. line-height: 20px;
  141. font-size: 18px;
  142. color: #a3afb2;
  143. &:hover {
  144. color: #666666;
  145. }
  146. }
  147. &.active {
  148. .icon {
  149. display: block;
  150. }
  151. a {
  152. color: #000000;
  153. }
  154. }
  155. }
  156. }
  157. }
  158. article {
  159. padding: 40px 20px 10px 60px;
  160. margin: 0 0 0 180px;
  161. min-height: 500px;
  162. }
  163. }
  164. /* Download Page */
  165. section#page-download {
  166. min-height: 400px;
  167. .version {
  168. border-bottom: 1px solid #dfdfdf;
  169. .title {
  170. padding: 15px 15px;
  171. cursor: pointer;
  172. .icon {
  173. display: inline-block;
  174. width: 12px;
  175. line-height: 30px;
  176. font-size: 20px;
  177. }
  178. .name {
  179. font-size: 20px;
  180. line-height: 30px;
  181. font-weight: bold;
  182. margin: 0 20px;
  183. }
  184. .date {
  185. font-size: 16px;
  186. line-height: 30px;
  187. color: #aaaaaa;
  188. }
  189. .btn-download {
  190. display: inline-block;
  191. float: right;
  192. line-height: 30px;
  193. padding: 0 15px;
  194. font-size: 14px;
  195. color: #ffffff;
  196. background: #aaaaaa;
  197. border-radius: 3px;
  198. &:hover {
  199. background: #bbbbbb;
  200. }
  201. }
  202. }
  203. .release-notes {
  204. display: none;
  205. margin: 10px 0 25px 0;
  206. padding: 0 50px;
  207. list-style:disc outside none;
  208. li {
  209. margin: 0 0 10px 0;
  210. }
  211. }
  212. &.expand .release-notes {
  213. display: block;
  214. }
  215. }
  216. }
  217. /* Document Page */
  218. section.page-doc {
  219. dt {
  220. border-top: 1px solid #ddd;
  221. margin-top: 30px;
  222. margin-bottom: 10px;
  223. padding-top: 20px;
  224. &:first-child {
  225. border-top: none;
  226. margin-top: 0;
  227. padding-top: 0;
  228. }
  229. & > a,
  230. & > span {
  231. margin-left: 10px;
  232. &:first-child {
  233. margin-left: 0;
  234. }
  235. }
  236. .name {
  237. font-size: 1.2em;
  238. font-weight: bold;
  239. }
  240. .param-type,
  241. .type {
  242. background-color: #efefef;
  243. border-radius: 3px;
  244. padding: 2px 6px;
  245. font-size: 0.8em;
  246. vertical-align: text-top;
  247. }
  248. .default {
  249. color: #aaa;
  250. font-size: 0.8em;
  251. }
  252. .params {
  253. &:before {
  254. content: "(";
  255. }
  256. &:after {
  257. content: ")";
  258. }
  259. .param:after {
  260. content: ",";
  261. margin: 0 6px 0 3px;
  262. }
  263. .param:last-child:after {
  264. content: "";
  265. margin: 0;
  266. }
  267. }
  268. .return {
  269. font-size: 0.8em;
  270. color: green;
  271. }
  272. }
  273. dd {
  274. display: none;
  275. &.expand {
  276. display: block;
  277. }
  278. }
  279. }
  280. /* Extension Page */
  281. section#page-extension {
  282. article {
  283. padding: 40px 130px 10px;
  284. #btn-submit-extension {
  285. margin: 20px 0 0 0;
  286. display: inline-block;
  287. padding: 6px 12px;
  288. color: #333333;
  289. border: 1px solid #cccccc;
  290. border-radius: 4px;
  291. &:hover {
  292. border-color: #aaaaaa;
  293. background: #f3f3f3;
  294. }
  295. }
  296. }
  297. }