site.css 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. /* On narrow screens, contain scroll to the sheet area so position:fixed
  12. stays anchored to the viewport rather than the document bottom. */
  13. @media (max-width: 767px) {
  14. html, body {
  15. height: 100%;
  16. overflow: hidden;
  17. padding-bottom: 0;
  18. }
  19. #app {
  20. height: 100%;
  21. display: flex;
  22. flex-direction: column;
  23. }
  24. #main-layout {
  25. flex: 1;
  26. display: flex;
  27. flex-direction: column;
  28. min-height: 0;
  29. }
  30. .sheet-container {
  31. flex: 1;
  32. overflow: auto;
  33. min-height: 0;
  34. padding-bottom: 44px;
  35. }
  36. }
  37. h1, h2, h3 {
  38. color: #000;
  39. }
  40. h1 {
  41. font-size: 2.5em
  42. }
  43. h2 {
  44. font-size: 2em
  45. }
  46. h3 {
  47. font-size: 1.5em
  48. }
  49. a {
  50. text-decoration: none;
  51. color: #09f;
  52. }
  53. a:hover {
  54. text-decoration: underline;
  55. }
  56. #main-table {
  57. /*position: fixed;
  58. top: 0;
  59. left: 0;*/
  60. }
  61. table {
  62. border-collapse: collapse;
  63. }
  64. td, th {
  65. border: 1px solid black;
  66. padding: 0;
  67. }
  68. th {
  69. text-align: center;
  70. min-width: 40px;
  71. }
  72. td {
  73. text-align: right;
  74. position: relative;
  75. }
  76. td input.highlighted {
  77. background-color: lightblue;
  78. }
  79. td input {
  80. border: none;
  81. padding: 5px;
  82. width: 80px;
  83. }
  84. td input:hover {
  85. background-color: #ccc;
  86. }
  87. td input:focus {
  88. background-color: #ccf;
  89. }
  90. td input:not(:focus) {
  91. text-align: right;
  92. }
  93. /* ── Control bar ── */
  94. #control-bar {
  95. position: fixed;
  96. bottom: 0;
  97. left: 0;
  98. right: 0;
  99. height: 44px;
  100. display: flex;
  101. align-items: center;
  102. background: #f5f5f5;
  103. border-top: 1px solid #ccc;
  104. z-index: 999;
  105. }
  106. #bar-logo {
  107. height: 44px;
  108. width: 44px;
  109. flex-shrink: 0;
  110. display: flex;
  111. align-items: center;
  112. justify-content: center;
  113. border-right: 1px solid #ccc;
  114. }
  115. #bar-logo img {
  116. width: 100%;
  117. height: 100%;
  118. }
  119. .bar-btn {
  120. height: 100%;
  121. padding: 0 16px;
  122. border: none;
  123. border-right: 1px solid #ccc;
  124. background: none;
  125. cursor: pointer;
  126. font-size: 0.9em;
  127. color: #333;
  128. }
  129. .bar-btn:hover {
  130. background: #e8e8e8;
  131. }
  132. /* ── About modal ── */
  133. #about-modal-overlay {
  134. position: fixed;
  135. inset: 0;
  136. background: rgba(0, 0, 0, 0.45);
  137. z-index: 1000;
  138. display: flex;
  139. align-items: center;
  140. justify-content: center;
  141. padding: 16px;
  142. }
  143. #about-modal {
  144. background: white;
  145. border-radius: 8px;
  146. padding: 24px;
  147. max-width: 480px;
  148. width: 100%;
  149. max-height: 80vh;
  150. overflow-y: auto;
  151. box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  152. }
  153. #about-modal button {
  154. margin-top: 12px;
  155. padding: 8px 20px;
  156. border: 1px solid #ccc;
  157. border-radius: 4px;
  158. background: #f5f5f5;
  159. cursor: pointer;
  160. }
  161. #about-modal button:hover {
  162. background: #e0e0e0;
  163. }
  164. .smartborder {
  165. width: calc(100% + 2px);
  166. height: calc(100% + 2px);
  167. border: 3px solid blue;
  168. position: absolute;
  169. left: -4px;
  170. top: -4px;
  171. background: none;
  172. z-index: 999;
  173. /*pointer-events: none;*/
  174. }
  175. td input:not(:focus) + .smartborder {
  176. visibility: hidden;
  177. }
  178. .smartborder .button {
  179. --button-size: 20px;
  180. --half-button-size: 10px;
  181. /*pointer-events: all;/* TODO check this (what is "initial"?) */
  182. width: var(--button-size);
  183. height: var(--button-size);
  184. background-color: blue;
  185. color: white;
  186. border-radius: var(--half-button-size);
  187. position: absolute;
  188. }
  189. .extendrange.button {
  190. left: 100%;
  191. top: 100%;
  192. }
  193. .fillrange.button {
  194. top: 100%;
  195. left: calc(50% - var(--half-button-size));
  196. }
  197. .moverange.button {
  198. top: calc(50% - var(--half-button-size));
  199. left: calc(0px - var(--button-size));
  200. }
  201. .emptyrange.button {
  202. top: calc(0px - var(--button-size));
  203. left: calc(100% - var(--button-size) - 5px);
  204. }
  205. .deleterange.button {
  206. top: calc(0px - var(--button-size));
  207. left: 100%;
  208. }
  209. .copyrange.button {
  210. top: calc(0px - var(--button-size));
  211. left: 0;
  212. }