style.scss 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @import './base';
  2. html,
  3. body {
  4. height: 100%;
  5. background-color: transparent;
  6. }
  7. .mod-start,
  8. .mod-main {
  9. position: relative;
  10. height: 100%;
  11. }
  12. .mod-start {
  13. display: flex;
  14. align-items: center;
  15. justify-content: center;
  16. }
  17. .mod-camera {
  18. position: relative;
  19. height: 100%;
  20. #cameraVideo {
  21. display: block;
  22. width: 100%;
  23. height: 100%;
  24. object-fit: fill;
  25. }
  26. .mod-game {
  27. position: absolute;
  28. left: 0;
  29. bottom: 0;
  30. width: 100%;
  31. height: 100%;
  32. canvas {
  33. display: block;
  34. width: 100%;
  35. height: 100%;
  36. }
  37. }
  38. }
  39. .mod-record {
  40. position: absolute;
  41. left: 50%;
  42. bottom: 0;
  43. width: 60px;
  44. height: 60px;
  45. transform: translate(-50%, 0);
  46. font-size: 14px;
  47. line-height: 60px;
  48. border-radius: 50%;
  49. text-align: center;
  50. background-color: rgba($color: red, $alpha: 1.0);
  51. color: #fff;
  52. user-select: none;
  53. &:active {
  54. opacity: .8;
  55. }
  56. }
  57. .hide {
  58. display: none;
  59. }
  60. .show {
  61. display: block;
  62. }