Advertisement
finom

Untitled

May 31st, 2012
1,404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. .player-buttons {
  2. .back-button, .forward-button, .play-pause {
  3. display: inline-block;
  4. &::after {
  5. font-family: 'FontAwesome';
  6. }
  7. }
  8.  
  9. .back-button {
  10. &::after {
  11. content: "\f048";
  12. }
  13. }
  14.  
  15. .forward-button {
  16. &::after {
  17. content: "\f051";
  18. }
  19. }
  20.  
  21. .play-pause{
  22. &::after { content: "\f017"; }
  23.  
  24. &.play {
  25. &::after {content: "\f04b";}
  26.  
  27. }
  28.  
  29. &.pause {
  30. &::after {content: "\f04c";}
  31. }
  32. }
  33. }
  34.  
  35. /* ................... */
  36.  
  37. .back-button, .forward-button, .play-pause {
  38. color: @player-controls-main-text-color;
  39.  
  40. .linear-gradient (@player-controls-background-color, @player-controls-background-color - #222);
  41.  
  42. &:hover {
  43. .linear-gradient (@player-controls-hover-background-color, @player-controls-hover-background-color - #222);
  44.  
  45. &::after {
  46. border-top: 1px solid @player-controls-hover-background-color + #322;
  47. }
  48. }
  49.  
  50. &::before {
  51. border: 2px solid black;
  52. content: '';
  53. position: absolute;
  54. top: -2px;
  55. left: -1px;
  56. bottom: -1px;
  57. right: -1px;
  58. /* @todo засунуть в миксин */
  59. -webkit-box-shadow: 0px 1px 2px rgba(150,150,150,.5);
  60. -moz-box-shadow: 0px 1px 2px rgba(150,150,150,.5);
  61. box-shadow: 0px 1px 2px rgba(150,150,150,.5);
  62. }
  63.  
  64. &::after {
  65. border-top: 1px solid @player-controls-background-color + #322;
  66. position: absolute;
  67. top: 0px;
  68. left: 0px;
  69. bottom: 0px;
  70. right: 0px;
  71. }
  72.  
  73. &.disabled {
  74. cursor: default;
  75.  
  76. .linear-gradient (@player-controls-disabled-background-color, @player-controls-disabled-background-color - #222);
  77.  
  78. &:hover {
  79. .linear-gradient (@player-controls-disabled-background-color, @player-controls-disabled-background-color - #222);
  80. }
  81.  
  82.  
  83. &:hover::after, &::after {
  84. border-top: 1px solid @player-controls-disabled-background-color + #322;
  85. }
  86. }
  87. }
  88.  
  89. .back-button, .forward-button {
  90. position: absolute;
  91. top: ( @play-button-size - @back-forward-button-height )/2;
  92.  
  93. height: @back-forward-button-height;
  94. width: @back-forward-button-width;
  95.  
  96. &::after {
  97. font-size: 16px;
  98. line-height: @back-forward-button-height;
  99.  
  100. padding: @play-button-size/3;
  101. }
  102. }
  103.  
  104. .back-button {
  105. right: 50%;
  106. .rounded-corners(@back-forward-button-height/2, 0, @back-forward-button-height/2, 0);
  107. &::before, &::after {
  108. .rounded-corners(@back-forward-button-height/2, 0, @back-forward-button-height/2, 0);
  109. }
  110.  
  111. &::after{
  112. text-align: left;
  113. padding-right: 0;
  114. padding-top: 0;
  115. padding-bottom: 0;
  116. }
  117. }
  118.  
  119. .forward-button {
  120. left: 50%;
  121. .rounded-corners(0, @back-forward-button-height/2, 0, @back-forward-button-height/2);
  122. &::before, &::after {
  123. .rounded-corners(0, @back-forward-button-height/2, 0, @back-forward-button-height/2);
  124. }
  125.  
  126. &::after{
  127. text-align: right;
  128. padding-left: 0;
  129. padding-top: 0;
  130. padding-bottom: 0;
  131. }
  132. }
  133.  
  134. .play-pause {
  135. position: relative;
  136. height: @play-button-size;
  137. width: @play-button-size;
  138. z-index: 1;
  139. .rounded-corners(@play-button-size/2);
  140.  
  141. &::before, &::after {
  142. .rounded-corners(@play-button-size/2);
  143. }
  144.  
  145. &::after{
  146. font-size: 24px;
  147. line-height: @play-button-size;
  148. }
  149.  
  150. &.play::after{
  151. padding-left: @play-button-size/10;
  152. }
  153.  
  154. }
  155. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement