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.

style.css 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. outline: 0;
  5. }
  6. body {
  7. padding: 80px 100px;
  8. font: 13px "Helvetica Neue", "Lucida Grande", "Arial";
  9. background: #ECE9E9 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ECE9E9));
  10. background: #ECE9E9 -moz-linear-gradient(top, #fff, #ECE9E9);
  11. background-repeat: no-repeat;
  12. color: #555;
  13. -webkit-font-smoothing: antialiased;
  14. }
  15. h1, h2, h3 {
  16. font-size: 22px;
  17. color: #343434;
  18. }
  19. h1 em, h2 em {
  20. padding: 0 5px;
  21. font-weight: normal;
  22. }
  23. h1 {
  24. font-size: 60px;
  25. }
  26. h2 {
  27. margin-top: 10px;
  28. }
  29. h3 {
  30. margin: 5px 0 10px 0;
  31. padding-bottom: 5px;
  32. border-bottom: 1px solid #eee;
  33. font-size: 18px;
  34. }
  35. ul li {
  36. list-style: none;
  37. }
  38. ul li:hover {
  39. cursor: pointer;
  40. color: #2e2e2e;
  41. }
  42. ul li .path {
  43. padding-left: 5px;
  44. font-weight: bold;
  45. }
  46. ul li .line {
  47. padding-right: 5px;
  48. font-style: italic;
  49. }
  50. ul li:first-child .path {
  51. padding-left: 0;
  52. }
  53. p {
  54. line-height: 1.5;
  55. }
  56. a {
  57. color: #555;
  58. text-decoration: none;
  59. }
  60. a:hover {
  61. color: #303030;
  62. }
  63. #stacktrace {
  64. margin-top: 15px;
  65. }
  66. .directory h1 {
  67. margin-bottom: 15px;
  68. font-size: 18px;
  69. }
  70. ul#files {
  71. width: 100%;
  72. height: 100%;
  73. overflow: hidden;
  74. }
  75. ul#files li {
  76. float: left;
  77. width: 30%;
  78. line-height: 25px;
  79. margin: 1px;
  80. }
  81. ul#files li a {
  82. display: block;
  83. height: 25px;
  84. border: 1px solid transparent;
  85. -webkit-border-radius: 5px;
  86. -moz-border-radius: 5px;
  87. border-radius: 5px;
  88. overflow: hidden;
  89. white-space: nowrap;
  90. }
  91. ul#files li a:focus,
  92. ul#files li a:hover {
  93. background: rgba(255,255,255,0.65);
  94. border: 1px solid #ececec;
  95. }
  96. ul#files li a.highlight {
  97. -webkit-transition: background .4s ease-in-out;
  98. background: #ffff4f;
  99. border-color: #E9DC51;
  100. }
  101. #search {
  102. display: block;
  103. position: fixed;
  104. top: 20px;
  105. right: 20px;
  106. width: 90px;
  107. -webkit-transition: width ease 0.2s, opacity ease 0.4s;
  108. -moz-transition: width ease 0.2s, opacity ease 0.4s;
  109. -webkit-border-radius: 32px;
  110. -moz-border-radius: 32px;
  111. -webkit-box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.25), inset 0px 1px 3px rgba(0, 0, 0, 0.7), 0px 1px 0px rgba(255, 255, 255, 0.03);
  112. -moz-box-shadow: inset 0px 0px 3px rgba(0, 0, 0, 0.25), inset 0px 1px 3px rgba(0, 0, 0, 0.7), 0px 1px 0px rgba(255, 255, 255, 0.03);
  113. -webkit-font-smoothing: antialiased;
  114. text-align: left;
  115. font: 13px "Helvetica Neue", Arial, sans-serif;
  116. padding: 4px 10px;
  117. border: none;
  118. background: transparent;
  119. margin-bottom: 0;
  120. outline: none;
  121. opacity: 0.7;
  122. color: #888;
  123. }
  124. #search:focus {
  125. width: 120px;
  126. opacity: 1.0;
  127. }
  128. /*views*/
  129. #files span {
  130. display: inline-block;
  131. overflow: hidden;
  132. text-overflow: ellipsis;
  133. text-indent: 10px;
  134. }
  135. #files .name {
  136. background-repeat: no-repeat;
  137. }
  138. #files .icon .name {
  139. text-indent: 28px;
  140. }
  141. /*tiles*/
  142. .view-tiles .name {
  143. width: 100%;
  144. background-position: 8px 5px;
  145. }
  146. .view-tiles .size,
  147. .view-tiles .date {
  148. display: none;
  149. }
  150. /*details*/
  151. ul#files.view-details li {
  152. float: none;
  153. display: block;
  154. width: 90%;
  155. }
  156. ul#files.view-details li.header {
  157. height: 25px;
  158. background: #000;
  159. color: #fff;
  160. font-weight: bold;
  161. }
  162. .view-details .header {
  163. border-radius: 5px;
  164. }
  165. .view-details .name {
  166. width: 60%;
  167. background-position: 8px 5px;
  168. }
  169. .view-details .size {
  170. width: 10%;
  171. }
  172. .view-details .date {
  173. width: 30%;
  174. }
  175. .view-details .size,
  176. .view-details .date {
  177. text-align: right;
  178. direction: rtl;
  179. }
  180. /*mobile*/
  181. @media (max-width: 768px) {
  182. body {
  183. font-size: 13px;
  184. line-height: 16px;
  185. padding: 0;
  186. }
  187. #search {
  188. position: static;
  189. width: 100%;
  190. font-size: 2em;
  191. line-height: 1.8em;
  192. text-indent: 10px;
  193. border: 0;
  194. border-radius: 0;
  195. padding: 10px 0;
  196. margin: 0;
  197. }
  198. #search:focus {
  199. width: 100%;
  200. border: 0;
  201. opacity: 1;
  202. }
  203. .directory h1 {
  204. font-size: 2em;
  205. line-height: 1.5em;
  206. color: #fff;
  207. background: #000;
  208. padding: 15px 10px;
  209. margin: 0;
  210. }
  211. ul#files {
  212. border-top: 1px solid #cacaca;
  213. }
  214. ul#files li {
  215. float: none;
  216. width: auto !important;
  217. display: block;
  218. border-bottom: 1px solid #cacaca;
  219. font-size: 2em;
  220. line-height: 1.2em;
  221. text-indent: 0;
  222. margin: 0;
  223. }
  224. ul#files li:nth-child(odd) {
  225. background: #e0e0e0;
  226. }
  227. ul#files li a {
  228. height: auto;
  229. border: 0;
  230. border-radius: 0;
  231. padding: 15px 10px;
  232. }
  233. ul#files li a:focus,
  234. ul#files li a:hover {
  235. border: 0;
  236. }
  237. #files .header,
  238. #files .size,
  239. #files .date {
  240. display: none !important;
  241. }
  242. #files .name {
  243. float: none;
  244. display: inline-block;
  245. width: 100%;
  246. text-indent: 0;
  247. background-position: 0 50%;
  248. }
  249. #files .icon .name {
  250. text-indent: 41px;
  251. }
  252. }