Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1">
  2. <span class="glyphicon glyphicon-chevron-left"></span>
  3. </a>
  4.  
  5. /*pulling control anchor outside the carousel body*/
  6. .carousel-control.left {
  7. left: -15%;
  8. }
  9. .carousel-control.right, .carousel-control.left {
  10. -webkit-filter: none;
  11. filter: none;
  12. z-index: 5;
  13. }
  14. /*Default carousel code from Bootstrap.css*/
  15. .carousel-control.left {
  16. background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
  17. background-repeat: repeat-x;
  18. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
  19. }
  20. .carousel-control {
  21. position: absolute;
  22. top: 0;
  23. left: 0;
  24. bottom: 0;
  25. width: 15%;
  26. opacity: 0.5;
  27. filter: alpha(opacity=50);
  28. font-size: 20px;
  29. color: #fff;
  30. text-align: center;
  31. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  32. }
  33. /*pulling control anchor outside the carousel body*/
  34. .carousel-control.right {
  35. right: -15%;
  36. }
  37. a.left.carousel-control > span.glyphicon.glyphicon-chevron-left {
  38. background: url("/assets/images/arrowLeft.svg") center center;
  39. }
  40. a.right.carousel-control > span.glyphicon.glyphicon-chevron-right {
  41. background: url("/assets/images/arrowRight.svg") center center;
  42. }
  43. /*Disabling default background font-icon*/
  44. a.right.carousel-control > span.glyphicon.glyphicon-chevron-right::before, a.left.carousel-control > span.glyphicon.glyphicon-chevron-left::before {
  45. content: '' !important;
  46. display: block;
  47. overflow: visible;
  48. height: 30px;
  49. width: 30px;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement