site.css 4.4 KB

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