curveEditor.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. #animation-curve-editor {
  2. .header{
  3. display: flex;
  4. padding: 9px;
  5. background: black;
  6. color: white;
  7. height: 1.3em;
  8. justify-content: space-between;
  9. align-items: center;
  10. padding-left: 12px;
  11. padding-right: 12px;
  12. .title{ text-transform: uppercase; }
  13. .close {
  14. grid-column: 2;
  15. display: grid;
  16. align-items: center;
  17. justify-items: center;
  18. cursor: pointer;
  19. }
  20. }
  21. .actions-wrapper {
  22. display: flex;
  23. flex-direction: row;
  24. justify-content: flex-end;
  25. align-items: flex-end;
  26. padding: 6px;
  27. .action-input{
  28. display: flex;
  29. justify-content: center;
  30. flex-direction: row;
  31. align-items: center;
  32. label { margin-right: 0.5em }
  33. input {
  34. width: 4em;
  35. height: 2em;
  36. }
  37. }
  38. }
  39. .content{
  40. display: flex;
  41. align-items: flex-start;
  42. justify-content: flex-start;
  43. flex-direction: column;
  44. .row {
  45. display: flex;
  46. align-items: stretch;
  47. justify-content: flex-start;
  48. flex-direction: row;
  49. width: 100vw;
  50. height: 78.5vh;
  51. .timeline{
  52. width: 100vw;
  53. background: gray;
  54. display: flex;
  55. align-items: center;
  56. justify-content: stretch;
  57. height: 2.5rem;
  58. .display-line {
  59. width: 80vw;
  60. height: 2em;
  61. overflow: hidden;
  62. overflow-x: scroll;
  63. scrollbar-color: cornflowerblue slategrey;
  64. scrollbar-width: thin;
  65. margin-right: 1.3em;
  66. padding-left: 1em;
  67. padding-right: 1em;
  68. &::-webkit-scrollbar{
  69. height: 0.4em;
  70. }
  71. &::-webkit-scrollbar-track {
  72. box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  73. }
  74. &::-webkit-scrollbar-thumb {
  75. background-color: cornflowerblue;
  76. outline: 1px solid slategrey;
  77. }
  78. }
  79. .controls {
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. width: 8em;
  84. .input-frame input {
  85. width: 3em;
  86. }
  87. .button {
  88. margin-left: 0.5em;
  89. margin-right: 0.5em;
  90. }
  91. }
  92. }
  93. }
  94. .animation-list{
  95. padding: 1.5rem;
  96. background: rgb(87, 86, 86);
  97. color: white;
  98. ul {
  99. list-style:none;
  100. padding-left: 0px;
  101. li {
  102. cursor: pointer;
  103. &:before {
  104. content: '';
  105. display: inline-block;
  106. height: 1em;
  107. width: 1em;
  108. background-size: contain;
  109. background-repeat: no-repeat;
  110. margin-right:0.5em;
  111. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="far" data-icon="circle" class="svg-inline--fa fa-circle fa-w-16" role="img" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"/></svg>');
  112. }
  113. }
  114. }
  115. li.active {
  116. cursor: pointer;
  117. &:before{
  118. background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" class="svg-inline--fa fa-check-circle fa-w-16" role="img" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"/></svg>');
  119. }
  120. }
  121. .object-tree{
  122. background-color: rgba(0, 0, 0, 0.3);
  123. padding: 10px;
  124. margin-top: 19px;
  125. height: 15em;
  126. }
  127. .label-input{
  128. display: grid;
  129. height: 54px;
  130. place-items: center stretch;
  131. color:white;
  132. }
  133. }
  134. .sample-chart{
  135. .linear {
  136. .draggable {
  137. cursor: move;
  138. }
  139. }
  140. }
  141. .graph-chart{
  142. flex: 1 1 0%;
  143. overflow-x: scroll;
  144. padding-left: 32px;
  145. overflow-y: scroll;
  146. scroll-behavior: smooth;
  147. background-color: #444444;
  148. .linear{
  149. height: 360px;
  150. overflow: visible;
  151. border: 0px solid lightgrey;
  152. svg {
  153. overflow: visible;
  154. }
  155. &:focus {
  156. outline-color: transparent;
  157. }
  158. line {
  159. stroke: #cecece;
  160. stroke-width: 0.2;
  161. }
  162. text {
  163. fill: #cecece;
  164. }
  165. }
  166. .playhead-wrapper {
  167. position: relative;
  168. left: -13px;
  169. }
  170. .playhead {
  171. width: fit-content;
  172. background-color: #ffc60e;
  173. color: black;
  174. text-align: center;
  175. min-width: 2em;
  176. justify-content: center;
  177. display: flex;
  178. padding: 0.1em;
  179. font-size: 0.75em;
  180. }
  181. .playhead-triangle {
  182. background-color: transparent;
  183. width: 0px;
  184. height: 0px;
  185. border-left: 13.5px solid transparent;
  186. border-right: 13.5px solid transparent;
  187. border-top: 12px solid #ffc60e;
  188. }
  189. .playhead-line {
  190. width: 2px;
  191. height: calc(90vh - 100px);
  192. background-color: rgb(255, 198, 14);
  193. position: absolute;
  194. margin-left: 12.5px;
  195. }
  196. }
  197. }
  198. .buttonLine {
  199. height: 30px;
  200. display: grid;
  201. align-items: center;
  202. justify-items: stretch;
  203. input[type="file"] {
  204. display: none;
  205. }
  206. .file-upload {
  207. background: #222222;
  208. border: 1px solid rgb(51, 122, 183);
  209. margin: 5px 10px 5px 10px;
  210. color:white;
  211. padding: 4px 5px;
  212. opacity: 0.9;
  213. cursor: pointer;
  214. text-align: center;
  215. }
  216. .file-upload:hover {
  217. opacity: 1.0;
  218. }
  219. .file-upload:active {
  220. transform: scale(0.98);
  221. transform-origin: 0.5 0.5;
  222. }
  223. button {
  224. background: #222222;
  225. border: 1px solid rgb(51, 122, 183);
  226. margin: 5px 10px 5px 10px;
  227. color:white;
  228. padding: 4px 5px;
  229. opacity: 0.9;
  230. cursor: pointer;
  231. }
  232. button:hover {
  233. opacity: 1.0;
  234. }
  235. button:active {
  236. background: #282828;
  237. }
  238. button:focus {
  239. border: 1px solid rgb(51, 122, 183);
  240. outline: 0px;
  241. }
  242. }
  243. }