thumbnails.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. // thumbnails global
  2. section{
  3. & > div:not(.__slide){
  4. article.thumbnails.programme{
  5. @include shadow;
  6. }
  7. }
  8. }
  9. .thumbnails{
  10. width: 100%;
  11. height: auto;
  12. background: white;
  13. margin: $gutter1;
  14. &:not(.bibliographie):not(.programme){
  15. @include shadow;
  16. }
  17. figure{
  18. height: 150px;
  19. margin: 0;
  20. }
  21. .__wrap{
  22. padding: 1rem;
  23. & > .d-flex{
  24. margin-bottom: 0.5rem;
  25. }
  26. }
  27. // thumbnails publications
  28. &.publications{
  29. @media screen and (min-width: 768px) {
  30. width: calc(100% / 2 - #{$gutter1} * 2);
  31. }
  32. @media screen and (min-width: 992px) {
  33. width: calc(100% / 3 - #{$gutter1} * 2);
  34. }
  35. @media screen and (min-width: 1200px) {
  36. width: calc(100% / 4 - #{$gutter1} * 2);
  37. }
  38. .__media{
  39. padding: 0.5rem 0 0.5rem 0.5rem;
  40. }
  41. .__wrap{
  42. padding: 0.5rem;
  43. }
  44. }
  45. &.bibliographie{
  46. background: white!important;
  47. padding: 0.5rem;
  48. &.link_ext{
  49. @include shadow;
  50. }
  51. @media screen and (min-width: 768px) {
  52. width: calc(100% / 2 - #{$gutter1} * 2);
  53. }
  54. @media screen and (min-width: 992px) {
  55. width: calc(100% / 3 - #{$gutter1} * 2);
  56. }
  57. @media screen and (min-width: 1200px) {
  58. width: calc(100% / 4 - #{$gutter1} * 2);
  59. }
  60. & > div * {
  61. color: $col_black;
  62. &.__auteur *{
  63. font-size: 1.4rem;
  64. }
  65. &.__body{
  66. margin:1rem 0;
  67. }
  68. }
  69. a{
  70. text-decoration: underline;
  71. color: $color1;
  72. }
  73. }
  74. }
  75. // thumbnails slides
  76. .__slide{
  77. .thumbnails{
  78. // max-width: 380px;
  79. width: calc(100% - 30px);
  80. a{
  81. width: calc(100%);
  82. }
  83. @media screen and (min-width: 768px) {
  84. width: calc(100% / 2 - #{$gutter1} * 2);
  85. }
  86. @media screen and (min-width: 992px) {
  87. width: calc(100% / 3 - #{$gutter1} * 2);
  88. }
  89. @media screen and (min-width: 1200px) {
  90. width: calc(100% / 4 - #{$gutter1} * 2);
  91. }
  92. }
  93. }
  94. // Page programme
  95. .container{
  96. &.programme{
  97. .thumbnails{
  98. @media screen and (min-width: 768px) {
  99. width: calc(100% / 2 - #{$gutter1} * 2);
  100. margin: 0.5rem;
  101. }
  102. @media screen and (min-width: 992px) {
  103. width: calc(100% / 3 - #{$gutter1} * 2);
  104. }
  105. // @media screen and (min-width: 1200px) {
  106. // width: calc(100% / 4 - #{$gutter1} * 2);
  107. // }
  108. }
  109. }
  110. }
  111. // page moment
  112. .__ressources{
  113. .__publications{
  114. .publications{
  115. // margin: $gutter1;
  116. .__media{
  117. padding: 0.5rem 0 0.5rem 0.5rem;
  118. }
  119. .__wrap{
  120. padding: 0.5rem;
  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. .__bibliographie{
  134. .thumbnails{
  135. background: transparent;
  136. a{
  137. & > div{
  138. div, span, p{
  139. display: inline;
  140. background: white;
  141. }
  142. }
  143. }
  144. @media screen and (min-width: 768px) {
  145. width: calc(100% / 2 - #{$gutter1} * 2);
  146. }
  147. @media screen and (min-width: 992px) {
  148. width: calc(100% / 2 - #{$gutter1} * 2);
  149. }
  150. @media screen and (min-width: 1200px) {
  151. width: calc(100% / 2 - #{$gutter1} * 2);
  152. }
  153. }
  154. }
  155. }
  156. // thumbnails participant
  157. .thumbnails_participants{
  158. figure{
  159. & > div{
  160. width: 100px;
  161. height: 100px;
  162. margin-left: 0.5rem;
  163. img{
  164. border-radius: 50%;
  165. width: 100%;
  166. height: 100%;
  167. object-fit: cover;
  168. }
  169. }
  170. figcaption{
  171. &.__info{
  172. padding: 4rem 0.5rem 0.5rem 0.5rem;
  173. margin-top: -3rem;
  174. background: white;
  175. .__name{
  176. text-transform: uppercase;
  177. }
  178. }
  179. }
  180. }
  181. }