site.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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 {
  50. border: none;
  51. padding: 5px;
  52. width: 80px;
  53. }
  54. td input:hover {
  55. background-color: #ccc;
  56. }
  57. td input:focus {
  58. background-color: #ccf;
  59. }
  60. td input:not(:focus) {
  61. text-align: right;
  62. }
  63. #controls {
  64. --controls-width: 75px;
  65. --controls-padding: 5px;
  66. --controls-opener-width: 15px;
  67. }
  68. #controls > div, #controls > button {
  69. position: fixed;
  70. overflow: hidden;
  71. }
  72. /* TODO: design square logo for microtables */
  73. #main-logo {
  74. background-color: lightblue;
  75. z-index: 999;
  76. left: 0;
  77. bottom: 0;
  78. padding: var(--controls-padding);
  79. height: var(--controls-width);
  80. width: var(--controls-width);
  81. font-size: xxx-large;
  82. font-weight: bold;
  83. text-align: center;
  84. border: 1px solid black;
  85. }
  86. #main-logo > img {
  87. width: 100%;
  88. height:100%;
  89. }
  90. #left-controls-button, #bottom-controls-button {
  91. border: 1px solid black;
  92. border-radius: 2px;
  93. text-align: center;
  94. font-weight: bold;
  95. font-size: xx-large;
  96. background-color: white;
  97. cursor: pointer;
  98. user-select: none;
  99. }
  100. #left-controls-button {
  101. left: 0;
  102. width: calc(var(--controls-width) + 2 * var(--controls-padding) - 2px);
  103. height: var(--controls-opener-width);
  104. z-index: 999;
  105. bottom: calc(var(--controls-width) + 2 * var(--controls-padding));
  106. line-height: 3px;
  107. text-align: right;
  108. }
  109. #bottom-controls-button {
  110. bottom: 0;
  111. height: calc(var(--controls-width) + 2 * var(--controls-padding) - 2px);
  112. width: var(--controls-opener-width);
  113. z-index: 999;
  114. left: calc(var(--controls-width) + 2 * var(--controls-padding));
  115. }
  116. #controls-left {
  117. background-color: pink;
  118. z-index: 998;
  119. top: 0;
  120. left: calc(-1 * var(--controls-width) - 2 * var(--controls-padding));
  121. padding: 5px;
  122. height: calc(100vh - var(--controls-padding));
  123. width: var(--controls-width);
  124. border-right: 1px solid black;
  125. }
  126. /*TODO: link left controls with position of the whole table*/
  127. #controls-left.open {
  128. left: 0;
  129. }
  130. #controls-bottom {
  131. background-color: lightblue;
  132. z-index: 998;
  133. left: 0;
  134. bottom: calc(-1 * var(--controls-width) - 2 * var(--controls-padding));
  135. height: var(--controls-width);
  136. padding: var(--controls-padding);
  137. padding-left: calc(var(--controls-width) + 3 * var(--controls-padding) + var(--controls-opener-width));
  138. width: calc(100vw - var(--controls-width) - 4 * var(--controls-padding) - var(--controls-opener-width));
  139. border-top: 1px solid black;
  140. }
  141. #controls-bottom.open {
  142. bottom: 0;
  143. }
  144. .control-group {
  145. float: left;
  146. margin: 5px;
  147. background-color: lightgreen;
  148. }
  149. .control-label {
  150. font-size: x-small;
  151. }
  152. .smartborder {
  153. width: calc(100% + 2px);
  154. height: calc(100% + 2px);
  155. border: 3px solid blue;
  156. position: absolute;
  157. left: -4px;
  158. top: -4px;
  159. background: none;
  160. z-index: 999;
  161. /*pointer-events: none;*/
  162. }
  163. td input:not(:focus) + .smartborder {
  164. visibility: hidden;
  165. }
  166. .smartborder .button {
  167. --button-size: 20px;
  168. --half-button-size: 10px;
  169. /*pointer-events: all;/* TODO check this (what is "initial"?) */
  170. width: var(--button-size);
  171. height: var(--button-size);
  172. background-color: blue;
  173. color: white;
  174. border-radius: var(--half-button-size);
  175. position: absolute;
  176. }
  177. .extendrange.button {
  178. left: 100%;
  179. top: 100%;
  180. }
  181. .fillrange.button {
  182. top: 100%;
  183. left: calc(50% - var(--half-button-size));
  184. }
  185. .moverange.button {
  186. top: calc(50% - var(--half-button-size));
  187. left: calc(0px - var(--button-size));
  188. }
  189. .emptyrange.button {
  190. top: calc(0px - var(--button-size));
  191. left: calc(100% - var(--button-size) - 5px);
  192. }
  193. .deleterange.button {
  194. top: calc(0px - var(--button-size));
  195. left: 100%;
  196. }
  197. .copyrange.button {
  198. top: calc(0px - var(--button-size));
  199. left: 0;
  200. }