xthyan

components/_media

Feb 1st, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. // Media
  2. //
  3. // Media used on the site
  4. //
  5. // Markup:
  6. // <div class="media {{modifier_class}}">
  7. // <div class="bg" style="background-image: url('../images//galeria1.png')"
  8. // data-image="/images//galeria1.png"></div>
  9. // <div class="overlay">
  10. // <div class="overlay-content">
  11. // <i class="fa fa-video-camera" aria-hidden="true"></i>
  12. // </div>
  13. // </div>
  14. // </div>
  15. //
  16. // .media-video - Media Video.
  17. // .media-image - Media Image.
  18. //
  19. // Styleguide Components.media
  20. //
  21.  
  22.  
  23. .media{
  24. margin-bottom: 12px;
  25. position: relative;
  26. cursor:pointer;
  27. max-width: 360px;
  28. margin-left: auto;
  29. margin-right: auto;
  30.  
  31. .overlay{
  32. position: absolute;
  33. background: rgba(0,0,0,0.3);
  34. width: 100%;
  35. height: 100%;
  36. top: 0px;
  37. left: 0px;
  38. display: table;
  39.  
  40. .overlay-content{
  41. display: table-cell;
  42. vertical-align: middle;
  43. color: #fff;
  44. text-align: center;
  45. font-size: 48px;
  46. }
  47. }
  48.  
  49. &:hover{
  50. .overlay{
  51. display: none;
  52. }
  53. }
  54.  
  55. .bg{
  56. height: 100%;
  57. background-size: cover;
  58. background-position: center;
  59. background-repeat: no-repeat;
  60. }
  61.  
  62. &.media-double{
  63. height: 220px;
  64. @media (min-width: $screen-md-min) {
  65. height: 452px;
  66. max-width: 800px;
  67. }
  68.  
  69. }
  70.  
  71. &.media-single{
  72. height: 220px;
  73. }
  74.  
  75.  
  76. }
Advertisement
Add Comment
Please, Sign In to add comment