styles.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. @import "./theme.css";
  2. body {
  3. margin: 0;
  4. --ui-font: Arial, Helvetica, sans-serif;
  5. font-family: var(--ui-font);
  6. color: var(--text-color-primary);
  7. -webkit-text-size-adjust: 100%;
  8. user-select: none;
  9. }
  10. [contenteditable] {
  11. user-select: auto;
  12. cursor: text;
  13. }
  14. canvas {
  15. touch-action: none;
  16. user-select: none;
  17. // following props improve blurriness at certain devicePixelRatios.
  18. // AFAIK it doesn't affect export (in fact, export seems sharp either way).
  19. image-rendering: pixelated; // chromium
  20. // NOTE: must be declared *after* the above
  21. image-rendering: -moz-crisp-edges; // FF
  22. }
  23. .container {
  24. display: flex;
  25. position: fixed;
  26. top: 0;
  27. bottom: 0;
  28. left: 0;
  29. right: 0;
  30. }
  31. .panelRow {
  32. display: flex;
  33. justify-content: space-between;
  34. }
  35. .panelColumn {
  36. display: flex;
  37. flex-direction: column;
  38. h3,
  39. legend,
  40. .control-label {
  41. margin-top: 0.333rem;
  42. margin-bottom: 0.333rem;
  43. font-size: 0.75rem;
  44. color: var(--text-color-primary);
  45. font-weight: bold;
  46. display: block;
  47. }
  48. .control-label input {
  49. display: block;
  50. width: 100%;
  51. }
  52. h3:first-child,
  53. legend:first-child,
  54. .control-label:first-child {
  55. margin-top: 0;
  56. }
  57. legend {
  58. padding: 0;
  59. }
  60. .buttonList {
  61. flex-wrap: wrap;
  62. label {
  63. margin-right: 0.25rem;
  64. font-size: 0.75rem;
  65. display: inline-block;
  66. }
  67. input[type="radio"] {
  68. opacity: 0;
  69. position: absolute;
  70. pointer-events: none;
  71. }
  72. }
  73. fieldset {
  74. margin: 0;
  75. margin-top: 0.333rem;
  76. padding: 0;
  77. border: none;
  78. }
  79. }
  80. .divider {
  81. width: 1px;
  82. background-color: #e9ecef;
  83. margin: 1px;
  84. }
  85. .buttonList label:focus-within,
  86. input:focus {
  87. outline: transparent;
  88. box-shadow: 0 0 0 2px #a5d8ff;
  89. }
  90. button,
  91. .buttonList label {
  92. user-select: none;
  93. background-color: #e9ecef;
  94. border: 0;
  95. border-radius: 4px;
  96. margin: 0.125rem 0;
  97. padding: 0.25rem;
  98. white-space: nowrap;
  99. cursor: pointer;
  100. &:focus {
  101. box-shadow: 0 0 0 2px #a5d8ff;
  102. }
  103. &:hover {
  104. background-color: #ced4da;
  105. }
  106. &:active {
  107. background-color: #adb5bd;
  108. }
  109. &:disabled {
  110. cursor: not-allowed;
  111. }
  112. }
  113. .active,
  114. .buttonList label.active {
  115. background-color: #ced4da;
  116. &:hover {
  117. background-color: #ced4da;
  118. }
  119. &:active {
  120. background-color: #adb5bd;
  121. }
  122. }
  123. .App-toolbar,
  124. .App-mobile-menu {
  125. --spacing: 0.5rem;
  126. --padding: calc(4 * var(--space-factor));
  127. padding: var(--padding);
  128. padding-left: #{"max(var(--padding), env(safe-area-inset-left))"};
  129. padding-right: #{"max(var(--padding), env(safe-area-inset-right))"};
  130. background: #fcfcfc;
  131. border-top: 1px solid #ccc;
  132. box-sizing: border-box;
  133. }
  134. .App-toolbar {
  135. padding-bottom: #{"max(var(--padding), env(safe-area-inset-bottom))"};
  136. width: 100%;
  137. box-sizing: border-box;
  138. overflow: auto;
  139. position: absolute;
  140. bottom: 0;
  141. }
  142. .App-toolbar-content {
  143. display: flex;
  144. align-items: center;
  145. justify-content: space-between;
  146. }
  147. .App-mobile-menu {
  148. --bottom: calc(3rem - 1px + max(var(--padding), env(safe-area-inset-bottom)));
  149. display: grid;
  150. position: fixed;
  151. width: 100%;
  152. bottom: var(--bottom);
  153. z-index: 4;
  154. max-height: calc(100% - var(--bottom));
  155. overflow-y: scroll;
  156. }
  157. .App-mobile-menu .App-mobile-menu-scroller {
  158. background: #fcfcfc;
  159. box-shadow: none;
  160. }
  161. .App-menu {
  162. display: grid;
  163. }
  164. .App-menu_top {
  165. grid-template-columns: 1fr auto 1fr;
  166. align-items: flex-start;
  167. cursor: default;
  168. pointer-events: none !important;
  169. }
  170. .App-menu_top > * {
  171. pointer-events: all;
  172. }
  173. .App-menu_top > *:first-child {
  174. justify-self: flex-start;
  175. }
  176. .App-menu_top > *:last-child {
  177. justify-self: flex-end;
  178. }
  179. .App-menu_bottom {
  180. position: fixed;
  181. bottom: 0;
  182. grid-template-columns: 1fr auto 1fr;
  183. align-items: flex-start;
  184. cursor: default;
  185. pointer-events: none !important;
  186. }
  187. .App-menu_bottom > * {
  188. pointer-events: all;
  189. }
  190. .App-menu_bottom > *:first-child {
  191. justify-self: flex-start;
  192. }
  193. .App-menu_bottom > *:last-child {
  194. justify-self: flex-end;
  195. }
  196. .App-menu_left {
  197. grid-template-rows: 1fr auto 1fr;
  198. height: 100%;
  199. }
  200. .App-menu_right {
  201. grid-template-rows: 1fr;
  202. height: 100%;
  203. }
  204. .ErrorSplash {
  205. min-height: 100vh;
  206. padding: 20px 0;
  207. overflow: auto;
  208. display: flex;
  209. align-items: center;
  210. justify-content: center;
  211. user-select: text;
  212. .ErrorSplash-messageContainer {
  213. display: flex;
  214. flex-direction: column;
  215. align-items: center;
  216. justify-content: center;
  217. padding: 40px;
  218. background-color: #fff5f5;
  219. border: 3px solid #c92a2a;
  220. }
  221. .ErrorSplash-paragraph {
  222. margin: 15px 0;
  223. max-width: 600px;
  224. &.align-center {
  225. text-align: center;
  226. }
  227. }
  228. .bigger,
  229. .bigger button {
  230. font-size: 1.1em;
  231. }
  232. .smaller,
  233. .smaller button {
  234. font-size: 0.9em;
  235. }
  236. .ErrorSplash-details {
  237. display: flex;
  238. flex-direction: column;
  239. align-items: flex-start;
  240. textarea {
  241. width: 100%;
  242. margin: 10px 0;
  243. font-family: "Cascadia";
  244. font-size: 0.8em;
  245. }
  246. }
  247. }
  248. .dropdown-select {
  249. height: 1.5rem;
  250. padding: 0 1.5rem 0 0.5rem;
  251. background-color: #e9ecef;
  252. border-radius: var(--space-factor);
  253. border: 1px solid #ced4da;
  254. font-size: 0.8rem;
  255. outline: none;
  256. appearance: none;
  257. background-image: url("https://free-use.s3-us-west-2.amazonaws.com/up-sort.svg");
  258. background-repeat: no-repeat;
  259. background-position: right 0.7rem top 50%, 0 0;
  260. background-size: 0.65em auto, 100%;
  261. &:focus {
  262. box-shadow: 0 0 0 2px #a5d8ff;
  263. }
  264. &:hover {
  265. background-color: #ced4da;
  266. }
  267. &:active {
  268. background-color: #ced4da;
  269. }
  270. &.dropdown-select--floating {
  271. position: absolute;
  272. margin-bottom: 0.5em;
  273. margin-right: 0.5em;
  274. }
  275. }
  276. .dropdown-select__language.dropdown-select--floating {
  277. right: 0;
  278. bottom: 0;
  279. }
  280. .visually-hidden {
  281. position: absolute !important;
  282. height: 1px;
  283. width: 1px;
  284. overflow: hidden;
  285. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  286. clip: rect(1px, 1px, 1px, 1px);
  287. white-space: nowrap; /* added line */
  288. }
  289. .zIndexButton {
  290. margin: 0 5px;
  291. padding: 5px;
  292. display: inline-flex;
  293. align-items: center;
  294. justify-content: center;
  295. svg {
  296. width: 18px;
  297. height: 18px;
  298. }
  299. }
  300. .scroll-back-to-content {
  301. position: fixed;
  302. left: 50%;
  303. bottom: 30px;
  304. transform: translateX(-50%);
  305. padding: 10px 20px;
  306. }
  307. @media (max-width: 600px), (max-height: 500px) and (max-width: 1000px) {
  308. aside {
  309. display: none;
  310. }
  311. .scroll-back-to-content {
  312. bottom: 80px;
  313. bottom: calc(80px + env(safe-area-inset-bottom));
  314. }
  315. }