thumbnails.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. @include shadow;
  18. a{
  19. display: block;
  20. height: 100%;
  21. }
  22. & > .__wrap{
  23. padding: 1rem;
  24. }
  25. .__media{
  26. margin-right: 1rem;
  27. figure{
  28. height: 100%;
  29. img{
  30. width: 100%;
  31. height: 100%;
  32. object-fit: cover;
  33. }
  34. }
  35. }
  36. .d-flex{
  37. padding: 1rem;
  38. }
  39. }
  40. .thumbnails{
  41. figure{
  42. height: 100px;
  43. img{
  44. width: 100%;
  45. height: 100%;
  46. object-fit: cover;
  47. }
  48. }
  49. }
  50. .programme{
  51. .row{
  52. margin: 0;
  53. }
  54. .thumbnails{
  55. width: 100%;
  56. margin: 0;
  57. figure{
  58. height: 250px;
  59. }
  60. }
  61. }
  62. @media screen and (min-width: 992px) {
  63. .programme{
  64. .row{
  65. margin: $gutter1 calc(-#{$gutter1});
  66. }
  67. .thumbnails{
  68. width: calc( 50% - #{$gutter1} * 2);
  69. margin: 0 $gutter1;
  70. figure{
  71. height: 250px;
  72. }
  73. }
  74. }
  75. }
  76. article{
  77. .__publications{
  78. & > div{
  79. article{
  80. width: 100%;
  81. @include shadow;
  82. figure{
  83. padding: 1rem;
  84. .__media{
  85. margin-right: 1rem;
  86. }
  87. figcaption {
  88. width: 80%;
  89. }
  90. }
  91. }
  92. }
  93. }
  94. }
  95. @media screen and (min-width: 992px) {
  96. article{
  97. .__publications{
  98. & > div{
  99. margin: 0 calc(-#{$gutter1});
  100. article{
  101. width: calc( 50% - #{$gutter1} * 2);
  102. margin: 0 $gutter1;
  103. @include shadow;
  104. figure{
  105. padding: 1rem;
  106. .__media{
  107. margin-right: 1rem;
  108. }
  109. figcaption {
  110. width: 80%;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. }
  117. }