sandbox.css 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. * { box-sizing: border-box; }
  2. body {
  3. font-family: sans-serif;
  4. color: #333;
  5. }
  6. .container {
  7. border: 1px solid;
  8. margin-bottom: 50px;
  9. }
  10. .container:after {
  11. content: '';
  12. display: block;
  13. clear: both;
  14. }
  15. .container:focus { border: 1px blue dotted; }
  16. .cell {
  17. width: 100%;
  18. height: 200px;
  19. border: 0px solid white;
  20. background: #CCC;
  21. }
  22. .cell.is-selected {
  23. outline: 4px solid hsla(0, 0%, 0%, 0.25);
  24. outline-offset: -4px;
  25. }
  26. .cell:nth-child(6n) { background: hsl(0, 80%, 70%); }
  27. .cell:nth-child(6n+1) { background: hsl(60, 80%, 70%); }
  28. .cell:nth-child(6n+2) { background: hsl(120, 80%, 70%); }
  29. .cell:nth-child(6n+3) { background: hsl(180, 80%, 70%); }
  30. .cell:nth-child(6n+4) { background: hsl(240, 80%, 70%); }
  31. .cell:nth-child(6n+5) { background: hsl(300, 80%, 70%); }
  32. .cell.n1 { background: #D22; background: hsl(0, 80%, 70%); }
  33. .cell.n2 { background: #DD2; background: hsl(60, 80%, 70%); }
  34. .cell.n3 { background: #2D2; background: hsl(120, 80%, 70%); }
  35. .cell.n4 { background: #2DD; background: hsl(180, 80%, 70%); }
  36. .cell.n5 { background: #22D; background: hsl(240, 80%, 70%); }
  37. .cell.n6 { background: #D2D; background: hsl(300, 80%, 70%); }
  38. #half-width .cell {
  39. width: 48%;
  40. margin-right: 4%;
  41. }
  42. .variable-width .cell {
  43. width: 20%;
  44. margin-right: 3%;
  45. }
  46. .variable-width .cell.w2 { width: 30%; }
  47. .variable-width .cell.w3 { width: 40%; }
  48. .fixed-width .cell {
  49. width: 200px;
  50. margin-right: 20px;
  51. }
  52. /* big number */
  53. .cell b {
  54. display: block;
  55. font-size: 100px;
  56. color: white;
  57. font-weight: bold;
  58. position: absolute;
  59. left: 10px;
  60. top: 10px;
  61. }
  62. /* ---- couning ---- */
  63. .counting {
  64. counter-reset: cell;
  65. }
  66. .counting .cell:before {
  67. counter-increment: cell;
  68. content: counter(cell);
  69. display: block;
  70. font-size: 100px;
  71. color: white;
  72. font-weight: bold;
  73. position: absolute;
  74. left: 10px;
  75. top: 10px;
  76. }