_header_footer.scss 4.8 KB

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