Simple hex excercises

hexmeh.css 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. html, body {
  2. margin: 0;
  3. padding: 0;
  4. background-color: #ccc;
  5. }
  6. header {
  7. position: absolute;
  8. top: 0;
  9. left: 0;
  10. right: 0;
  11. z-index: 1;
  12. padding: 0.45em 1em;
  13. text-align: left;
  14. color: #eee;
  15. -moz-box-shadow:inset 0px 0px 0px 0px #fff;
  16. -webkit-box-shadow:inset 0px 0px 0px 0px #fff;
  17. box-shadow:inset 0px 0px 0px 0px #fff;
  18. background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #8c8c8c), color-stop(1, #000000) );
  19. background:-moz-linear-gradient( center top, #8c8c8c 5%, #000000 100% );
  20. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#8c8c8c', endColorstr='#000000');
  21. background-color:#8c8c8c;
  22. }
  23. header a {
  24. color: #eee;
  25. text-decoration: none;
  26. }
  27. header a:hover {
  28. color: #eee;
  29. text-decoration: underline;
  30. }
  31. footer {
  32. /*position: absolute;
  33. bottom: 0;
  34. left: 0;
  35. right: 0;*/
  36. text-align: center;
  37. padding: 0.45em 1em;
  38. }
  39. textarea, select, input, button {
  40. padding: 0.35em;
  41. border-radius: 4px;
  42. }
  43. .center {
  44. text-align: center;
  45. }
  46. .right {
  47. float: right;
  48. }
  49. .left {
  50. float: left;
  51. }
  52. .hide {
  53. display: none;
  54. }
  55. .list ul {
  56. list-style: none;
  57. }
  58. .list ul li {
  59. margin: 0;
  60. }
  61. div[role="main"] {
  62. margin: 3em 2em;
  63. }
  64. .part {
  65. padding: 0.35em 1em;
  66. border: 1px dotted #000;
  67. border-radius: 4px;
  68. font-weight: bold;
  69. background-color: #eee;
  70. }
  71. .mono {
  72. font-family: Fixed, monospace;
  73. }
  74. #drop-zone {
  75. /*width: 80%;*/
  76. border: 1px dashed #000;
  77. background-color: #fff;
  78. margin-left: auto;
  79. margin-right: auto;
  80. text-align: center;
  81. padding-top: 2em;
  82. padding-bottom: 2em;
  83. }
  84. #lineNumbers {
  85. display: inline-block;
  86. padding-right: 1em;
  87. text-align: left;
  88. vertical-align: text-top;
  89. }
  90. #lineHex {
  91. display: inline-block;
  92. padding-right: 1em;
  93. text-align: left;
  94. vertical-align: text-top;
  95. }
  96. #lineCharacters {
  97. display: inline-block;
  98. text-align: left;
  99. vertical-align: text-top;
  100. }
  101. #terminal {
  102. text-align: center;
  103. min-height: 20em;
  104. background-color: #000;
  105. color: #00A300;
  106. border-radius: 24px;
  107. text-shadow: 1px 1px #333;
  108. }
  109. .number {
  110. color: #6B6B6B;
  111. }
  112. .symbol {
  113. color: #A30000;
  114. }
  115. .hex {
  116. }
  117. .char {
  118. color: #A35200;
  119. }
  120. /**
  121. * Buttons
  122. */
  123. .button {
  124. display: inline-block;
  125. outline: none;
  126. cursor: pointer;
  127. text-align: center;
  128. text-decoration: none;
  129. font: 14px/100% Arial, Helvetica, sans-serif;
  130. padding: .5em 2em .55em;
  131. text-shadow: 0 1px 1px rgba(0,0,0,.3);
  132. -webkit-border-radius: .5em;
  133. -moz-border-radius: .5em;
  134. border-radius: .5em;
  135. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
  136. -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
  137. box-shadow: 0 1px 2px rgba(0,0,0,.2);
  138. }
  139. .button:hover {
  140. text-decoration: none;
  141. }
  142. .button:active {
  143. position: relative;
  144. top: 1px;
  145. }
  146. .black {
  147. color: #d7d7d7;
  148. border: solid 1px #333;
  149. background: #333;
  150. background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#000));
  151. background: -moz-linear-gradient(top, #666, #000);
  152. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#666666', endColorstr='#000000');
  153. }
  154. .black:hover {
  155. background: #000;
  156. background: -webkit-gradient(linear, left top, left bottom, from(#444), to(#000));
  157. background: -moz-linear-gradient(top, #444, #000);
  158. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#444444', endColorstr='#000000');
  159. }
  160. .black:active {
  161. color: #666;
  162. background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#444));
  163. background: -moz-linear-gradient(top, #000, #444);
  164. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#666666');
  165. }
  166. .gray {
  167. color: #e9e9e9;
  168. border: solid 1px #555;
  169. background: #6e6e6e;
  170. background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
  171. background: -moz-linear-gradient(top, #888, #575757);
  172. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
  173. }
  174. .gray:hover {
  175. background: #616161;
  176. background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#4b4b4b));
  177. background: -moz-linear-gradient(top, #757575, #4b4b4b);
  178. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
  179. }
  180. .gray:active {
  181. color: #afafaf;
  182. background: -webkit-gradient(linear, left top, left bottom, from(#575757), to(#888));
  183. background: -moz-linear-gradient(top, #575757, #888);
  184. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#575757', endColorstr='#888888');
  185. }
  186. .white {
  187. color: #606060;
  188. border: solid 1px #b7b7b7;
  189. background: #fff;
  190. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
  191. background: -moz-linear-gradient(top, #fff, #ededed);
  192. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
  193. }
  194. .white:hover {
  195. background: #ededed;
  196. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
  197. background: -moz-linear-gradient(top, #fff, #dcdcdc);
  198. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
  199. }
  200. .white:active {
  201. color: #999;
  202. background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
  203. background: -moz-linear-gradient(top, #ededed, #fff);
  204. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
  205. }
  206. .orange {
  207. color: #fef4e9;
  208. border: solid 1px #da7c0c;
  209. background: #f78d1d;
  210. background: -webkit-gradient(linear, left top, left bottom, from(#faa51a), to(#f47a20));
  211. background: -moz-linear-gradient(top, #faa51a, #f47a20);
  212. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#faa51a', endColorstr='#f47a20');
  213. }
  214. .orange:hover {
  215. background: #f47c20;
  216. background: -webkit-gradient(linear, left top, left bottom, from(#f88e11), to(#f06015));
  217. background: -moz-linear-gradient(top, #f88e11, #f06015);
  218. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f88e11', endColorstr='#f06015');
  219. }
  220. .orange:active {
  221. color: #fcd3a5;
  222. background: -webkit-gradient(linear, left top, left bottom, from(#f47a20), to(#faa51a));
  223. background: -moz-linear-gradient(top, #f47a20, #faa51a);
  224. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f47a20', endColorstr='#faa51a');
  225. }
  226. .red {
  227. color: #faddde;
  228. border: solid 1px #980c10;
  229. background: #d81b21;
  230. background: -webkit-gradient(linear, left top, left bottom, from(#ed1c24), to(#aa1317));
  231. background: -moz-linear-gradient(top, #ed1c24, #aa1317);
  232. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed1c24', endColorstr='#aa1317');
  233. }
  234. .red:hover {
  235. background: #b61318;
  236. background: -webkit-gradient(linear, left top, left bottom, from(#c9151b), to(#a11115));
  237. background: -moz-linear-gradient(top, #c9151b, #a11115);
  238. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#c9151b', endColorstr='#a11115');
  239. }
  240. .red:active {
  241. color: #de898c;
  242. background: -webkit-gradient(linear, left top, left bottom, from(#aa1317), to(#ed1c24));
  243. background: -moz-linear-gradient(top, #aa1317, #ed1c24);
  244. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#aa1317', endColorstr='#ed1c24');
  245. }
  246. .blue {
  247. color: #d9eef7;
  248. border: solid 1px #0076a3;
  249. background: #0095cd;
  250. background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));
  251. background: -moz-linear-gradient(top, #00adee, #0078a5);
  252. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5');
  253. }
  254. .blue:hover {
  255. background: #007ead;
  256. background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e));
  257. background: -moz-linear-gradient(top, #0095cc, #00678e);
  258. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0095cc', endColorstr='#00678e');
  259. }
  260. .blue:active {
  261. color: #80bed6;
  262. background: -webkit-gradient(linear, left top, left bottom, from(#0078a5), to(#00adee));
  263. background: -moz-linear-gradient(top, #0078a5, #00adee);
  264. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0078a5', endColorstr='#00adee');
  265. }
  266. .rosy {
  267. color: #fae7e9;
  268. border: solid 1px #b73948;
  269. background: #da5867;
  270. background: -webkit-gradient(linear, left top, left bottom, from(#f16c7c), to(#bf404f));
  271. background: -moz-linear-gradient(top, #f16c7c, #bf404f);
  272. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f16c7c', endColorstr='#bf404f');
  273. }
  274. .rosy:hover {
  275. background: #ba4b58;
  276. background: -webkit-gradient(linear, left top, left bottom, from(#cf5d6a), to(#a53845));
  277. background: -moz-linear-gradient(top, #cf5d6a, #a53845);
  278. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cf5d6a', endColorstr='#a53845');
  279. }
  280. .rosy:active {
  281. color: #dca4ab;
  282. background: -webkit-gradient(linear, left top, left bottom, from(#bf404f), to(#f16c7c));
  283. background: -moz-linear-gradient(top, #bf404f, #f16c7c);
  284. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bf404f', endColorstr='#f16c7c');
  285. }
  286. .green {
  287. color: #e8f0de;
  288. border: solid 1px #538312;
  289. background: #64991e;
  290. background: -webkit-gradient(linear, left top, left bottom, from(#7db72f), to(#4e7d0e));
  291. background: -moz-linear-gradient(top, #7db72f, #4e7d0e);
  292. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7db72f', endColorstr='#4e7d0e');
  293. }
  294. .green:hover {
  295. background: #538018;
  296. background: -webkit-gradient(linear, left top, left bottom, from(#6b9d28), to(#436b0c));
  297. background: -moz-linear-gradient(top, #6b9d28, #436b0c);
  298. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6b9d28', endColorstr='#436b0c');
  299. }
  300. .green:active {
  301. color: #a9c08c;
  302. background: -webkit-gradient(linear, left top, left bottom, from(#4e7d0e), to(#7db72f));
  303. background: -moz-linear-gradient(top, #4e7d0e, #7db72f);
  304. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4e7d0e', endColorstr='#7db72f');
  305. }
  306. .pink {
  307. color: #feeef5;
  308. border: solid 1px #d2729e;
  309. background: #f895c2;
  310. background: -webkit-gradient(linear, left top, left bottom, from(#feb1d3), to(#f171ab));
  311. background: -moz-linear-gradient(top, #feb1d3, #f171ab);
  312. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#feb1d3', endColorstr='#f171ab');
  313. }
  314. .pink:hover {
  315. background: #d57ea5;
  316. background: -webkit-gradient(linear, left top, left bottom, from(#f4aacb), to(#e86ca4));
  317. background: -moz-linear-gradient(top, #f4aacb, #e86ca4);
  318. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4aacb', endColorstr='#e86ca4');
  319. }
  320. .pink:active {
  321. color: #f3c3d9;
  322. background: -webkit-gradient(linear, left top, left bottom, from(#f171ab), to(#feb1d3));
  323. background: -moz-linear-gradient(top, #f171ab, #feb1d3);
  324. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f171ab', endColorstr='#feb1d3');
  325. }