site.css 3.7 KB

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