thumbnails.scss 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. * @file
  3. * Presentational styles for Drupal stark theme layout.
  4. *
  5. * It is left empty for testing purposes.
  6. *
  7. * @see https://www.drupal.org/project/drupal/issues/2349711
  8. */
  9. .thumbnails{
  10. margin: 1rem 0rem;
  11. // max-width: 300px;
  12. min-width: 250px;
  13. height: auto;
  14. width: calc(100% / 4 );
  15. background: white;
  16. transform: scale(1);
  17. box-shadow: none;
  18. transition: 0.3s transform ease, 0.3s box-shadow ease;
  19. a{
  20. display: block;
  21. height: 100%;
  22. }
  23. &:hover{
  24. transform: scale(1.05);
  25. transition: 0.3s all ease;
  26. box-shadow: 0px 0px 13px 0px $color2;
  27. }
  28. & > .__wrap{
  29. padding: 1rem;
  30. }
  31. .__media{
  32. margin-right: 1rem;
  33. figure{
  34. height: 100%;
  35. img{
  36. width: 100%;
  37. height: 100%;
  38. object-fit: cover;
  39. }
  40. }
  41. }
  42. .d-flex{
  43. padding: 1rem;
  44. }
  45. }
  46. .thumbnails{
  47. figure{
  48. height: 100px;
  49. img{
  50. width: 100%;
  51. height: 100%;
  52. object-fit: cover;
  53. }
  54. }
  55. }
  56. .programme{
  57. .row{
  58. margin: 0;
  59. }
  60. .thumbnails{
  61. width: 100%;
  62. margin: 0;
  63. figure{
  64. height: 250px;
  65. }
  66. }
  67. }
  68. @media screen and (min-width: 960px) {
  69. .programme{
  70. .row{
  71. margin: $gutter1 calc(-#{$gutter1});
  72. }
  73. .thumbnails{
  74. width: calc( 50% - #{$gutter1} * 2);
  75. margin: 0 $gutter1;
  76. figure{
  77. height: 250px;
  78. }
  79. }
  80. }
  81. }