styles.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /* http://www.eaglefonts.com/fg-virgil-ttf-131249.htm */
  2. @font-face {
  3. font-family: "Virgil";
  4. src: url("https://uploads.codesandbox.io/uploads/user/ed077012-e728-4a42-8395-cbd299149d62/AflB-FG_Virgil.ttf");
  5. font-display: swap;
  6. }
  7. body {
  8. margin: 0;
  9. font-family: Arial, Helvetica, sans-serif;
  10. }
  11. .container {
  12. display: flex;
  13. position: fixed;
  14. top: 0;
  15. bottom: 0;
  16. left: 0;
  17. right: 0;
  18. }
  19. .sidePanel {
  20. width: 230px;
  21. background-color: #eee;
  22. padding: 10px;
  23. overflow-y: auto;
  24. position: relative;
  25. h4 {
  26. margin: 10px 0 10px 0;
  27. }
  28. .panelTools {
  29. display: flex;
  30. flex-wrap: wrap;
  31. justify-content: space-between;
  32. label {
  33. margin: 2px 0;
  34. }
  35. }
  36. .panelColumn {
  37. display: flex;
  38. flex-direction: column;
  39. h5 {
  40. margin-top: 4px;
  41. margin-bottom: 4px;
  42. font-size: 12px;
  43. color: #333;
  44. }
  45. h5:first-child {
  46. margin-top: 0;
  47. }
  48. .buttonList {
  49. flex-wrap: wrap;
  50. button {
  51. margin-right: 4px;
  52. }
  53. }
  54. }
  55. }
  56. .tool {
  57. position: relative;
  58. input[type="radio"] {
  59. position: absolute;
  60. opacity: 0;
  61. width: 0;
  62. height: 0;
  63. }
  64. input[type="radio"] {
  65. & + .toolIcon {
  66. background-color: #ddd;
  67. width: 41px;
  68. height: 41px;
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. border-radius: 3px;
  73. svg {
  74. height: 1em;
  75. }
  76. }
  77. &:hover + .toolIcon {
  78. background-color: #e7e5e5;
  79. }
  80. &:checked + .toolIcon {
  81. background-color: #bdbebc;
  82. }
  83. &:focus + .toolIcon {
  84. box-shadow: 0 0 0 2px steelblue;
  85. }
  86. }
  87. }
  88. label {
  89. margin-right: 6px;
  90. span {
  91. display: inline-block;
  92. }
  93. }
  94. input[type="number"] {
  95. width: 30px;
  96. }
  97. input[type="color"] {
  98. margin: 2px;
  99. }
  100. input[type="range"] {
  101. width: 230px;
  102. }
  103. input {
  104. margin-right: 5px;
  105. &:focus {
  106. outline: transparent;
  107. box-shadow: 0 0 0 2px steelblue;
  108. }
  109. }
  110. button {
  111. background-color: #ddd;
  112. border: 1px solid #ccc;
  113. border-radius: 4px;
  114. margin: 2px 0;
  115. padding: 5px;
  116. outline: transparent;
  117. &:focus {
  118. box-shadow: 0 0 0 2px steelblue;
  119. }
  120. &:hover {
  121. background-color: #e7e5e5;
  122. border-color: #d6d4d4;
  123. }
  124. &:active,
  125. &.active {
  126. background-color: #bdbebc;
  127. border-color: #bdbebc;
  128. }
  129. &:disabled {
  130. cursor: not-allowed;
  131. }
  132. }
  133. .popover {
  134. position: absolute;
  135. z-index: 2;
  136. .cover {
  137. position: fixed;
  138. top: 0;
  139. left: 0;
  140. right: 0;
  141. bottom: 0;
  142. }
  143. }
  144. .swatch {
  145. height: 24px;
  146. width: 24px;
  147. display: inline;
  148. margin-right: 4px;
  149. }
  150. .swatch-input {
  151. font-size: 16px;
  152. display: inline;
  153. width: 100px;
  154. border-radius: 2px;
  155. padding: 2px 4px;
  156. border: 1px solid #ddd;
  157. }
  158. .project-name {
  159. font-size: 14px;
  160. cursor: pointer;
  161. }
  162. .project-name-input {
  163. width: 200px;
  164. font: inherit;
  165. }