_header_footer.scss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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 > span{
  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 > span{
  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 > span{
  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-1;
  58. }
  59. }
  60. .views-field{
  61. color: $col-1;
  62. }
  63. .views-field-title > span{
  64. color: $col-1;
  65. &:hover{
  66. background: $col-1;
  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 > span{
  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 > span{
  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 > span{
  115. color: $col-met;
  116. &:hover{
  117. background: $col-met;
  118. color:white;
  119. }
  120. }
  121. }
  122. .programme-878{
  123. .views-field-field-programme{
  124. .field-content{
  125. background: $col-ter;
  126. }
  127. }
  128. .views-field{
  129. color: $col-ter;
  130. }
  131. .views-field-title > span{
  132. color: $col-ter;
  133. &:hover{
  134. background: $col-ter;
  135. color:white;
  136. }
  137. }
  138. }
  139. .programme-883{
  140. .views-field-field-programme{
  141. .field-content{
  142. background: $col-transition;
  143. }
  144. }
  145. .views-field{
  146. color: $col-transition;
  147. }
  148. .views-field-title > span{
  149. color: $col-transition;
  150. &:hover{
  151. background: $col-transition;
  152. color:white;
  153. }
  154. }
  155. }
  156. }
  157. ////////////////////////////////////////@at-root
  158. #header-top{
  159. height: 5rem;
  160. background: white;
  161. padding-bottom: 1rem;
  162. padding-top: 1rem;
  163. }
  164. .header_top_left_container{
  165. height: 100%;
  166. display: grid;
  167. grid-template-columns: 1fr 1fr 1fr;
  168. align-items: center;
  169. text-align: center;
  170. column-gap: 10px;
  171. &>div[id='']{
  172. height: 100%;
  173. font-size: 0;
  174. }
  175. a[rel~='home']{
  176. //display: none;
  177. height: 100%;
  178. display: block;
  179. font-size: 0;
  180. color: transparent;
  181. background: left / contain no-repeat url(../../images/logoPOPSU.png);
  182. }
  183. @include breakpoint(small down) {
  184. grid-template-columns: 1fr 1fr;
  185. }
  186. }
  187. .header_top_middle_container{
  188. height: 100%;
  189. // solution to access views container
  190. .views-element-container{
  191. height: 100%;
  192. &>div:first-child{
  193. height: 100%;
  194. &>div:first-child{
  195. height: 100%;
  196. // display: grid;
  197. // grid-template-columns: repeat(4, 1fr);
  198. display: flex;
  199. justify-content: end;
  200. align-items: center;
  201. &>div:first-child{
  202. grid-column-start: 2;
  203. }
  204. @include breakpoint(small down) {
  205. grid-template-columns: repeat(3, 1fr);
  206. &>div:first-child{
  207. grid-column-start: 1;
  208. }
  209. }
  210. }
  211. }
  212. }
  213. .views-row{
  214. // text-align: center;
  215. display: inline-block;
  216. width: auto;
  217. // a, span{
  218. // }
  219. .views-field-title>span{
  220. display: inline-block;
  221. width: auto;
  222. padding: .2rem .5rem;
  223. text-transform: uppercase;
  224. text-decoration: none;
  225. font-weight: 600;
  226. a{
  227. text-decoration: none;
  228. }
  229. @include breakpoint(1222px down) {
  230. font-size: $font-small;
  231. }
  232. }
  233. }
  234. }
  235. .close-block, .open-block{
  236. // background: red;
  237. cursor:pointer;
  238. span{
  239. display: block;
  240. width: 33px;
  241. height: 2px;
  242. position: relative;
  243. background: black;
  244. border-radius: 3px;
  245. z-index: 1;
  246. }
  247. }
  248. .close-block{
  249. padding-top: 1.2rem;
  250. padding-left: 2rem;
  251. span{
  252. transform-origin: center;
  253. }
  254. &>div>span:first-child{
  255. transform: translateY(57%)rotate(45deg);
  256. }
  257. &>div>span:nth-child(2){
  258. transform: rotate(-45deg);
  259. }
  260. @include breakpoint(small down) {
  261. position: absolute;
  262. top: 1rem;
  263. right: 1rem;
  264. }
  265. }
  266. .open-block{
  267. height: 100%;
  268. display: grid;
  269. align-items: center;
  270. span{
  271. margin-bottom: 5px;
  272. transform-origin: 4px 0px;
  273. }
  274. }
  275. #header-top-right{
  276. .header_top_right_container{
  277. position: absolute;
  278. top: 0;
  279. left: 0;
  280. width: 100%;
  281. background: white;
  282. display: none;
  283. grid-template-columns: 10% 25% 25% 30% 10%;
  284. padding: 1rem 0;
  285. z-index: 140;
  286. line-height: 2;
  287. @include breakpoint(small down) {
  288. grid-template-columns: 1fr;
  289. align-content: center;
  290. text-align: center;
  291. height: 100vh;
  292. font-size: $font-medium;
  293. }
  294. nav{
  295. grid-column-start: 2;
  296. @include breakpoint(small down) {
  297. grid-column-start: 1;
  298. }
  299. }
  300. // padding: 1rem .5rem 1rem .5rem;
  301. a{
  302. text-decoration: none;
  303. font-weight: 400;
  304. &:hover{
  305. text-decoration: underline;
  306. }
  307. }
  308. h2{
  309. font-weight: 100;
  310. margin-bottom: .3rem;
  311. }
  312. .views-field-title{
  313. color: black !important;
  314. &:hover{
  315. background: transparent;
  316. }
  317. }
  318. .is-active{
  319. font-weight: 800;
  320. }
  321. #block-views-block-programmes-block-2{
  322. .views-row{
  323. width: 100%;
  324. }
  325. }
  326. }
  327. }
  328. footer[role="contentinfo"]{
  329. background: white;
  330. // margin-top: 3rem;
  331. }
  332. #footer-bottom{
  333. padding: 2rem 0;
  334. height: 10rem;
  335. .more{
  336. display: none;
  337. }
  338. *{
  339. word-wrap: break-word;
  340. }
  341. h2{
  342. font-weight: 500;
  343. }
  344. .footer_bottom_left_container{
  345. height: 100%;
  346. div{
  347. height: 100%;
  348. }
  349. p{
  350. height: 100%;
  351. display: grid;
  352. }
  353. }
  354. .logo-gouv{
  355. height: 100%;
  356. margin-bottom: 1rem;
  357. display: block;
  358. color: transparent;
  359. font-size: 0;
  360. background: left / contain no-repeat url(../../images/gouv.svg);
  361. }
  362. .logo-puca{
  363. display: none;
  364. height: 100%;
  365. color: transparent;
  366. font-size: 0;
  367. background: left / contain no-repeat url(../../images/puca.svg);
  368. margin-top: .5rem;
  369. }
  370. #block-pieddepage{
  371. ul{
  372. line-height: 2;
  373. li{
  374. a{
  375. text-transform: uppercase;
  376. text-decoration: none;
  377. font-weight: 400;
  378. &:hover{
  379. text-decoration: underline;
  380. }
  381. }
  382. }
  383. }
  384. }
  385. .footer_bottom_right_container{
  386. &>div>div{
  387. // display: grid;
  388. // grid-template-columns: repeat(3,1fr);
  389. p{
  390. display: inline-block;
  391. a{
  392. min-width: 2rem;
  393. min-height: 2rem;
  394. margin-right: 0.5rem;
  395. }
  396. a[href*='twitter']{
  397. height: 100%;
  398. display: block;
  399. font-size: 0;
  400. color: transparent;
  401. background: left / contain no-repeat url(../../images/logo_x.svg);
  402. }
  403. a[href*='linkedin']{
  404. height: 100%;
  405. display: block;
  406. font-size: 0;
  407. color: transparent;
  408. background: left / contain no-repeat url(../../images/linkedin.svg);
  409. }
  410. a[href*='youtube']{
  411. height: 100%;
  412. display: block;
  413. font-size: 0;
  414. color: transparent;
  415. background: left / contain no-repeat url(../../images/youtube.svg);
  416. }
  417. }
  418. }
  419. @include breakpoint(small down) {
  420. text-align:center;
  421. margin-top: 1rem;
  422. }
  423. }
  424. }