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.
 
 
 
 
 
 

163 regels
2.8 KiB

  1. @import '../colors';
  2. .temp-image {
  3. position: fixed;
  4. z-index: 1;
  5. left: 0;
  6. top: 0;
  7. width: 100vw;
  8. height: 100vh;
  9. transform: scale(0);
  10. transition: transform 0.1s;
  11. &.active {
  12. transform: scale(1);
  13. }
  14. img {
  15. width: 100%;
  16. height: 100%;
  17. object-fit: contain;
  18. }
  19. }
  20. .back-button {
  21. position: fixed;
  22. top: 10px;
  23. right: 10px;
  24. width: 40px;
  25. height: 40px;
  26. background: rgba($pink, 0.5);
  27. border: 0px;
  28. border-radius: 50%;
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. z-index: 3;
  33. ion-icon {
  34. color: white;
  35. font-size: 20px;
  36. }
  37. }
  38. .container {
  39. position: relative;
  40. z-index: 0;
  41. }
  42. .glass-image {
  43. position: absolute;
  44. top: 0px;
  45. left: 0px;
  46. z-index: 1;
  47. transform-origin: 15% 50%;
  48. }
  49. #playback-video, #result-canvas, #three-container {
  50. display: block;
  51. }
  52. #result-canvas, #source-canvas, #source-image, #three-container {
  53. position: absolute;
  54. top: 0;
  55. left: 0;
  56. }
  57. #result-canvas {
  58. z-index: -1;
  59. }
  60. .left-eye, .right-eye {
  61. position: absolute;
  62. width: 4px;
  63. height: 4px;
  64. border-radius: 50%;
  65. }
  66. .left-eye {
  67. background-color: blue;
  68. }
  69. .right-eye {
  70. background-color: red;
  71. }
  72. .action-buttons {
  73. position: fixed;
  74. left: 0;
  75. bottom: 20px;
  76. display: flex;
  77. align-items: center;
  78. width: 100%;
  79. z-index: 1;
  80. button {
  81. width: 50px;
  82. height: 50px;
  83. background-color: white;
  84. color: $pink;
  85. border-radius: 50%;
  86. ion-icon {
  87. font-size: 25px;
  88. }
  89. &.camera-button {
  90. margin-left: calc(50% - 25px);
  91. transform: scale(1.5);
  92. }
  93. &.skin-button {
  94. transform: scale(1.2);
  95. margin-left: 40px;
  96. background-color: transparent;
  97. border: 2px solid $pink;
  98. &.active {
  99. background-color: $pink;
  100. color: white;
  101. }
  102. }
  103. }
  104. }
  105. .image-action-buttons {
  106. position: fixed;
  107. left: 0;
  108. bottom: 20px;
  109. width: 200px;
  110. margin-left: calc(50% - 100px);
  111. display: flex;
  112. align-items: center;
  113. justify-content: space-between;
  114. padding: 10px;
  115. background-color: rgba(black, 0.6);
  116. border-radius: 30px;
  117. z-index: 1;
  118. button {
  119. width: 50px;
  120. height: 50px;
  121. border-radius: 50%;
  122. border: 1px solid rgba($blue-grey, 0.6);
  123. background-color: transparent;
  124. display: flex;
  125. align-items: center;
  126. justify-content: center;
  127. &:nth-child(2) {
  128. transform: rotate(180deg);
  129. }
  130. img {
  131. width: 20px;
  132. }
  133. ion-icon {
  134. color: white;
  135. font-size: 20px;
  136. }
  137. }
  138. }