docs.css 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. /* Styles for the demo page only. See spectrum.css for the actual colorpicker styles */
  2. html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
  3. body { margin: 0; font-size: 14px; line-height: 1.5; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAG0lEQVQIW2OMqXogyYADMIIkl7QpPMcmP+gkAYLGGdeobP2EAAAAAElFTkSuQmCC); }
  4. body, button, input, select, textarea { font-family: Droid Sans, Tahoma, sans-serif; color: #222; }
  5. body p { font-family: Verdana; font-size: 12px; color: #333; line-height: 1.8; }
  6. h1 { font-family: Lucida Sans, Droid Sans, Verdana; font-size: 30px; line-height: inherit; margin: 0; padding:0; font-weight: lighter; position:fixed; top: 3px; left: 10px; }
  7. h1 a { text-decoration: none; color: #334 !important; }
  8. h1 a:hover { text-decoration: underline; color: #336 !important; }
  9. #header { background: #eee; background: #eee; height: 60px; line-height: 60px; padding: 3px 10px;}
  10. #goals { margin:0 auto; padding:0; width: 98%; }
  11. .goal { float: left; width: 29%; margin:1%; padding:1%; color: #335; min-height: 300px; background: #eee; border-radius: 10px; font-family: Verdana; }
  12. #docs .goal h4 { text-align: center; margin: .5em 0; font-weight: lighter; text-decoration: underline; font-family: Verdana; }
  13. a { color: #00e; }
  14. a:visited { color: #009; }
  15. a:hover { color: #06e; }
  16. a:focus { outline: thin dotted; }
  17. #header h2 { float:left; margin:0; padding:0; margin-left: 180px; font-size: 14px; line-height: inherit; font-weight: normal; font-family: Georgia;}
  18. #header h2 em {background: #444; color: #fff; font-style: normal; padding: 5px; border-radius: 5px; border: solid 1px #999; box-shadow: 0 0 4px #333;}
  19. #links { float:right; text-align: right; }
  20. #pick2-details { font: monospace; }
  21. #switch-current { float: left; position:relative; display:none;}
  22. /*#switch-current .spectrum-container { position: fixed; top:60px; left: 10px; }*/
  23. #docs-content { margin-left: 190px; padding: 10px 30px; border:solid 10px #ecc; border-right:none;border-bottom:none; padding-bottom: 20px; background: #fff; background: rgba(255, 255, 255, .6); }
  24. .footer { padding-top: 50px; }
  25. .switch-current-output { display:none; margin:3px auto; width: 200px; text-align: center; }
  26. .type { padding-left: 4px; font-size: .8em; font-weight: bold;}
  27. .description, .example {
  28. padding: 10px;
  29. border: 1px solid #888;
  30. background: white;
  31. position:relative;
  32. padding-top: 15px;
  33. }
  34. #docs { }
  35. #docs ul { margin-left: 25px; padding-left:10px; }
  36. #docs li { list-style: square; margin-left: 6px; }
  37. #docs p { margin: 0; padding:0; padding-top:4px; }
  38. #docs pre { position:relative; }
  39. #docs h2 { margin: 30px -25px; border-bottom: solid 1px; }
  40. #docs h3 { padding: 10px 15px; margin: 10px auto; margin-top: 40px; border: solid 3px #aaa;
  41. box-shadow: 0 3px 5px #333; }
  42. #docs h3.point { box-shadow: none; margin-left: -30px; margin-right: -30px; border: solid 1px #999; border-left: none; border-right:none;}
  43. #code-heading { font-size: 24px; text-align: center; margin: 6px 0; }
  44. #docs-content { color: #222; }
  45. #docs-content.dark { color: #ddd; }
  46. code { font-weight: bold; color: #933; }
  47. .note { float:right; background: #eee; padding: 4px; font-size: 11px; border: solid 1px #bbb; border-radius: 4px;}
  48. .option-content .note { float:none; position:absolute; right: 0; top: -40px;}
  49. .option-content { position:relative; background: #ededed;
  50. border: solid 2px #aaa; border-top: none;
  51. padding: 12px; width: 95%; margin: 0 auto;
  52. margin-top: -10px; padding-top: 20px;
  53. box-shadow: 0 0 10px #ccc; border-radius: 0 0 5px 5px;
  54. }
  55. .em-label { padding:4px; margin-left: 10px; display:inline-block; vertical-align: top; margin-top: 3px; }
  56. .hide { display:none; }
  57. .clearfix:before, .clearfix:after { content: ""; display: table; }
  58. .clearfix:after { clear: both; }
  59. .clearfix { *zoom: 1; }
  60. input[type="text"] { height: auto; }
  61. .label {
  62. padding: 1px 4px 2px;
  63. font-size: 10.998px;
  64. font-weight: bold;
  65. line-height: 13px;
  66. color: #ffffff;
  67. vertical-align: middle;
  68. white-space: nowrap;
  69. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  70. background-color: #999999;
  71. -webkit-border-radius: 3px;
  72. -moz-border-radius: 3px;
  73. border-radius: 3px;
  74. }
  75. .label:hover {
  76. color: #ffffff;
  77. text-decoration: none;
  78. }
  79. .label-important {
  80. background-color: #b94a48;
  81. }
  82. .label-important:hover {
  83. background-color: #953b39;
  84. }
  85. .label-result {
  86. background-color: #3a87ad;
  87. margin-right: 5px;
  88. }
  89. .example .label-result {
  90. position:absolute;
  91. top: -10px;
  92. left: 5px;
  93. }
  94. .label-warning {
  95. background-color: #f89406;
  96. }
  97. .label-warning:hover {
  98. background-color: #c67605;
  99. }
  100. .label-success {
  101. background-color: #468847;
  102. }
  103. .label-success:hover {
  104. background-color: #356635;
  105. }
  106. .label-info {
  107. background-color: #3a87ad;
  108. }
  109. .label-info:hover {
  110. background-color: #2d6987;
  111. }
  112. .label-inverse {
  113. background-color: #333333;
  114. }
  115. .label-inverse:hover {
  116. background-color: #1a1a1a;
  117. }
  118. .alert {
  119. padding: 8px 35px 8px 14px;
  120. margin: 10px 0;
  121. text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  122. background-color: #fcf8e3;
  123. border: 1px solid #fbeed5;
  124. -webkit-border-radius: 4px;
  125. -moz-border-radius: 4px;
  126. border-radius: 4px;
  127. color: #c09853;
  128. }
  129. .alert-heading {
  130. color: inherit;
  131. }
  132. .alert .close {
  133. position: relative;
  134. top: -2px;
  135. right: -21px;
  136. line-height: 18px;
  137. }
  138. .alert-success {
  139. background-color: #dff0d8;
  140. border-color: #d6e9c6;
  141. color: #468847;
  142. }
  143. .alert-danger,
  144. .alert-error {
  145. background-color: #f2dede;
  146. border-color: #eed3d7;
  147. color: #b94a48;
  148. }
  149. .alert-info {
  150. background-color: #d9edf7;
  151. border-color: #bce8f1;
  152. color: #3a87ad;
  153. }
  154. .alert-block {
  155. padding-top: 14px;
  156. padding-bottom: 14px;
  157. }
  158. .alert-block > p,
  159. .alert-block > ul {
  160. margin-bottom: 0;
  161. }
  162. .alert-block p + p {
  163. margin-top: 5px;
  164. }
  165. .btn-primary:visited {
  166. color: #ffffff;
  167. }
  168. /* prettify */
  169. .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888; background: white;}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
  170. /* desert scheme ported from vim to google prettify */
  171. .dark pre { display: block; background-color: #333; border:1px solid #888; padding:2px; }
  172. .dark pre .nocode { background-color: none; color: #000 }
  173. .dark pre .str { color: #ffa0a0 } /* string - pink */
  174. .dark pre .kwd { color: #f0e68c; font-weight: bold }
  175. .dark pre .com { color: #87ceeb } /* comment - skyblue */
  176. .dark pre .typ { color: #98fb98 } /* type - lightgreen */
  177. .dark pre .lit { color: #cd5c5c } /* literal - darkred */
  178. .dark pre .pun { color: #fff } /* punctuation */
  179. .dark pre .pln { color: #fff } /* plaintext */
  180. .dark pre .tag { color: #f0e68c; font-weight: bold } /* html/xml tag - lightyellow */
  181. .dark pre .atn { color: #bdb76b; font-weight: bold } /* attribute name - khaki */
  182. .dark pre .atv { color: #ffa0a0 } /* attribute value - pink */
  183. .dark pre .dec { color: #98fb98 } /* decimal - lightgreen */
  184. @media print {
  185. .dark pre { background-color: none }
  186. .dark pre .str, .dark code .str { color: #060 }
  187. .dark pre .kwd, .dark code .kwd { color: #006; font-weight: bold }
  188. .dark pre .com, .dark code .com { color: #600; font-style: italic }
  189. .dark pre .typ, .dark code .typ { color: #404; font-weight: bold }
  190. .dark pre .lit, .dark code .lit { color: #044 }
  191. .dark pre .pun, .dark code .pun { color: #440 }
  192. .dark pre .pln, .dark code .pln { color: #000 }
  193. .dark pre .tag, .dark code .tag { color: #006; font-weight: bold }
  194. .dark pre .atn, .dark code .atn { color: #404 }
  195. .dark pre .atv, .dark code .atv { color: #060 }
  196. }
  197. /* http://projects.jga.me/toc/ */
  198. #toc {
  199. top: 76px;
  200. bottom: 0;
  201. left: 0px;
  202. position: fixed;
  203. font-size: 11px;
  204. width: 180px;
  205. color: #222;
  206. overflow-y: auto;
  207. font-family: Georgia;
  208. }
  209. #toc-slider {
  210. position:fixed;
  211. top:0;
  212. bottom:0;
  213. left: 0;
  214. width: 170px;
  215. background: #eee;
  216. line-height: 60px;
  217. padding-top: 3px;
  218. padding-left: 10px;
  219. border-right: solid 10px #cce;
  220. z-index: -1;
  221. }
  222. @media (max-device-width: 480px) {
  223. #toc, #toc-slider, h1 {
  224. position:absolute;
  225. }
  226. }
  227. #toc ul {
  228. margin: 0;
  229. padding: 0;
  230. list-style: none;
  231. }
  232. #toc li {
  233. padding: 5px 10px;
  234. }
  235. #toc a {
  236. color: #225;
  237. text-decoration: none;
  238. display: block;
  239. }
  240. #toc .toc-h2 {
  241. padding-left: 10px;
  242. }
  243. #toc .toc-h3 {
  244. padding-left: 25px;
  245. }
  246. #toc .toc-active {
  247. background: #CCE;
  248. }
  249. .full-spectrum {
  250. margin: 0 auto;
  251. }
  252. .full-spectrum .sp-palette {
  253. max-width: 200px;
  254. }