thumbnails.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // thumbnails global
  2. .thumbnails{
  3. width: 100%;
  4. height: auto;
  5. background: white;
  6. margin: $gutter1;
  7. &:not(.bibliographie){
  8. @include shadow;
  9. }
  10. figure{
  11. height: 150px;
  12. margin: 0;
  13. }
  14. .__wrap{
  15. padding: 1rem;
  16. & > .d-flex{
  17. margin-bottom: 0.5rem;
  18. }
  19. }
  20. // thumbnails publications
  21. &.publications{
  22. @media screen and (min-width: 768px) {
  23. width: calc(100% / 2 - #{$gutter1} * 2);
  24. }
  25. @media screen and (min-width: 992px) {
  26. width: calc(100% / 3 - #{$gutter1} * 2);
  27. }
  28. @media screen and (min-width: 1200px) {
  29. width: calc(100% / 4 - #{$gutter1} * 2);
  30. }
  31. .__media{
  32. padding: 0.5rem 0 0.5rem 0.5rem;
  33. }
  34. .__wrap{
  35. padding: 0.5rem;
  36. }
  37. }
  38. &.bibliographie{
  39. @media screen and (min-width: 768px) {
  40. width: calc(100% / 2 - #{$gutter1} * 2);
  41. }
  42. @media screen and (min-width: 992px) {
  43. width: calc(100% / 3 - #{$gutter1} * 2);
  44. }
  45. @media screen and (min-width: 1200px) {
  46. width: calc(100% / 4 - #{$gutter1} * 2);
  47. }
  48. a{
  49. & > div * {
  50. display: inline;
  51. background: white;
  52. color: $color2;
  53. }
  54. }
  55. }
  56. }
  57. // thumbnails slides
  58. .__slide{
  59. .thumbnails{
  60. max-width: 380px;
  61. @media screen and (min-width: 768px) {
  62. width: calc(100% / 2 - #{$gutter1} * 2);
  63. }
  64. @media screen and (min-width: 992px) {
  65. width: calc(100% / 3 - #{$gutter1} * 2);
  66. }
  67. @media screen and (min-width: 1200px) {
  68. width: calc(100% / 4 - #{$gutter1} * 2);
  69. }
  70. }
  71. }
  72. // Page programme
  73. .container{
  74. &.programme{
  75. .thumbnails{
  76. @media screen and (min-width: 768px) {
  77. width: calc(100% / 2 - #{$gutter1} * 2);
  78. margin: 0.5rem;
  79. }
  80. @media screen and (min-width: 992px) {
  81. width: calc(100% / 3 - #{$gutter1} * 2);
  82. }
  83. // @media screen and (min-width: 1200px) {
  84. // width: calc(100% / 4 - #{$gutter1} * 2);
  85. // }
  86. }
  87. }
  88. }
  89. // page moment
  90. .__ressources{
  91. .__publications{
  92. .publications{
  93. .__media{
  94. padding: 0.5rem 0 0.5rem 0.5rem;
  95. }
  96. .__wrap{
  97. padding: 0.5rem;
  98. }
  99. @media screen and (min-width: 768px) {
  100. width: calc(100% / 2 - #{$gutter1});
  101. }
  102. @media screen and (min-width: 992px) {
  103. width: calc(100% / 2 - #{$gutter1});
  104. }
  105. @media screen and (min-width: 1200px) {
  106. width: calc(100% / 2 - #{$gutter1});
  107. }
  108. }
  109. }
  110. .__bibliographie{
  111. .thumbnails{
  112. background: transparent;
  113. a{
  114. & > div{
  115. div, span, p{
  116. display: inline;
  117. background: white;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. }
  124. // thumbnails participant
  125. .thumbnails_participants{
  126. figure{
  127. & > div{
  128. width: 100px;
  129. height: 100px;
  130. margin-left: 0.5rem;
  131. img{
  132. border-radius: 50%;
  133. width: 100%;
  134. height: 100%;
  135. object-fit: cover;
  136. }
  137. }
  138. figcaption{
  139. &.__info{
  140. padding: 4rem 0.5rem 0.5rem 0.5rem;
  141. margin-top: -3rem;
  142. background: white;
  143. .__name{
  144. text-transform: uppercase;
  145. }
  146. }
  147. }
  148. }
  149. }