Dieses Repository beinhaltet HTML- und Javascript Code zur einer NotizenWebApp auf Basis von Web Storage. Zudem sind Mocha/Chai Tests im Browser enthalten. https://meinenotizen.netlify.app/
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.

mocha.css 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. @charset "utf-8";
  2. body {
  3. margin:0;
  4. }
  5. #mocha {
  6. font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  7. margin: 60px 50px;
  8. }
  9. #mocha ul,
  10. #mocha li {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. #mocha ul {
  15. list-style: none;
  16. }
  17. #mocha h1,
  18. #mocha h2 {
  19. margin: 0;
  20. }
  21. #mocha h1 {
  22. margin-top: 15px;
  23. font-size: 1em;
  24. font-weight: 200;
  25. }
  26. #mocha h1 a {
  27. text-decoration: none;
  28. color: inherit;
  29. }
  30. #mocha h1 a:hover {
  31. text-decoration: underline;
  32. }
  33. #mocha .suite .suite h1 {
  34. margin-top: 0;
  35. font-size: .8em;
  36. }
  37. #mocha .hidden {
  38. display: none;
  39. }
  40. #mocha h2 {
  41. font-size: 12px;
  42. font-weight: normal;
  43. cursor: pointer;
  44. }
  45. #mocha .suite {
  46. margin-left: 15px;
  47. }
  48. #mocha .test {
  49. margin-left: 15px;
  50. overflow: hidden;
  51. }
  52. #mocha .test.pending:hover h2::after {
  53. content: '(pending)';
  54. font-family: arial, sans-serif;
  55. }
  56. #mocha .test.pass.medium .duration {
  57. background: #c09853;
  58. }
  59. #mocha .test.pass.slow .duration {
  60. background: #b94a48;
  61. }
  62. #mocha .test.pass::before {
  63. content: '✓';
  64. font-size: 12px;
  65. display: block;
  66. float: left;
  67. margin-right: 5px;
  68. color: #00d6b2;
  69. }
  70. #mocha .test.pass .duration {
  71. font-size: 9px;
  72. margin-left: 5px;
  73. padding: 2px 5px;
  74. color: #fff;
  75. -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  76. -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  77. box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
  78. -webkit-border-radius: 5px;
  79. -moz-border-radius: 5px;
  80. -ms-border-radius: 5px;
  81. -o-border-radius: 5px;
  82. border-radius: 5px;
  83. }
  84. #mocha .test.pass.fast .duration {
  85. display: none;
  86. }
  87. #mocha .test.pending {
  88. color: #0b97c4;
  89. }
  90. #mocha .test.pending::before {
  91. content: '◦';
  92. color: #0b97c4;
  93. }
  94. #mocha .test.fail {
  95. color: #c00;
  96. }
  97. #mocha .test.fail pre {
  98. color: black;
  99. }
  100. #mocha .test.fail::before {
  101. content: '✖';
  102. font-size: 12px;
  103. display: block;
  104. float: left;
  105. margin-right: 5px;
  106. color: #c00;
  107. }
  108. #mocha .test pre.error {
  109. color: #c00;
  110. max-height: 300px;
  111. overflow: auto;
  112. }
  113. #mocha .test .html-error {
  114. overflow: auto;
  115. color: black;
  116. display: block;
  117. float: left;
  118. clear: left;
  119. font: 12px/1.5 monaco, monospace;
  120. margin: 5px;
  121. padding: 15px;
  122. border: 1px solid #eee;
  123. max-width: 85%; /*(1)*/
  124. max-width: -webkit-calc(100% - 42px);
  125. max-width: -moz-calc(100% - 42px);
  126. max-width: calc(100% - 42px); /*(2)*/
  127. max-height: 300px;
  128. word-wrap: break-word;
  129. border-bottom-color: #ddd;
  130. -webkit-box-shadow: 0 1px 3px #eee;
  131. -moz-box-shadow: 0 1px 3px #eee;
  132. box-shadow: 0 1px 3px #eee;
  133. -webkit-border-radius: 3px;
  134. -moz-border-radius: 3px;
  135. border-radius: 3px;
  136. }
  137. #mocha .test .html-error pre.error {
  138. border: none;
  139. -webkit-border-radius: 0;
  140. -moz-border-radius: 0;
  141. border-radius: 0;
  142. -webkit-box-shadow: 0;
  143. -moz-box-shadow: 0;
  144. box-shadow: 0;
  145. padding: 0;
  146. margin: 0;
  147. margin-top: 18px;
  148. max-height: none;
  149. }
  150. /**
  151. * (1): approximate for browsers not supporting calc
  152. * (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)
  153. * ^^ seriously
  154. */
  155. #mocha .test pre {
  156. display: block;
  157. float: left;
  158. clear: left;
  159. font: 12px/1.5 monaco, monospace;
  160. margin: 5px;
  161. padding: 15px;
  162. border: 1px solid #eee;
  163. max-width: 85%; /*(1)*/
  164. max-width: -webkit-calc(100% - 42px);
  165. max-width: -moz-calc(100% - 42px);
  166. max-width: calc(100% - 42px); /*(2)*/
  167. word-wrap: break-word;
  168. border-bottom-color: #ddd;
  169. -webkit-box-shadow: 0 1px 3px #eee;
  170. -moz-box-shadow: 0 1px 3px #eee;
  171. box-shadow: 0 1px 3px #eee;
  172. -webkit-border-radius: 3px;
  173. -moz-border-radius: 3px;
  174. border-radius: 3px;
  175. }
  176. #mocha .test h2 {
  177. position: relative;
  178. }
  179. #mocha .test a.replay {
  180. position: absolute;
  181. top: 3px;
  182. right: 0;
  183. text-decoration: none;
  184. vertical-align: middle;
  185. display: block;
  186. width: 15px;
  187. height: 15px;
  188. line-height: 15px;
  189. text-align: center;
  190. background: #eee;
  191. font-size: 15px;
  192. -webkit-border-radius: 15px;
  193. -moz-border-radius: 15px;
  194. border-radius: 15px;
  195. -webkit-transition:opacity 200ms;
  196. -moz-transition:opacity 200ms;
  197. -o-transition:opacity 200ms;
  198. transition: opacity 200ms;
  199. opacity: 0.3;
  200. color: #888;
  201. }
  202. #mocha .test:hover a.replay {
  203. opacity: 1;
  204. }
  205. #mocha-report.pass .test.fail {
  206. display: none;
  207. }
  208. #mocha-report.fail .test.pass {
  209. display: none;
  210. }
  211. #mocha-report.pending .test.pass,
  212. #mocha-report.pending .test.fail {
  213. display: none;
  214. }
  215. #mocha-report.pending .test.pass.pending {
  216. display: block;
  217. }
  218. #mocha-error {
  219. color: #c00;
  220. font-size: 1.5em;
  221. font-weight: 100;
  222. letter-spacing: 1px;
  223. }
  224. #mocha-stats {
  225. position: fixed;
  226. top: 15px;
  227. right: 10px;
  228. font-size: 12px;
  229. margin: 0;
  230. color: #888;
  231. z-index: 1;
  232. }
  233. #mocha-stats .progress {
  234. float: right;
  235. padding-top: 0;
  236. /**
  237. * Set safe initial values, so mochas .progress does not inherit these
  238. * properties from Bootstrap .progress (which causes .progress height to
  239. * equal line height set in Bootstrap).
  240. */
  241. height: auto;
  242. -webkit-box-shadow: none;
  243. -moz-box-shadow: none;
  244. box-shadow: none;
  245. background-color: initial;
  246. }
  247. #mocha-stats em {
  248. color: black;
  249. }
  250. #mocha-stats a {
  251. text-decoration: none;
  252. color: inherit;
  253. }
  254. #mocha-stats a:hover {
  255. border-bottom: 1px solid #eee;
  256. }
  257. #mocha-stats li {
  258. display: inline-block;
  259. margin: 0 5px;
  260. list-style: none;
  261. padding-top: 11px;
  262. }
  263. #mocha-stats canvas {
  264. width: 40px;
  265. height: 40px;
  266. }
  267. #mocha code .comment { color: #ddd; }
  268. #mocha code .init { color: #2f6fad; }
  269. #mocha code .string { color: #5890ad; }
  270. #mocha code .keyword { color: #8a6343; }
  271. #mocha code .number { color: #2f6fad; }
  272. @media screen and (max-device-width: 480px) {
  273. #mocha {
  274. margin: 60px 0px;
  275. }
  276. #mocha #stats {
  277. position: absolute;
  278. }
  279. }