_static.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. .path-node.page-node-type-static{
  2. .layout-container{
  3. overflow: unset;
  4. // display: flex;
  5. // flex-direction: column;
  6. // flex-flow: row wrap;
  7. // header{
  8. // flex: 0 0 100%;
  9. // }
  10. // main{
  11. // flex: 0 0 100%;
  12. .layout-content{
  13. // padding-top: 0;
  14. .layout__region--top{ //bandeau titre page static
  15. padding-bottom: 3rem;
  16. height: 30vh;
  17. @media (max-width: 810px){
  18. padding-bottom: 0rem;
  19. }
  20. .block-entity-fieldnodetitle{
  21. width: fit-content;
  22. margin-left: 11%;
  23. margin-top: 15vh;
  24. @media (max-width: 810px){
  25. margin-left: 8%;
  26. margin-right: 5%;
  27. }
  28. .field--name-title{
  29. display: inline;
  30. font-family: 'Source Code Pro';
  31. font-size: 2rem;
  32. font-weight: 800;
  33. text-transform: uppercase;
  34. }
  35. }
  36. // .block-entity-fieldnodefield-images{
  37. // display: none;
  38. // height: inherit;
  39. // }
  40. }
  41. // menu ancres a gauche
  42. .layout__region--first{ // menu ancres a gauche
  43. position: relative;
  44. .block-region-first{
  45. display: flex;
  46. justify-content: flex-end;
  47. position: -webkit-sticky;
  48. position: sticky;
  49. top: 10rem;
  50. @media (max-width: 810px){
  51. display: none;
  52. }
  53. .block-entity-fieldnodefield-textes{
  54. display: flex;
  55. width: 50%;
  56. background-color: $white;
  57. padding-right: 2rem;
  58. .field--name-field-titre{
  59. display: flex;
  60. font-size: 1rem;
  61. font-weight: 1000;
  62. color: $blue-dark;
  63. border-bottom: 1px solid $blue-light;
  64. padding-bottom: 0.8rem;
  65. padding-right: 1rem;
  66. margin-top: 1rem;
  67. scroll-margin-top: 7em;
  68. &:hover{
  69. text-decoration: underline;
  70. }
  71. }
  72. }
  73. }
  74. }
  75. // paragraphe texte
  76. .layout__region--second{
  77. @media (max-width: 810px){
  78. flex: 0 1 80%;
  79. margin: auto;
  80. }
  81. @media (max-width: 479px){
  82. padding-top: 5rem;
  83. }
  84. // paragraphe texte
  85. .block-entity-fieldnodefield-textes{
  86. margin-top: 1rem;
  87. background-color: $white;
  88. .field--name-field-titre{
  89. font-size: 1.5rem;
  90. font-weight: 1000;
  91. font-family: 'Source Code Pro', monospace;
  92. color: $blue-dark;
  93. text-transform: uppercase;
  94. margin-top: 2rem;
  95. margin-bottom: 0.8rem;
  96. }
  97. h4{
  98. text-transform: none !important;
  99. img{
  100. width: 100%;
  101. height: auto;
  102. }
  103. }
  104. .field--type-text-long{
  105. // padding-right: 2rem;
  106. padding: 0.5rem 1rem 1rem 1.5rem;
  107. }
  108. p{
  109. margin-top: 0;
  110. }
  111. }
  112. }
  113. // colone de droite fichiers et ressources liées
  114. .layout__region--third{
  115. .block-region-third{
  116. margin-top: 1rem;
  117. display: flex;
  118. flex-direction: column;
  119. width: 70%;
  120. // position: -webkit-sticky;
  121. // position: sticky;
  122. // top: 9rem;
  123. @media (max-width: 810px){
  124. margin: auto;
  125. }
  126. .block-entity-fieldnodefield-fichiers{
  127. height: fit-content;
  128. border: 2px solid $blue-light;
  129. background-color: $white;
  130. .field--name-field-fichiers{
  131. min-height: 4rem;
  132. background: $white;
  133. color: $blue-light;
  134. padding-left: 0.8rem;
  135. padding-top: 1rem;
  136. padding-bottom: 1rem;
  137. padding-right: 0.5rem;
  138. span:nth-of-type(2){
  139. display: none;
  140. }
  141. .file--mime-application-pdf{
  142. height: inherit;
  143. margin: auto;
  144. ::before{
  145. content: url("../images/pictos/download.png");
  146. height: auto;
  147. padding-right: 1rem;
  148. }
  149. a{
  150. hyphens: auto;
  151. display: inline-flex;
  152. color: $blue-light;
  153. font-weight: 800;
  154. align-items: center;
  155. }
  156. }
  157. }
  158. }
  159. .block-entity-fieldnodefield-liens{
  160. .field--name-field-liens{
  161. .field__item{
  162. margin: auto;
  163. height: fit-content;
  164. border: 2px solid $blue-light;
  165. min-height: 2rem;
  166. background: $white;
  167. color: $blue-light;
  168. padding-left: 0.8rem;
  169. padding-top: 1rem;
  170. padding-bottom: 1rem;
  171. margin-bottom: 1rem;
  172. padding-right: 0.5rem;
  173. }
  174. a{
  175. display: inline-flex;
  176. justify-items: center;
  177. color: $blue-light;
  178. font-weight: 800;
  179. align-items: center;
  180. &::before{
  181. content: url("../images/pictos/external_link.png");
  182. height: auto;
  183. padding-right: 1rem;
  184. }
  185. svg.ext{
  186. display: none;
  187. }
  188. }
  189. }
  190. }
  191. .block-entity-fieldnodefield-ress{
  192. margin-top: 3rem;
  193. h2{
  194. font-size: 0.8rem;
  195. color: $black;
  196. font-weight: 900;
  197. }
  198. .node-type-ressource{
  199. border: 2px solid $blue-light;
  200. background-color: $white;
  201. margin-bottom: 1rem ;
  202. padding: 1rem;
  203. div{
  204. display: flex;
  205. flex-direction: column;
  206. .field--name-field-type-de-ressource{
  207. order: 2;
  208. text-transform: uppercase;
  209. color: $blue-light;
  210. font-weight: 900;
  211. font-size: 0.8rem;
  212. }
  213. .field--name-title{
  214. order: 3;
  215. h2{
  216. margin: 0;
  217. a{
  218. color: $black;
  219. font-size: 1rem;
  220. font-weight: 900;
  221. }
  222. }
  223. }
  224. .field--name-field-sous-titre{
  225. order:4;
  226. }
  227. .field--name-field-auteur-s-{
  228. order: 5;
  229. font-weight: 800;
  230. p{
  231. margin: 0;
  232. }
  233. .field__label{
  234. display:none;
  235. }
  236. }
  237. .field--name-field-edition{
  238. p{
  239. margin: 0;
  240. }
  241. .field__label{
  242. display:none;
  243. }
  244. }
  245. .field--name-field-images{
  246. order: 1;
  247. width: 25%;
  248. img{
  249. width: 100%;
  250. height: auto;
  251. border: solid 1px gray;
  252. }
  253. }
  254. .field--name-field-date-de-parution{
  255. order: 6;
  256. .field__label{
  257. display: none;
  258. }
  259. }
  260. .field--name-field-mots-clefs{
  261. order: 7;
  262. display: flex;
  263. margin-top: 0.8rem;
  264. flex-direction: row;
  265. flex-wrap: wrap;
  266. .field__label{
  267. display: none;
  268. }
  269. .field__items{
  270. display: flex;
  271. flex-direction: row;
  272. flex-wrap: wrap;
  273. }
  274. .field__item{
  275. padding-bottom: 0.5rem;
  276. margin-right: 0.5rem;
  277. padding-right: 0.3rem;
  278. font-size: 0.8rem;
  279. a{
  280. background: $blue-dark;
  281. color: $white;
  282. font-weight: 800;
  283. vertical-align: super;
  284. padding-left: 0.1rem;
  285. padding-right: 0.1rem;
  286. display: inline-flex;
  287. }
  288. }
  289. }
  290. ul.links.inline{
  291. display: none;
  292. }
  293. }
  294. }
  295. }
  296. }
  297. }
  298. }
  299. // }
  300. }
  301. }