_header_footer.scss 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. //header
  2. .header_top_middle_container{
  3. .programme-1{
  4. .views-field-field-programme{
  5. .field-content{
  6. background: $col-1;
  7. }
  8. }
  9. .views-field{
  10. color: $col-1;
  11. }
  12. .views-field-title{
  13. color: $col-1;
  14. &:hover{
  15. background: $col-1;
  16. color:white;
  17. }
  18. }
  19. }
  20. .programme-2{
  21. .views-field-field-programme{
  22. .field-content{
  23. background: $col-2;
  24. }
  25. }
  26. .views-field{
  27. color: $col-2;
  28. }
  29. .views-field-title{
  30. color: $col-2;
  31. &:hover{
  32. background: $col-2;
  33. color:white;
  34. }
  35. }
  36. }
  37. .programme-3{
  38. .views-field-field-programme{
  39. .field-content{
  40. background: $col-eur;
  41. }
  42. }
  43. .views-field{
  44. color: $col-eur;
  45. }
  46. .views-field-title{
  47. color: $col-eur;
  48. &:hover{
  49. background: $col-eur;
  50. color:white;
  51. }
  52. }
  53. }
  54. .programme-4{
  55. .views-field-field-programme{
  56. .field-content{
  57. background: $col-2;
  58. }
  59. }
  60. .views-field{
  61. color: $col-2;
  62. }
  63. .views-field-title{
  64. color: $col-2;
  65. &:hover{
  66. background: $col-2;
  67. color:white;
  68. }
  69. }
  70. }
  71. .programme-5{
  72. .views-field-field-programme{
  73. .field-content{
  74. background: $col-mond;
  75. }
  76. }
  77. .views-field{
  78. color: $col-mond;
  79. }
  80. .views-field-title{
  81. color: $col-mond;
  82. &:hover{
  83. background: $col-mond;
  84. color:white;
  85. }
  86. }
  87. }
  88. .programme-6{
  89. .views-field-field-programme{
  90. .field-content{
  91. background: $col-ter;
  92. }
  93. }
  94. .views-field{
  95. color: $col-ter;
  96. }
  97. .views-field-title{
  98. color: $col-ter;
  99. &:hover{
  100. background: $col-ter;
  101. color:white;
  102. }
  103. }
  104. }
  105. .programme-7{
  106. .views-field-field-programme{
  107. .field-content{
  108. background: $col-met;
  109. }
  110. }
  111. .views-field{
  112. color: $col-met;
  113. }
  114. .views-field-title{
  115. color: $col-met;
  116. &:hover{
  117. background: $col-met;
  118. color:white;
  119. }
  120. }
  121. }
  122. }
  123. ////////////////////////////////////////@at-root
  124. #header-top{
  125. height: 5rem;
  126. background: white;
  127. padding-bottom: 1rem;
  128. padding-top: 1rem;
  129. }
  130. .header_top_left_container{
  131. height: 100%;
  132. &>div:first-child{
  133. height: 100%;
  134. }
  135. a[rel~='home']{
  136. height: 100%;
  137. display: block;
  138. font-size: 0;
  139. color: transparent;
  140. background: left / contain no-repeat url(../images/POPSU_logo.svg);
  141. }
  142. }
  143. .header_top_middle_container{
  144. height: 100%;
  145. // solution to access views container
  146. .views-element-container{
  147. height: 100%;
  148. &>div:first-child{
  149. height: 100%;
  150. &>div:first-child{
  151. height: 100%;
  152. display: grid;
  153. grid-template-columns: repeat(4, 1fr);
  154. align-items: center;
  155. &>div:first-child{
  156. grid-column-start: 2;
  157. }
  158. }
  159. }
  160. }
  161. .views-row{
  162. text-align: center;
  163. display: inline-block;
  164. width: auto;
  165. a{
  166. text-transform: uppercase;
  167. text-decoration: none;
  168. font-weight: 600;
  169. }
  170. .views-field-title{
  171. display: inline-block;
  172. width: auto;
  173. padding: .2rem .5rem;
  174. }
  175. }
  176. }
  177. .close-block, .open-block{
  178. // background: red;
  179. cursor:pointer;
  180. span{
  181. display: block;
  182. width: 33px;
  183. height: 2px;
  184. position: relative;
  185. background: black;
  186. border-radius: 3px;
  187. z-index: 1;
  188. }
  189. }
  190. .close-block{
  191. padding-top: 1rem;
  192. span{
  193. transform-origin: center;
  194. }
  195. &>div>span:first-child{
  196. transform: translateY(57%)rotate(45deg);
  197. }
  198. &>div>span:nth-child(2){
  199. transform: rotate(-45deg);
  200. }
  201. }
  202. .open-block{
  203. height: 100%;
  204. display: grid;
  205. align-items: center;
  206. span{
  207. margin-bottom: 5px;
  208. transform-origin: 4px 0px;
  209. }
  210. }
  211. #header-top-right{
  212. .header_top_right_container{
  213. position: absolute;
  214. top: 0;
  215. left: 0;
  216. width: 100%;
  217. background: white;
  218. display: none;
  219. grid-template-columns: 10% 25% 25% 30% 10%;
  220. padding: 1rem 0;
  221. z-index: 100;
  222. line-height: 2;
  223. nav{
  224. grid-column-start: 2;
  225. }
  226. // padding: 1rem .5rem 1rem .5rem;
  227. a{
  228. text-decoration: none;
  229. font-weight: 400;
  230. &:hover{
  231. text-decoration: underline;
  232. }
  233. }
  234. h2{
  235. font-weight: 100;
  236. margin-bottom: .3rem;
  237. }
  238. .views-field-title{
  239. color: black !important;
  240. &:hover{
  241. background: transparent;
  242. }
  243. }
  244. .is-active{
  245. font-weight: 800;
  246. }
  247. #block-views-block-programmes-block-2{
  248. .views-row{
  249. width: 100%;
  250. }
  251. }
  252. }
  253. }
  254. footer{
  255. background: white;
  256. }
  257. #footer-bottom{
  258. padding: 2rem 0;
  259. height: 15rem;
  260. *{
  261. word-wrap: break-word;
  262. }
  263. h2{
  264. font-weight: 500;
  265. }
  266. .footer_bottom_left_container{
  267. height: 100%;
  268. div{
  269. height: 100%;
  270. }
  271. p{
  272. height: 100%;
  273. display: grid;
  274. }
  275. }
  276. .logo-gouv{
  277. height: 100%;
  278. display: block;
  279. color: transparent;
  280. font-size: 0;
  281. background: left / contain no-repeat url(../images/gouv.svg);
  282. }
  283. .logo-puca{
  284. height: 100%;
  285. display: block;
  286. color: transparent;
  287. font-size: 0;
  288. background: left / contain no-repeat url(../images/puca.svg);
  289. margin-top: -1.5rem;
  290. }
  291. #block-pieddepage{
  292. ul{
  293. line-height: 2;
  294. li{
  295. a{
  296. text-transform: uppercase;
  297. text-decoration: none;
  298. font-weight: 400;
  299. &:hover{
  300. text-decoration: underline;
  301. }
  302. }
  303. }
  304. }
  305. }
  306. .footer_bottom_right_container{
  307. &>div>div{
  308. // display: grid;
  309. // grid-template-columns: repeat(3,1fr);
  310. p{
  311. display: inline-block;
  312. a{
  313. min-width: 3rem;
  314. min-height: 3rem;
  315. }
  316. a[href*='twitter']{
  317. height: 100%;
  318. display: block;
  319. font-size: 0;
  320. color: transparent;
  321. background: left / contain no-repeat url(../images/tw.svg);
  322. }
  323. a[href*='linkedin']{
  324. height: 100%;
  325. display: block;
  326. font-size: 0;
  327. color: transparent;
  328. background: left / contain no-repeat url(../images/ln.svg);
  329. }
  330. a[href*='youtube']{
  331. height: 100%;
  332. display: block;
  333. font-size: 0;
  334. color: transparent;
  335. background: left / contain no-repeat url(../images/yt.svg);
  336. }
  337. }
  338. }
  339. }
  340. }