Simple hex excercises

hexmeh.css 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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. /**
  72. * Buttons
  73. */
  74. .button {
  75. display: inline-block;
  76. outline: none;
  77. cursor: pointer;
  78. text-align: center;
  79. text-decoration: none;
  80. font: 14px/100% Arial, Helvetica, sans-serif;
  81. padding: .5em 2em .55em;
  82. text-shadow: 0 1px 1px rgba(0,0,0,.3);
  83. -webkit-border-radius: .5em;
  84. -moz-border-radius: .5em;
  85. border-radius: .5em;
  86. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
  87. -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
  88. box-shadow: 0 1px 2px rgba(0,0,0,.2);
  89. }
  90. .button:hover {
  91. text-decoration: none;
  92. }
  93. .button:active {
  94. position: relative;
  95. top: 1px;
  96. }
  97. .black {
  98. color: #d7d7d7;
  99. border: solid 1px #333;
  100. background: #333;
  101. background: -webkit-gradient(linear, left top, left bottom, from(#666), to(#000));
  102. background: -moz-linear-gradient(top, #666, #000);
  103. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#666666', endColorstr='#000000');
  104. }
  105. .black:hover {
  106. background: #000;
  107. background: -webkit-gradient(linear, left top, left bottom, from(#444), to(#000));
  108. background: -moz-linear-gradient(top, #444, #000);
  109. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#444444', endColorstr='#000000');
  110. }
  111. .black:active {
  112. color: #666;
  113. background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#444));
  114. background: -moz-linear-gradient(top, #000, #444);
  115. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#666666');
  116. }
  117. .gray {
  118. color: #e9e9e9;
  119. border: solid 1px #555;
  120. background: #6e6e6e;
  121. background: -webkit-gradient(linear, left top, left bottom, from(#888), to(#575757));
  122. background: -moz-linear-gradient(top, #888, #575757);
  123. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#888888', endColorstr='#575757');
  124. }
  125. .gray:hover {
  126. background: #616161;
  127. background: -webkit-gradient(linear, left top, left bottom, from(#757575), to(#4b4b4b));
  128. background: -moz-linear-gradient(top, #757575, #4b4b4b);
  129. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#757575', endColorstr='#4b4b4b');
  130. }
  131. .gray:active {
  132. color: #afafaf;
  133. background: -webkit-gradient(linear, left top, left bottom, from(#575757), to(#888));
  134. background: -moz-linear-gradient(top, #575757, #888);
  135. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#575757', endColorstr='#888888');
  136. }
  137. .white {
  138. color: #606060;
  139. border: solid 1px #b7b7b7;
  140. background: #fff;
  141. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
  142. background: -moz-linear-gradient(top, #fff, #ededed);
  143. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
  144. }
  145. .white:hover {
  146. background: #ededed;
  147. background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
  148. background: -moz-linear-gradient(top, #fff, #dcdcdc);
  149. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
  150. }
  151. .white:active {
  152. color: #999;
  153. background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
  154. background: -moz-linear-gradient(top, #ededed, #fff);
  155. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
  156. }
  157. .orange {
  158. color: #fef4e9;
  159. border: solid 1px #da7c0c;
  160. background: #f78d1d;
  161. background: -webkit-gradient(linear, left top, left bottom, from(#faa51a), to(#f47a20));
  162. background: -moz-linear-gradient(top, #faa51a, #f47a20);
  163. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#faa51a', endColorstr='#f47a20');
  164. }
  165. .orange:hover {
  166. background: #f47c20;
  167. background: -webkit-gradient(linear, left top, left bottom, from(#f88e11), to(#f06015));
  168. background: -moz-linear-gradient(top, #f88e11, #f06015);
  169. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f88e11', endColorstr='#f06015');
  170. }
  171. .orange:active {
  172. color: #fcd3a5;
  173. background: -webkit-gradient(linear, left top, left bottom, from(#f47a20), to(#faa51a));
  174. background: -moz-linear-gradient(top, #f47a20, #faa51a);
  175. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f47a20', endColorstr='#faa51a');
  176. }
  177. .red {
  178. color: #faddde;
  179. border: solid 1px #980c10;
  180. background: #d81b21;
  181. background: -webkit-gradient(linear, left top, left bottom, from(#ed1c24), to(#aa1317));
  182. background: -moz-linear-gradient(top, #ed1c24, #aa1317);
  183. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed1c24', endColorstr='#aa1317');
  184. }
  185. .red:hover {
  186. background: #b61318;
  187. background: -webkit-gradient(linear, left top, left bottom, from(#c9151b), to(#a11115));
  188. background: -moz-linear-gradient(top, #c9151b, #a11115);
  189. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#c9151b', endColorstr='#a11115');
  190. }
  191. .red:active {
  192. color: #de898c;
  193. background: -webkit-gradient(linear, left top, left bottom, from(#aa1317), to(#ed1c24));
  194. background: -moz-linear-gradient(top, #aa1317, #ed1c24);
  195. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#aa1317', endColorstr='#ed1c24');
  196. }
  197. .blue {
  198. color: #d9eef7;
  199. border: solid 1px #0076a3;
  200. background: #0095cd;
  201. background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));
  202. background: -moz-linear-gradient(top, #00adee, #0078a5);
  203. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5');
  204. }
  205. .blue:hover {
  206. background: #007ead;
  207. background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e));
  208. background: -moz-linear-gradient(top, #0095cc, #00678e);
  209. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0095cc', endColorstr='#00678e');
  210. }
  211. .blue:active {
  212. color: #80bed6;
  213. background: -webkit-gradient(linear, left top, left bottom, from(#0078a5), to(#00adee));
  214. background: -moz-linear-gradient(top, #0078a5, #00adee);
  215. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0078a5', endColorstr='#00adee');
  216. }
  217. .rosy {
  218. color: #fae7e9;
  219. border: solid 1px #b73948;
  220. background: #da5867;
  221. background: -webkit-gradient(linear, left top, left bottom, from(#f16c7c), to(#bf404f));
  222. background: -moz-linear-gradient(top, #f16c7c, #bf404f);
  223. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f16c7c', endColorstr='#bf404f');
  224. }
  225. .rosy:hover {
  226. background: #ba4b58;
  227. background: -webkit-gradient(linear, left top, left bottom, from(#cf5d6a), to(#a53845));
  228. background: -moz-linear-gradient(top, #cf5d6a, #a53845);
  229. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cf5d6a', endColorstr='#a53845');
  230. }
  231. .rosy:active {
  232. color: #dca4ab;
  233. background: -webkit-gradient(linear, left top, left bottom, from(#bf404f), to(#f16c7c));
  234. background: -moz-linear-gradient(top, #bf404f, #f16c7c);
  235. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#bf404f', endColorstr='#f16c7c');
  236. }
  237. .green {
  238. color: #e8f0de;
  239. border: solid 1px #538312;
  240. background: #64991e;
  241. background: -webkit-gradient(linear, left top, left bottom, from(#7db72f), to(#4e7d0e));
  242. background: -moz-linear-gradient(top, #7db72f, #4e7d0e);
  243. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7db72f', endColorstr='#4e7d0e');
  244. }
  245. .green:hover {
  246. background: #538018;
  247. background: -webkit-gradient(linear, left top, left bottom, from(#6b9d28), to(#436b0c));
  248. background: -moz-linear-gradient(top, #6b9d28, #436b0c);
  249. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6b9d28', endColorstr='#436b0c');
  250. }
  251. .green:active {
  252. color: #a9c08c;
  253. background: -webkit-gradient(linear, left top, left bottom, from(#4e7d0e), to(#7db72f));
  254. background: -moz-linear-gradient(top, #4e7d0e, #7db72f);
  255. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4e7d0e', endColorstr='#7db72f');
  256. }
  257. .pink {
  258. color: #feeef5;
  259. border: solid 1px #d2729e;
  260. background: #f895c2;
  261. background: -webkit-gradient(linear, left top, left bottom, from(#feb1d3), to(#f171ab));
  262. background: -moz-linear-gradient(top, #feb1d3, #f171ab);
  263. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#feb1d3', endColorstr='#f171ab');
  264. }
  265. .pink:hover {
  266. background: #d57ea5;
  267. background: -webkit-gradient(linear, left top, left bottom, from(#f4aacb), to(#e86ca4));
  268. background: -moz-linear-gradient(top, #f4aacb, #e86ca4);
  269. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4aacb', endColorstr='#e86ca4');
  270. }
  271. .pink:active {
  272. color: #f3c3d9;
  273. background: -webkit-gradient(linear, left top, left bottom, from(#f171ab), to(#feb1d3));
  274. background: -moz-linear-gradient(top, #f171ab, #feb1d3);
  275. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f171ab', endColorstr='#feb1d3');
  276. }