site.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. body {
  2. font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
  3. max-width: 600px;
  4. margin: 0;
  5. padding-bottom: 44px;
  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. #main-table {
  31. /*position: fixed;
  32. top: 0;
  33. left: 0;*/
  34. }
  35. table {
  36. border-collapse: collapse;
  37. }
  38. td, th {
  39. border: 1px solid black;
  40. padding: 0;
  41. }
  42. th {
  43. text-align: center;
  44. min-width: 40px;
  45. }
  46. td {
  47. text-align: right;
  48. position: relative;
  49. }
  50. td input.highlighted {
  51. background-color: lightblue;
  52. }
  53. td input {
  54. border: none;
  55. padding: 5px;
  56. width: 80px;
  57. }
  58. td input:hover {
  59. background-color: #ccc;
  60. }
  61. td input:focus {
  62. background-color: #ccf;
  63. }
  64. td input:not(:focus) {
  65. text-align: right;
  66. }
  67. /* ── Control bar ── */
  68. #control-bar {
  69. position: fixed;
  70. bottom: 0;
  71. left: 0;
  72. right: 0;
  73. height: 44px;
  74. display: flex;
  75. align-items: center;
  76. background: #f5f5f5;
  77. border-top: 1px solid #ccc;
  78. z-index: 999;
  79. }
  80. #bar-logo {
  81. height: 44px;
  82. width: 44px;
  83. flex-shrink: 0;
  84. display: flex;
  85. align-items: center;
  86. justify-content: center;
  87. border-right: 1px solid #ccc;
  88. }
  89. #bar-logo img {
  90. width: 100%;
  91. height: 100%;
  92. }
  93. .bar-btn {
  94. height: 100%;
  95. padding: 0 16px;
  96. border: none;
  97. border-right: 1px solid #ccc;
  98. background: none;
  99. cursor: pointer;
  100. font-size: 0.9em;
  101. color: #333;
  102. }
  103. .bar-btn:hover {
  104. background: #e8e8e8;
  105. }
  106. /* ── About modal ── */
  107. #about-modal-overlay {
  108. position: fixed;
  109. inset: 0;
  110. background: rgba(0, 0, 0, 0.45);
  111. z-index: 1000;
  112. display: flex;
  113. align-items: center;
  114. justify-content: center;
  115. padding: 16px;
  116. }
  117. #about-modal {
  118. background: white;
  119. border-radius: 8px;
  120. padding: 24px;
  121. max-width: 480px;
  122. width: 100%;
  123. max-height: 80vh;
  124. overflow-y: auto;
  125. box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  126. }
  127. #about-modal button {
  128. margin-top: 12px;
  129. padding: 8px 20px;
  130. border: 1px solid #ccc;
  131. border-radius: 4px;
  132. background: #f5f5f5;
  133. cursor: pointer;
  134. }
  135. #about-modal button:hover {
  136. background: #e0e0e0;
  137. }
  138. .smartborder {
  139. width: calc(100% + 2px);
  140. height: calc(100% + 2px);
  141. border: 3px solid blue;
  142. position: absolute;
  143. left: -4px;
  144. top: -4px;
  145. background: none;
  146. z-index: 999;
  147. /*pointer-events: none;*/
  148. }
  149. td input:not(:focus) + .smartborder {
  150. visibility: hidden;
  151. }
  152. .smartborder .button {
  153. --button-size: 20px;
  154. --half-button-size: 10px;
  155. /*pointer-events: all;/* TODO check this (what is "initial"?) */
  156. width: var(--button-size);
  157. height: var(--button-size);
  158. background-color: blue;
  159. color: white;
  160. border-radius: var(--half-button-size);
  161. position: absolute;
  162. }
  163. .extendrange.button {
  164. left: 100%;
  165. top: 100%;
  166. }
  167. .fillrange.button {
  168. top: 100%;
  169. left: calc(50% - var(--half-button-size));
  170. }
  171. .moverange.button {
  172. top: calc(50% - var(--half-button-size));
  173. left: calc(0px - var(--button-size));
  174. }
  175. .emptyrange.button {
  176. top: calc(0px - var(--button-size));
  177. left: calc(100% - var(--button-size) - 5px);
  178. }
  179. .deleterange.button {
  180. top: calc(0px - var(--button-size));
  181. left: 100%;
  182. }
  183. .copyrange.button {
  184. top: calc(0px - var(--button-size));
  185. left: 0;
  186. }