player.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. @import "vars";
  2. @import "mixins";
  3. #player {
  4. -webkit-overflow-scrolling: touch;
  5. position: absolute;
  6. border-radius: $radius;
  7. top: 100px;
  8. left: 100px;
  9. bottom: 100px;
  10. right: 100px;
  11. width: auto;
  12. height: auto;
  13. z-index: 0;
  14. background-color: black;
  15. white-space: nowrap;
  16. z-index: 10000;
  17. display: none;
  18. #player-controls-1{
  19. height: 100px;
  20. &:hover #player-controls-2{
  21. @include scale(1,1);
  22. }
  23. #player-controls-2{
  24. @include transition( all 0.4s ease-in-out);
  25. }
  26. position: absolute;
  27. bottom: 0;
  28. left: 0;
  29. right: 0;
  30. opacity: 0;
  31. @include transition( all 0.4s ease-in-out);
  32. @include translateY (20%);
  33. &:hover {
  34. @include translateY (0);
  35. opacity: 1;
  36. #player-controls {
  37. @include rotateX(0deg);
  38. }
  39. }
  40. @include backface-visibility(hidden);
  41. -webkit-perspective: 1000;
  42. -moz-perspective: 1000;
  43. -ms-perspective: 1000;
  44. perspective: 1000;
  45. @include perspective-origin(bottom center);
  46. #player-controls {
  47. @include rotateX(-90deg);
  48. @include transform-origin(bottom center);
  49. @include backface-visibility(hidden);
  50. @include transition( all 0.4s ease-in-out);
  51. background-color: rgba(0,0,0,0.25);
  52. background-color: $darker;
  53. border-radius: $radius;
  54. margin: 20px;
  55. /* As of August 2012, only supported in Chrome 21+ */
  56. display: -webkit-flex;
  57. flex-direction: row;
  58. align-items: center;
  59. .time {
  60. font-size: 20px;
  61. line-height: 60px;
  62. display: block;
  63. padding: 0 20px;
  64. &.current {border-left: 2px solid rgba(0,0,0,0.1); }
  65. &.total {border-right: 2px solid rgba(0,0,0,0.1); }
  66. }
  67. .progress-bar {
  68. flex: 1;
  69. position: relative;
  70. }
  71. .progress-bar {
  72. background-color: rgba(0,0,0,0.25);
  73. width: 100%;
  74. height: 60px;
  75. position: relative;
  76. .progress-bar-buffer,
  77. .progress-bar-progress,
  78. .progress-bar-handle {
  79. position: absolute;
  80. height: 60px;
  81. }
  82. .progress-bar-handle {
  83. width: 4px;
  84. background-color: $light;
  85. z-index: 10;
  86. margin-left: -2px;
  87. height: 60px;
  88. border-radius: 30px;
  89. }
  90. .progress-bar-buffer { background-color: rgba(0,0,0,0.25); }
  91. .progress-bar-progress { background-color: $blue; }
  92. .progress-bar-handle {}
  93. }
  94. }
  95. }
  96. }