style.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. @import '@uppy/core/src/_utils.scss';
  2. @import '@uppy/core/src/_variables.scss';
  3. .uppy-Webcam-container {
  4. width: 100%;
  5. height: 100%;
  6. display: flex;
  7. justify-content: center;
  8. align-items: center;
  9. flex-direction: column;
  10. }
  11. .uppy-Webcam-videoContainer {
  12. width: 100%;
  13. flex: 1;
  14. flex-grow: 1;
  15. overflow: hidden;
  16. background-color: $color-black;
  17. text-align: center;
  18. position: relative;
  19. }
  20. .uppy-size--md .uppy-Webcam-videoContainer {
  21. // height: initial;
  22. }
  23. .uppy-Webcam-video {
  24. // width: 100%;
  25. // height: 100%;
  26. max-width: 100%;
  27. max-height: 100%;
  28. position: absolute;
  29. top: 0;
  30. right: 0;
  31. bottom: 0;
  32. left: 0;
  33. margin: auto;
  34. }
  35. .uppy-Webcam-video--mirrored {
  36. transform: scaleX(-1);
  37. }
  38. .uppy-Webcam-buttonContainer {
  39. width: 100%;
  40. height: 75px;
  41. border-top: 1px solid rgba($color-gray, 0.2);
  42. display: flex;
  43. align-items: center;
  44. justify-content: center;
  45. padding: 0 20px;
  46. }
  47. .uppy-Webcam-button {
  48. width: 45px;
  49. height: 45px;
  50. border-radius: 50%;
  51. background-color: $color-red;
  52. color: $color-white;
  53. cursor: pointer;
  54. transition: all 0.3s;
  55. }
  56. .uppy-Webcam-button svg {
  57. width: 30px;
  58. height: 30px;
  59. max-width: 100%;
  60. max-height: 100%;
  61. display: inline-block;
  62. vertical-align: text-top;
  63. overflow: hidden;
  64. fill: currentColor;
  65. }
  66. .uppy-size--md .uppy-Webcam-button {
  67. width: 60px;
  68. height: 60px;
  69. }
  70. .uppy-Webcam-button:hover {
  71. background-color: darken($color-red, 10%);
  72. }
  73. .uppy-Webcam-button:focus {
  74. outline: none;
  75. box-shadow: 0 0 0 0.2rem rgba($color-cornflower-blue, 0.5);
  76. }
  77. .uppy-Webcam-button--picture {
  78. margin-right: 12px;
  79. }
  80. .uppy-Webcam-permissons {
  81. padding: 15px;
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. flex-flow: column wrap;
  86. height: 100%;
  87. flex: 1;
  88. }
  89. .uppy-Webcam-permissons p {
  90. max-width: 450px;
  91. line-height: 1.3;
  92. }
  93. .uppy-Webcam-title {
  94. font-size: 22px;
  95. line-height: 1.35;
  96. font-weight: 400;
  97. margin: 0;
  98. margin-bottom: 15px;
  99. padding: 0 15px;
  100. max-width: 500px;
  101. text-align: center;
  102. color: $color-black;
  103. }
  104. .uppy-Webcam-permissons p {
  105. text-align: center;
  106. line-height: 1.45;
  107. color: $color-gray;
  108. margin: 0;
  109. }
  110. .uppy-Webcam-permissonsIcon svg {
  111. width: 100px;
  112. height: 75px;
  113. color: lighten($color-gray, 15%);
  114. margin-bottom: 30px;
  115. }