_header_footer.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  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. display: grid;
  133. grid-template-columns: 1fr 1fr 1fr;
  134. align-items: center;
  135. text-align: center;
  136. column-gap: 10px;
  137. &>div[id='']{
  138. height: 100%;
  139. }
  140. a[rel~='home']{
  141. display: none;
  142. height: 100%;
  143. // display: block;
  144. font-size: 0;
  145. color: transparent;
  146. background: left / contain no-repeat url(../images/POPSU_logo.svg);
  147. }
  148. }
  149. .header_top_middle_container{
  150. height: 100%;
  151. // solution to access views container
  152. .views-element-container{
  153. height: 100%;
  154. &>div:first-child{
  155. height: 100%;
  156. &>div:first-child{
  157. height: 100%;
  158. display: grid;
  159. grid-template-columns: repeat(4, 1fr);
  160. align-items: center;
  161. &>div:first-child{
  162. grid-column-start: 2;
  163. }
  164. }
  165. }
  166. }
  167. .views-row{
  168. text-align: center;
  169. display: inline-block;
  170. width: auto;
  171. a{
  172. text-transform: uppercase;
  173. text-decoration: none;
  174. font-weight: 600;
  175. }
  176. .views-field-title{
  177. display: inline-block;
  178. width: auto;
  179. padding: .2rem .5rem;
  180. }
  181. }
  182. }
  183. .close-block, .open-block{
  184. // background: red;
  185. cursor:pointer;
  186. span{
  187. display: block;
  188. width: 33px;
  189. height: 2px;
  190. position: relative;
  191. background: black;
  192. border-radius: 3px;
  193. z-index: 1;
  194. }
  195. }
  196. .close-block{
  197. padding-top: 1.2rem;
  198. padding-left: 2rem;
  199. span{
  200. transform-origin: center;
  201. }
  202. &>div>span:first-child{
  203. transform: translateY(57%)rotate(45deg);
  204. }
  205. &>div>span:nth-child(2){
  206. transform: rotate(-45deg);
  207. }
  208. }
  209. .open-block{
  210. height: 100%;
  211. display: grid;
  212. align-items: center;
  213. span{
  214. margin-bottom: 5px;
  215. transform-origin: 4px 0px;
  216. }
  217. }
  218. #header-top-right{
  219. .header_top_right_container{
  220. position: absolute;
  221. top: 0;
  222. left: 0;
  223. width: 100%;
  224. background: white;
  225. display: none;
  226. grid-template-columns: 10% 25% 25% 30% 10%;
  227. padding: 1rem 0;
  228. z-index: 140;
  229. line-height: 2;
  230. nav{
  231. grid-column-start: 2;
  232. }
  233. // padding: 1rem .5rem 1rem .5rem;
  234. a{
  235. text-decoration: none;
  236. font-weight: 400;
  237. &:hover{
  238. text-decoration: underline;
  239. }
  240. }
  241. h2{
  242. font-weight: 100;
  243. margin-bottom: .3rem;
  244. }
  245. .views-field-title{
  246. color: black !important;
  247. &:hover{
  248. background: transparent;
  249. }
  250. }
  251. .is-active{
  252. font-weight: 800;
  253. }
  254. #block-views-block-programmes-block-2{
  255. .views-row{
  256. width: 100%;
  257. }
  258. }
  259. }
  260. }
  261. footer{
  262. background: white;
  263. margin-top: 3rem;
  264. }
  265. #footer-bottom{
  266. padding: 2rem 0;
  267. height: 15rem;
  268. *{
  269. word-wrap: break-word;
  270. }
  271. h2{
  272. font-weight: 500;
  273. }
  274. .footer_bottom_left_container{
  275. height: 100%;
  276. div{
  277. height: 100%;
  278. }
  279. p{
  280. height: 100%;
  281. display: grid;
  282. }
  283. }
  284. .logo-gouv{
  285. height: 50%;
  286. display: block;
  287. color: transparent;
  288. font-size: 0;
  289. background: left / contain no-repeat url(../images/gouv.svg);
  290. }
  291. .logo-puca{
  292. height: 50%;
  293. display: block;
  294. color: transparent;
  295. font-size: 0;
  296. background: left / contain no-repeat url(../images/puca.svg);
  297. margin-top: -1rem;
  298. }
  299. #block-pieddepage{
  300. ul{
  301. line-height: 2;
  302. li{
  303. a{
  304. text-transform: uppercase;
  305. text-decoration: none;
  306. font-weight: 400;
  307. &:hover{
  308. text-decoration: underline;
  309. }
  310. }
  311. }
  312. }
  313. }
  314. .footer_bottom_right_container{
  315. &>div>div{
  316. // display: grid;
  317. // grid-template-columns: repeat(3,1fr);
  318. p{
  319. display: inline-block;
  320. a{
  321. min-width: 3rem;
  322. min-height: 3rem;
  323. }
  324. a[href*='twitter']{
  325. height: 100%;
  326. display: block;
  327. font-size: 0;
  328. color: transparent;
  329. background: left / contain no-repeat url(../images/tw.svg);
  330. }
  331. a[href*='linkedin']{
  332. height: 100%;
  333. display: block;
  334. font-size: 0;
  335. color: transparent;
  336. background: left / contain no-repeat url(../images/ln.svg);
  337. }
  338. a[href*='youtube']{
  339. height: 100%;
  340. display: block;
  341. font-size: 0;
  342. color: transparent;
  343. background: left / contain no-repeat url(../images/yt.svg);
  344. }
  345. }
  346. }
  347. }
  348. }