You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
1.6 KiB

  1. $doodle-background: #d9e1e8;
  2. .doodle-modal {
  3. @extend .boost-modal;
  4. width: unset;
  5. }
  6. .doodle-modal__container {
  7. background: $doodle-background;
  8. text-align: center;
  9. line-height: 0; // remove weird gap under canvas
  10. overflow: auto;
  11. canvas {
  12. border: 5px solid $doodle-background;
  13. }
  14. }
  15. .doodle-modal__action-bar {
  16. @extend .boost-modal__action-bar;
  17. flex-wrap: wrap;
  18. flex: 0 0 auto;
  19. .filler {
  20. flex-grow: 1;
  21. margin: 0;
  22. padding: 0;
  23. }
  24. .doodle-toolbar {
  25. line-height: 1;
  26. display: flex;
  27. flex-direction: column;
  28. flex-grow: 0;
  29. justify-content: space-around;
  30. &.with-inputs {
  31. label {
  32. display: inline-block;
  33. width: 70px;
  34. text-align: right;
  35. margin-right: 2px;
  36. }
  37. input[type='number'],
  38. input[type='text'] {
  39. width: 40px;
  40. }
  41. span.val {
  42. display: inline-block;
  43. text-align: left;
  44. width: 50px;
  45. }
  46. }
  47. }
  48. .doodle-palette {
  49. padding-right: 0 !important;
  50. border: 1px solid black;
  51. line-height: 0.2rem;
  52. flex-grow: 0;
  53. background: white;
  54. button {
  55. appearance: none;
  56. width: 1rem;
  57. height: 1rem;
  58. margin: 0;
  59. padding: 0;
  60. text-align: center;
  61. color: black;
  62. text-shadow: 0 0 1px white;
  63. cursor: pointer;
  64. box-shadow: inset 0 0 1px rgba(white, 0.5);
  65. border: 1px solid black;
  66. outline-offset: -1px;
  67. &.foreground {
  68. outline: 1px dashed white;
  69. }
  70. &.background {
  71. outline: 1px dashed red;
  72. }
  73. &.foreground.background {
  74. outline: 1px dashed red;
  75. border-color: white;
  76. }
  77. }
  78. }
  79. }