_actualite.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. .path-node.page-node-type-actualite{
  2. .layout--threecol-25-50-25{
  3. // display: grid;
  4. // grid-template-rows: repeat(6, auto);
  5. .layout__region--top{
  6. // grid-row: 1 / span 2;
  7. // background-color: $background-actus;
  8. // height: 40vh;
  9. background: linear-gradient(to bottom, $background-actus 60%, white 40%);
  10. padding-right: 1rem;
  11. padding-bottom: 4rem;
  12. .block-region-top{
  13. // position: relative;
  14. display: grid;
  15. grid-template-columns: 1fr repeat(8, 1fr) 1fr;
  16. padding-top: 2rem;
  17. .block-entity-fieldnodefield-actu-type{
  18. grid-column: 2;
  19. }
  20. .block-entity-fieldnodetitle{
  21. grid-column: 2 /span 7;
  22. margin: 0;
  23. .field--name-title{
  24. font-family: "Source Code Pro";
  25. font-size: 2.5rem;
  26. font-weight: 500;
  27. }
  28. }
  29. .block-entity-fieldnodefield-date{
  30. grid-column: 2 / span 3;
  31. text-transform: uppercase;
  32. color: $blue-dark;
  33. font-size: 1.2rem;
  34. font-weight: 800;
  35. .field--name-field-date{
  36. display: flex;
  37. flex-direction: row;
  38. justify-content: flex-start;
  39. .field__item:not(:last-child):after{
  40. padding-right: 1rem;
  41. padding-left: 1rem;
  42. content: "|";
  43. }
  44. }
  45. }
  46. .block-entity-fieldnodefield-images{
  47. grid-column-start: 5;
  48. grid-column-end: 9;
  49. img{
  50. padding-top: 2rem;
  51. width: 600px;
  52. // height: auto;
  53. max-height: 360px;
  54. object-fit: cover;
  55. }
  56. // position: relative;
  57. // bottom: -50%;
  58. }
  59. }
  60. }
  61. .layout__region--first{
  62. // margin-top: 18rem;
  63. .block-region-first{
  64. display: flex;
  65. justify-content: flex-end;
  66. .block-entity-fieldnodefield-textes{
  67. display: flex;
  68. justify-content: flex-end;
  69. width: 50%;
  70. background-color: $white;
  71. padding-right: 2rem;
  72. .field--name-field-titre{
  73. display: flex;
  74. font-size: 1rem;
  75. font-weight: 1000;
  76. color: $blue-dark;
  77. border-bottom: 1px solid $blue-light;
  78. padding-bottom: 0.5rem;
  79. padding-right: 1rem;
  80. // margin-top: 2rem;
  81. margin-bottom: 0.8rem;
  82. &:hover{
  83. text-decoration: underline;
  84. }
  85. }
  86. }
  87. }
  88. }
  89. .layout__region--second{
  90. // grid-row: 3;
  91. flex: 0 1 50%;
  92. // margin-top: 18rem;
  93. .block-region-second{
  94. width: 90%;
  95. .block-entity-fieldnodebody{
  96. p{
  97. margin-top: 0;
  98. }
  99. }
  100. .block-entity-fieldnodefield-textes{
  101. background-color: $white;
  102. .field--name-field-titre{
  103. font-size: 1.5rem;
  104. font-weight: 1000;
  105. font-family: 'Source Code Pro';
  106. color: $blue-dark;
  107. text-transform: uppercase;
  108. margin-top: 2rem;
  109. margin-bottom: 0.8rem;
  110. }
  111. h4{
  112. text-transform: none !important;
  113. img{
  114. width: 100%;
  115. height: auto;
  116. }
  117. }
  118. .field--type-text-long{
  119. padding-right: 2rem;
  120. }
  121. p{
  122. margin-top: 0;
  123. }
  124. a{
  125. color: $black;
  126. text-decoration: underline;
  127. svg{
  128. display: none;
  129. }
  130. }
  131. }
  132. .block-entity-fieldnodebody{
  133. .panel-body{
  134. #outputtext{
  135. overflow-y: visible !important;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. .layout__region--third{
  142. // grid-row: 4;
  143. // margin-top: 18rem;
  144. .block-region-third{
  145. display: flex;
  146. flex-direction: column;
  147. width: 65%;
  148. .block-entity-fieldnodefield-fichiers{
  149. }
  150. .field--name-field-fichiers{
  151. .field__item{
  152. height: fit-content;
  153. border: 2px solid $blue-light;
  154. background-color: $white;
  155. margin-bottom: 1rem;
  156. min-height: 4rem;
  157. // background: $white;
  158. color: $blue-light;
  159. padding-left: 1rem;
  160. padding-top: 1rem;
  161. }
  162. span:nth-of-type(2){
  163. display: none;
  164. }
  165. .file--mime-application-pdf{
  166. height: inherit;
  167. margin: auto;
  168. ::before{
  169. content: url("../images/pictos/noun_Download_file_307900.svg");
  170. min-width:40px;
  171. height: auto;
  172. padding-right: 1rem;
  173. }
  174. a{
  175. hyphens: auto;
  176. display: inline-flex;
  177. align-items: center;
  178. color: $blue-light;
  179. font-weight: 800;
  180. // max-width: 80px ;
  181. }
  182. }
  183. }
  184. .block-entity-fieldnodefield-liens{
  185. .field--name-field-liens{
  186. .field__item{
  187. margin: auto;
  188. height: fit-content;
  189. border: 2px solid $blue-light;
  190. min-height: 4rem;
  191. background: $white;
  192. color: $blue-light;
  193. padding-left: 1rem;
  194. padding-top: 1rem;
  195. margin-bottom: 1rem;
  196. }
  197. a{
  198. display: inline-flex;
  199. align-items: center;
  200. color: $blue-light;
  201. font-weight: 800;
  202. &::before{
  203. content: url("../images/pictos/noun_External Link_674151.svg");
  204. min-width: 40px;
  205. height: auto;
  206. padding-right: 1rem;
  207. }
  208. svg.ext{
  209. display: none;
  210. }
  211. }
  212. }
  213. }
  214. .block-entity-fieldnodefield-ress{
  215. margin-top: 3rem;
  216. h2{
  217. font-size: 0.8rem;
  218. color: $black;
  219. font-weight: 900;
  220. }
  221. .node-type-ressource{
  222. display: flex;
  223. flex-direction: column;
  224. border: 2px solid $blue-light;
  225. padding: 1rem;
  226. height: fit-content;
  227. margin-bottom: 1rem;
  228. background-color: $white;
  229. &:first-of-type{
  230. border-top: 1px solid $blue-light;
  231. padding-top: 1rem;
  232. &::after{
  233. content: url("../images/pictos/noun_Arrow_3771902.svg");
  234. align-self: flex-end;
  235. }
  236. }
  237. .field--name-title{
  238. a{
  239. color: $black;
  240. font-size: 1.4rem;
  241. font-weight: 600;
  242. }
  243. }
  244. .field--name-field-auteur-s-{
  245. font-weight: 800;
  246. p{
  247. margin: 0;
  248. }
  249. .field__label{
  250. display:none;
  251. }
  252. }
  253. .field--name-field-edition{
  254. p{
  255. margin: 0;
  256. }
  257. .field__label{
  258. display:none;
  259. }
  260. }
  261. .field--name-field-images{
  262. width: 50%;
  263. img{
  264. width: 100%;
  265. height: auto;
  266. }
  267. }
  268. }
  269. }
  270. }
  271. }
  272. }
  273. }