thumbnails.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. // margin: $gutter1;
  94. .__media{
  95. padding: 0.5rem 0 0.5rem 0.5rem;
  96. }
  97. .__wrap{
  98. padding: 0.5rem;
  99. }
  100. @media screen and (min-width: 768px) {
  101. width: calc(100% / 2 - #{$gutter1} * 2);
  102. }
  103. @media screen and (min-width: 992px) {
  104. width: calc(100% / 2 - #{$gutter1} * 2);
  105. }
  106. @media screen and (min-width: 1200px) {
  107. width: calc(100% / 2 - #{$gutter1} * 2);
  108. }
  109. }
  110. }
  111. .__bibliographie{
  112. .thumbnails{
  113. background: transparent;
  114. a{
  115. & > div{
  116. div, span, p{
  117. display: inline;
  118. background: white;
  119. }
  120. }
  121. }
  122. @media screen and (min-width: 768px) {
  123. width: calc(100% / 2 - #{$gutter1} * 2);
  124. }
  125. @media screen and (min-width: 992px) {
  126. width: calc(100% / 2 - #{$gutter1} * 2);
  127. }
  128. @media screen and (min-width: 1200px) {
  129. width: calc(100% / 2 - #{$gutter1} * 2);
  130. }
  131. }
  132. }
  133. }
  134. // thumbnails participant
  135. .thumbnails_participants{
  136. figure{
  137. & > div{
  138. width: 100px;
  139. height: 100px;
  140. margin-left: 0.5rem;
  141. img{
  142. border-radius: 50%;
  143. width: 100%;
  144. height: 100%;
  145. object-fit: cover;
  146. }
  147. }
  148. figcaption{
  149. &.__info{
  150. padding: 4rem 0.5rem 0.5rem 0.5rem;
  151. margin-top: -3rem;
  152. background: white;
  153. .__name{
  154. text-transform: uppercase;
  155. }
  156. }
  157. }
  158. }
  159. }