slides.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. .flickity-button {
  2. background: transparent;
  3. &:hover{
  4. background: transparent;
  5. }
  6. }
  7. .flickity-button-icon {
  8. fill: $col_black;
  9. }
  10. .flickity-button:disabled {
  11. display: none;
  12. }
  13. #block-views-block-slide-programme-block-1{
  14. .__slide{
  15. article{
  16. width: calc(100% - 30px);
  17. height: 325px;
  18. // background: none;
  19. display: flex;
  20. flex-direction: column;
  21. margin: 3rem $gutter 1.5rem $gutter;
  22. @media screen and (min-width: 768px) {
  23. width: calc(100% / 2 - #{$gutter} * 2);
  24. }
  25. @media screen and (min-width: 992px) {
  26. width: calc(100% / 3 - #{$gutter} * 2);
  27. }
  28. @media screen and (min-width: 1200px) {
  29. width: calc(100% / 4 - #{$gutter} * 2);
  30. }
  31. a{
  32. width: 100%;
  33. height: 100%;
  34. background: white;
  35. @include shadow;
  36. .__wrap{
  37. background: white;
  38. }
  39. }
  40. &.first{
  41. & > span{
  42. font-family: 'truenolight';
  43. position: absolute;
  44. top: -2.5rem;
  45. width: max-content;
  46. font-size: 1.2rem;
  47. line-height: 1.2;
  48. }
  49. &:not(:first-child){
  50. &::before{
  51. position: absolute;
  52. display: block;
  53. content: " ";
  54. width: 1px;
  55. height: calc(100% + 3rem);
  56. margin: -2.5rem 0 0 0;
  57. background: $color1;
  58. left: -0.5rem;
  59. top: 0;
  60. }
  61. }
  62. }
  63. }
  64. }
  65. }
  66. #block-views-block-slide-programme-block-1,
  67. #block-views-block-dernieres-publications-block-1{
  68. section:not(.wrap_head){
  69. margin: 1rem 0;
  70. }
  71. .views{
  72. section.wrap_head{
  73. @include croix_or;
  74. .head{
  75. display: block;
  76. }
  77. }
  78. }
  79. @media screen and (min-width: 576px) {
  80. .views{
  81. section{
  82. .head{
  83. display: flex!important;
  84. width: 100%;
  85. justify-content: space-between;
  86. align-items: center;
  87. }
  88. }
  89. }
  90. }
  91. }
  92. .paragraph--type--role-de-l-intervenant{
  93. margin-bottom: 2rem;
  94. .__slide{
  95. &:after {
  96. content: 'flickity';
  97. display: none;
  98. @media screen and ( min-width: 768px ) {
  99. content: '';
  100. }
  101. }
  102. .flickity-viewport{
  103. // overflow: initial;
  104. }
  105. .flickity-slider > div{
  106. width: 70%;
  107. padding: 0 0.5rem;
  108. @media screen and ( min-width: 768px ) {
  109. width: 100%;
  110. }
  111. }
  112. }
  113. }