site.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. body {
  2. font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
  3. max-width: 600px;
  4. margin: 0 auto;
  5. padding-top: 72px;
  6. -webkit-font-smoothing: antialiased;
  7. font-size: 1.125em;
  8. color: #333;
  9. line-height: 1.5em;
  10. }
  11. h1, h2, h3 {
  12. color: #000;
  13. }
  14. h1 {
  15. font-size: 2.5em
  16. }
  17. h2 {
  18. font-size: 2em
  19. }
  20. h3 {
  21. font-size: 1.5em
  22. }
  23. a {
  24. text-decoration: none;
  25. color: #09f;
  26. }
  27. a:hover {
  28. text-decoration: underline;
  29. }
  30. table {
  31. border-collapse: collapse;
  32. }
  33. td, th {
  34. border: 1px solid black;
  35. padding: 0;
  36. }
  37. th {
  38. text-align: center;
  39. min-width: 40px;
  40. }
  41. td {
  42. text-align: right;
  43. position: relative;
  44. }
  45. td input {
  46. border: none;
  47. padding: 5px;
  48. width: 80px;
  49. }
  50. td input:hover {
  51. background-color: #ccc;
  52. }
  53. td input:focus {
  54. background-color: #ccf;
  55. }
  56. td input:not(:focus) {
  57. text-align: right;
  58. }
  59. .smartborder {
  60. width: calc(100% + 2px);
  61. height: calc(100% + 2px);
  62. border: 3px solid blue;
  63. position: absolute;
  64. left: -4px;
  65. top: -4px;
  66. background: none;
  67. z-index: 999;
  68. /*pointer-events: none;*/
  69. }
  70. td input:not(:focus) + .smartborder {
  71. visibility: hidden;
  72. }
  73. .smartborder .button {
  74. --button-size: 20px;
  75. --half-button-size: 10px;
  76. /*pointer-events: all;/* TODO check this (what is "initial"?) */
  77. width: var(--button-size);
  78. height: var(--button-size);
  79. background-color: blue;
  80. color: white;
  81. border-radius: var(--half-button-size);
  82. position: absolute;
  83. }
  84. .extendrange.button {
  85. left: 100%;
  86. top: 100%;
  87. }
  88. .fillrange.button {
  89. top: 100%;
  90. left: calc(50% - var(--half-button-size));
  91. }
  92. .moverange.button {
  93. top: calc(50% - var(--half-button-size));
  94. left: calc(0px - var(--button-size));
  95. }
  96. .emptyrange.button {
  97. top: calc(0px - var(--button-size));
  98. left: calc(100% - var(--button-size) - 5px);
  99. }
  100. .deleterange.button {
  101. top: calc(0px - var(--button-size));
  102. left: 100%;
  103. }
  104. .copyrange.button {
  105. top: calc(0px - var(--button-size));
  106. left: 0;
  107. }