_header_footer.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. //header
  2. #header-top{
  3. height: 3rem;
  4. background: white;
  5. }
  6. .header_top_left_container{
  7. height: 100%;
  8. &>div:first-child{
  9. height: 100%;
  10. }
  11. a[rel~='home']{
  12. height: 100%;
  13. display: block;
  14. font-size: 0;
  15. color: transparent;
  16. background: left / contain no-repeat url(../images/popsu-home-logo.png);
  17. }
  18. }
  19. .header_top_middle_container{
  20. height: 100%;
  21. // solution to access views container
  22. .views-element-container{
  23. height: 100%;
  24. &>div:first-child{
  25. height: 100%;
  26. &>div:first-child{
  27. height: 100%;
  28. display: grid;
  29. grid-template-columns: repeat(4, 1fr);
  30. align-items: center;
  31. &>div:first-child{
  32. grid-column-start: 2;
  33. }
  34. }
  35. }
  36. }
  37. .views-row{
  38. text-align: center;
  39. display: inline-block;
  40. width: auto;
  41. a{
  42. text-transform: uppercase;
  43. text-decoration: none;
  44. font-weight: 600;
  45. }
  46. .views-field-title{
  47. display: inline-block;
  48. width: auto;
  49. padding: .2rem .5rem;
  50. }
  51. }
  52. .popsu-node-3{
  53. .views-field-title{
  54. color: $col-eur;
  55. &:hover{
  56. background: $col-eur;
  57. color:white;
  58. }
  59. }
  60. }
  61. .popsu-node-5{
  62. .views-field-title{
  63. color: $col-mond;
  64. &:hover{
  65. background: $col-mond;
  66. color:white;
  67. }
  68. }
  69. }
  70. .popsu-node-7{
  71. .views-field-title{
  72. color: $col-met;
  73. &:hover{
  74. background: $col-met;
  75. color:white;
  76. }
  77. }
  78. }
  79. }
  80. .close-block, .open-block{
  81. // background: red;
  82. cursor:pointer;
  83. span{
  84. display: block;
  85. width: 33px;
  86. height: 2px;
  87. position: relative;
  88. background: black;
  89. border-radius: 3px;
  90. z-index: 1;
  91. }
  92. }
  93. .close-block{
  94. padding-top: 1rem;
  95. span{
  96. transform-origin: center;
  97. }
  98. &>div>span:first-child{
  99. transform: translateY(57%)rotate(45deg);
  100. }
  101. &>div>span:nth-child(2){
  102. transform: rotate(-45deg);
  103. }
  104. }
  105. .open-block{
  106. height: 100%;
  107. display: grid;
  108. align-items: center;
  109. span{
  110. margin-bottom: 5px;
  111. transform-origin: 4px 0px;
  112. }
  113. }
  114. #header-top-right{
  115. .header_top_right_container{
  116. position: absolute;
  117. top: 0;
  118. left: 0;
  119. width: 100%;
  120. background: white;
  121. display: none;
  122. grid-template-columns: 10% 25% 25% 30% 10%;
  123. padding: 1rem 0;
  124. z-index: 100;
  125. line-height: 2;
  126. nav{
  127. grid-column-start: 2;
  128. }
  129. // padding: 1rem .5rem 1rem .5rem;
  130. a{
  131. text-decoration: none;
  132. font-weight: 400;
  133. &:hover{
  134. text-decoration: underline;
  135. }
  136. }
  137. h2{
  138. font-weight: 100;
  139. margin-bottom: .3rem;
  140. }
  141. .is-active{
  142. font-weight: 800;
  143. }
  144. #block-views-block-programmes-block-2{
  145. .views-row{
  146. width: 100%;
  147. }
  148. }
  149. }
  150. }
  151. footer{
  152. background: white;
  153. }
  154. #footer-bottom{
  155. padding: 2rem 0;
  156. *{
  157. word-wrap: break-word;
  158. }
  159. h2{
  160. font-weight: 500;
  161. }
  162. .footer_bottom_left_container{
  163. height: 100%;
  164. div{
  165. height: 100%;
  166. }
  167. p{
  168. height: 100%;
  169. display: grid;
  170. }
  171. }
  172. .logo-gouv{
  173. height: 100%;
  174. display: block;
  175. color: transparent;
  176. font-size: 0;
  177. background: left / contain no-repeat url(../images/gouv.svg);
  178. }
  179. .logo-puca{
  180. height: 100%;
  181. display: block;
  182. color: transparent;
  183. font-size: 0;
  184. background: left / contain no-repeat url(../images/puca.svg);
  185. }
  186. #block-pieddepage{
  187. ul{
  188. line-height: 2;
  189. li{
  190. a{
  191. text-transform: uppercase;
  192. text-decoration: none;
  193. font-weight: 400;
  194. &:hover{
  195. text-decoration: underline;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. .footer_bottom_right_container{
  202. &>div>div{
  203. // display: grid;
  204. // grid-template-columns: repeat(3,1fr);
  205. p{
  206. display: inline-block;
  207. a{
  208. min-width: 2rem;
  209. min-height: 2rem;
  210. }
  211. a[href*='twitter']{
  212. height: 100%;
  213. display: block;
  214. font-size: 0;
  215. color: transparent;
  216. background: left / contain no-repeat url(../images/tw.svg);
  217. }
  218. a[href*='linkedin']{
  219. height: 100%;
  220. display: block;
  221. font-size: 0;
  222. color: transparent;
  223. background: left / contain no-repeat url(../images/ln.svg);
  224. }
  225. a[href*='youtube']{
  226. height: 100%;
  227. display: block;
  228. font-size: 0;
  229. color: transparent;
  230. background: left / contain no-repeat url(../images/yt.svg);
  231. }
  232. }
  233. }
  234. }
  235. }