_faq.scss 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. .path-faq{
  2. #block-contenudelapageprincipale{
  3. h2{
  4. font-family: 'Source Code Pro';
  5. font-size: 2rem;
  6. font-weight: 800;
  7. color: $blue-light;
  8. background-color: $white;
  9. text-transform: uppercase;
  10. width: fit-content;
  11. margin-left: 10%;
  12. margin-top: 8rem;
  13. @media (max-width: 810px){
  14. margin-left: 8%;
  15. margin-right: 1%;
  16. }
  17. }
  18. .block-region-content{
  19. display: grid;
  20. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  21. @media (max-width: 810px){
  22. display: flex;
  23. flex-direction: column;
  24. margin: auto;
  25. }
  26. // texte
  27. .block-config-pages.block-config-pages-block{
  28. grid-column: 2 / span 3;
  29. @media (max-width: 810px){
  30. width: 80%;
  31. margin: auto;
  32. }
  33. }
  34. // bloc bleu déposer une question
  35. .block-block-content.block-block-content10aba627-5586-4529-b44e-c0b4551a4398{
  36. ///////////////// à activer le 19 février /////////////////
  37. display: none;
  38. //////////////////////////////////
  39. grid-column: 5;
  40. grid-row: 1 /span 2;
  41. height: fit-content;
  42. ///////////////// à désactiver le 19 février /////////////////
  43. // display: flex;
  44. //////////////////////////////////
  45. flex-direction: column;
  46. max-width: fit-content;
  47. margin-left: 2rem;
  48. padding: 1rem;
  49. background-color: $blue-light;
  50. .field--name-field-lien{
  51. &:before{
  52. margin-top: 1rem;
  53. display: block;
  54. content: url("../images/pictos/picto_faq.svg");
  55. }
  56. text-align: center;
  57. a{
  58. font-size: 0.8rem;
  59. font-weight: 1000;
  60. color: $blue-dark;
  61. text-transform: uppercase;
  62. }
  63. }
  64. .field--name-field-description{
  65. p{
  66. display: flex;
  67. flex-direction: column;
  68. margin-top: 0;
  69. margin-left: 1.5rem;
  70. margin-right: 1.5rem;
  71. text-align: center;
  72. a{
  73. font-weight: 800;
  74. color: $white;
  75. font-size: 1.3rem;
  76. }
  77. &:after{
  78. margin-left: auto;
  79. padding-top: 1rem;
  80. display: block;
  81. content:url("../images/pictos/noun_Arrow_3771902.svg")
  82. }
  83. }
  84. }
  85. @media (max-width: 810px){
  86. margin: auto;
  87. padding: 0rem;
  88. .field--name-field-lien{
  89. &:before{
  90. margin-top: 1rem;
  91. display: block;
  92. content: url("../images/pictos/picto_faq_2.svg");
  93. }
  94. text-align: center;
  95. a{
  96. font-size: 0.8rem;
  97. font-weight: 1000;
  98. color: $blue-dark;
  99. text-transform: uppercase;
  100. }
  101. }
  102. }
  103. }
  104. .block-views-blockfaq-block-1{
  105. margin-top: 2rem;
  106. grid-column: 2 / span 3;
  107. display: grid;
  108. grid-template-columns: 1fr 1fr 1fr;
  109. @media (max-width: 810px){
  110. width: 80%;
  111. margin: auto;
  112. margin-top: 1rem;
  113. }
  114. div:first-child{
  115. grid-column: 1 / span 3;
  116. // width: 70%;
  117. // margin: auto;
  118. .node-type-question_reponse{
  119. border-bottom: 1px solid $blue-light;
  120. padding-bottom: 2rem;
  121. @media (max-width: 810px){
  122. padding-bottom: 1rem;
  123. }
  124. .field--name-title{
  125. display: none;
  126. }
  127. .field--name-field-question{
  128. cursor: pointer;
  129. p{
  130. font-family: 'Source Code Pro' ;
  131. font-weight: 500 ;
  132. color: $blue-dark ;
  133. font-size: 1.3rem;
  134. &:after{
  135. display:inline-flex;
  136. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" rotate="-45" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  137. // justify-self: flex-end;
  138. float: right;
  139. }
  140. }
  141. :hover {
  142. &:after{
  143. display:inline-flex;
  144. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" rotate="-45" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  145. // justify-self: flex-end;
  146. float: right;
  147. }
  148. }
  149. }
  150. .field--name-field-reponse{
  151. display: none;
  152. }
  153. .field--name-field-fichiers{
  154. display: none;
  155. span:nth-of-type(2){
  156. display: none;
  157. }
  158. .file--mime-application-pdf{
  159. span:nth-of-type(2){
  160. display: none;
  161. }
  162. ::before{
  163. display: inline-block;
  164. content: url("../images/pictos/noun_Download_file_307900.svg");
  165. width: 30px;
  166. height: 30px;
  167. padding-right: 0.8rem;
  168. }
  169. a{
  170. display: inline-flex;
  171. align-items: center;
  172. color: $black;
  173. font-weight: 800;
  174. }
  175. }
  176. }
  177. .field--name-field-liens{
  178. display: none;
  179. a{
  180. &:before{
  181. display: inline-block;
  182. content: url("../images/pictos/noun_External Link_674151.svg");
  183. width: 30px;
  184. height: 30px;
  185. padding-right: 0.8rem;
  186. }
  187. display:flex;
  188. flex-direction: row;
  189. justify-content: left;
  190. align-items: center;
  191. color: $black;
  192. font-weight: 800;
  193. }
  194. svg{
  195. display: none;
  196. }
  197. }
  198. .field--name-field-ress{
  199. display: none;
  200. margin-top: 0.5rem;
  201. a{
  202. color: $black;
  203. text-decoration: underline;
  204. font-weight: 800;
  205. }
  206. }
  207. .opened{
  208. display: block;
  209. }
  210. }
  211. }
  212. }
  213. }
  214. }
  215. }