styles.scss 6.4 KB

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