style.scss 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020
  1. // GENERAL STYLES
  2. .picto {
  3. display: block;
  4. cursor: pointer;
  5. background-color: $mainColor;
  6. }
  7. .picto-url {
  8. display: inline-block;
  9. width: $pictoInlineWidth;
  10. height: $pictoInlineHeight;
  11. }
  12. h1, h2 {
  13. font-family: $titleFont;
  14. font-size: $titleFontSizeMobile;
  15. line-height: $titleLineHeight;
  16. }
  17. p, ul, figcaption {
  18. font-family: $mainFont;
  19. font-size: $currentSize;
  20. line-height: $currentLineHeight;
  21. }
  22. strong {
  23. font-weight: bold;
  24. font-family: $titleFont;
  25. }
  26. em {
  27. font-style: italic;
  28. }
  29. // CASCADE
  30. body {
  31. overflow-x: hidden;
  32. color: $mainColor;
  33. background-color: $bgColor;
  34. header {
  35. position: fixed;
  36. top: 0;
  37. z-index: 1;
  38. width: 100%;
  39. box-sizing: border-box;
  40. #nav-container {
  41. height: $navHeight;
  42. background-color: $bgColor;
  43. padding: 0 $bodyMarginMobile;
  44. display: flex;
  45. justify-content: space-between;
  46. align-items: center;
  47. h1 {
  48. cursor: pointer;
  49. }
  50. #burger {
  51. width: $pictoSmallWidth;
  52. height: $pictoSmallHeight;
  53. }
  54. }
  55. nav {
  56. position: absolute;
  57. background-color: $mainColor;
  58. top: -100vh;
  59. width: 100%;
  60. height: calc(100vh - #{$footerHeightMobile});
  61. display: flex;
  62. align-items: center;
  63. opacity: 0;
  64. @include transition-ease-out(opacity, top 0.7s);
  65. #crossMenu {
  66. position: absolute;
  67. top: 2vh;
  68. right: $bodyMarginMobile;
  69. background-color: $bgColor;
  70. width: $pictoSmallWidth;
  71. height: $pictoSmallHeight;
  72. }
  73. ul {
  74. display: flex;
  75. flex-direction: column;
  76. justify-content: space-between;
  77. width: 100%;
  78. li {
  79. text-align: center;
  80. color: $bgColor;
  81. a {
  82. display: block;
  83. margin: 4vh 0;
  84. padding: 2.5vh 0;
  85. width: 100%;
  86. font-family: $titleFont;
  87. font-size: $bigFontSizeMobile;
  88. }
  89. }
  90. li.selected a {
  91. color: $mainColor;
  92. background-color: $bgColor;
  93. }
  94. }
  95. }
  96. nav.mobile-nav-open {
  97. top: 0;
  98. opacity: 1;
  99. }
  100. }
  101. header:after {
  102. content: "";
  103. display: block;
  104. width: 100%;
  105. height: $navGradientHeightMobile;
  106. background: $bgGradientToBottom
  107. }
  108. main {
  109. position: relative;
  110. width: 100%;
  111. box-sizing: border-box;
  112. margin-top: calc(#{$navHeight} + #{$navGradientHeightMobile});
  113. z-index: 0;
  114. .content {
  115. position: absolute;
  116. padding: 0 $bodyMarginMobile;
  117. h2, p, ul{
  118. margin-bottom: $sectionSpacing;
  119. a {
  120. text-decoration: underline;
  121. text-underline-offset: 0.1em;
  122. @include transition-ease-out(text-underline-offset);
  123. }
  124. a:hover {
  125. text-underline-offset: 0.15em;
  126. }
  127. }
  128. .projet-card {
  129. cursor: pointer;
  130. position: relative;
  131. display: flex;
  132. flex-direction: column;
  133. align-items: center;
  134. justify-content: center;
  135. margin-bottom: $sectionSpacing;
  136. img, video {
  137. border-radius: 10px;
  138. width: 100%;
  139. }
  140. .loader {
  141. min-height: 200px;
  142. width: 20px;
  143. opacity: $transparency;
  144. }
  145. a {
  146. width: 100%;
  147. figcaption {
  148. color: $mainColor;
  149. background-color: transparent;
  150. padding: 0;
  151. margin-top: 5px;
  152. position: relative;
  153. font-size: $smallSize;
  154. @include transition-ease-out(opacity);
  155. .publique-title {
  156. @include publique-font;
  157. }
  158. .sociale-title {
  159. @include sociale-font;
  160. }
  161. .culturelle-title {
  162. @include culturelle-font;
  163. }
  164. }
  165. }
  166. }
  167. .card-displayed {
  168. display: block;
  169. }
  170. .card-hidden {
  171. display: none;
  172. }
  173. }
  174. #index-content {
  175. display: flex;
  176. flex-direction: column;
  177. align-items: center;
  178. #loader-index {
  179. position: absolute;
  180. height: 80vh;
  181. width: 100vw;
  182. background-color: $bgColor;
  183. z-index: 1;
  184. display: flex;
  185. justify-content: center;
  186. align-items: center;
  187. }
  188. #main-p-index {
  189. p {
  190. font-size: $bigFontSizeMobile;
  191. }
  192. #figureslibres {
  193. @include figures-libres-font;
  194. canvas {
  195. transform: translateX(calc(-100% + 10px)) translateY(-2px);
  196. }
  197. }
  198. #publique {
  199. @include publique-font;
  200. }
  201. #sociale {
  202. @include sociale-font;
  203. canvas {
  204. transform: translateX(calc(-100% + 15px)) translateY(0px);
  205. }
  206. }
  207. #culturelle {
  208. @include culturelle-font;
  209. canvas {
  210. transform: translateX(calc(-100% + 15px)) translateY(2px);
  211. }
  212. }
  213. #logicielslibres {
  214. @include logiciels-libres-font;
  215. }
  216. }
  217. #extrait-projets {
  218. >div {
  219. max-height: 0vh;
  220. display: grid;
  221. grid-template-columns: 1fr 1fr;
  222. gap: 0px 20px;
  223. align-items: flex-start;
  224. div {
  225. figure {
  226. align-items: flex-start;
  227. }
  228. }
  229. div:last-of-type {
  230. width: auto;
  231. margin-top: 1vh;
  232. text-align: center;
  233. font-size: $currentSize;
  234. grid-column-end: span 2;
  235. p{
  236. cursor: pointer;
  237. margin-bottom: 5px;
  238. width: auto;
  239. display: flex;
  240. align-items: center;
  241. justify-content: center;
  242. span {
  243. border-bottom: solid 1px $mainColor;
  244. padding-bottom: 1px;
  245. #publique-link {
  246. @include publique-font;
  247. }
  248. #sociale-link {
  249. @include sociale-font;
  250. }
  251. #culturelle-link {
  252. @include culturelle-font;
  253. }
  254. }
  255. .picto {
  256. display: inline-block;
  257. height: $pictoInlineHeight;
  258. width: $pictoSmallWidth;
  259. margin-left: 8px;
  260. @include transition-ease-out(margin-left);
  261. }
  262. }
  263. p:first-of-type:hover + p .picto, p:last-of-type:hover .picto {
  264. margin-left: 13px;
  265. }
  266. }
  267. }
  268. }
  269. #second-p-index {
  270. p {
  271. font-size: $bigFontSizeMobile;
  272. }
  273. #commanditaires {
  274. @include commanditaires-font;
  275. canvas {
  276. transform: translateX(calc(-100% + 10px)) translateY(0px);
  277. }
  278. }
  279. #projets {
  280. @include projets-font;
  281. }
  282. }
  283. #commanditaires-grid {
  284. width: 85vw;
  285. display: grid;
  286. grid-template-columns: 1fr 1fr;
  287. gap: 25px 40px;
  288. align-items: center;
  289. img {
  290. filter: grayscale(100%);
  291. opacity: 0.7;
  292. width: 100%;
  293. }
  294. }
  295. #arrow-container {
  296. margin-top: $sectionSpacing;
  297. @include transition-ease-out(transform 0.8s);
  298. .picto {
  299. width: $pictoLargeWidth;
  300. height: $pictoLargeHeight;
  301. }
  302. #arrowIndex {
  303. animation: arrowIndex 4s infinite ease-out;
  304. }
  305. }
  306. .container {
  307. overflow-y: hidden;
  308. height: auto;
  309. max-height: 0vh;
  310. margin-top: 0px;
  311. opacity: 0;
  312. @include transition-ease-out(opacity, 0.7s, max-height 1.2s, margin-top 1s);
  313. }
  314. a {
  315. text-decoration: none;
  316. }
  317. canvas {
  318. position: absolute;
  319. transform: translateX(calc(-100% + 15px)) translateY(-2px);
  320. @include transition-ease-out(width, height);
  321. }
  322. }
  323. #projets-index {
  324. width: 100%;
  325. #filter-index {
  326. text-align: center;
  327. width: 100%;
  328. margin-bottom: $sectionSpacing;
  329. .filter-button {
  330. cursor: pointer;
  331. opacity: $transparency;
  332. @include transition-ease-out(opacity);
  333. }
  334. p {
  335. margin-bottom: 0;
  336. }
  337. #publique-filter {
  338. @include publique-font;
  339. }
  340. #sociale-filter {
  341. @include sociale-font;
  342. }
  343. #culturelle-filter {
  344. @include culturelle-font;
  345. }
  346. }
  347. hr {
  348. width: 66%;
  349. margin-bottom: 4vh;
  350. opacity: $transparency;
  351. }
  352. .projets-grid {
  353. width: calc(100vw - $bodyMarginMobile * 2);
  354. display: flex;
  355. flex-direction: column;
  356. align-items: center;
  357. >div {
  358. width: 80%;
  359. }
  360. }
  361. .title-category {
  362. cursor: pointer;
  363. display: flex;
  364. align-items: center;
  365. margin-bottom: $sectionSpacing;
  366. h2 {
  367. margin: 0;
  368. max-width: 60%;
  369. }
  370. .chevron-category {
  371. display: inline-block;
  372. width: $pictoSmallWidth;
  373. height: $pictoSmallHeight;
  374. max-height: 10px;
  375. margin-left: 6px;
  376. @include transition-ease-out(transform);
  377. }
  378. .close {
  379. transform: rotate(180deg);
  380. }
  381. }
  382. }
  383. #text-content {
  384. display: flex;
  385. flex-direction: column-reverse;
  386. img {
  387. width: 100%;
  388. }
  389. }
  390. #reader {
  391. display: flex;
  392. flex-direction: column;
  393. align-items: center;
  394. figure {
  395. width: 100%;
  396. min-height: 200px;
  397. display: flex;
  398. justify-content: center;
  399. }
  400. img, video {
  401. cursor: pointer;
  402. max-width: 100%;
  403. }
  404. .loader {
  405. max-width: 20px;
  406. }
  407. #header-project {
  408. z-index: 1;
  409. display: block;
  410. position: fixed;
  411. height: 6vh;
  412. width: 100%;
  413. background-color: $bgColor;
  414. top: -9vh;
  415. @include transition-ease-out(top);
  416. .info-project-publique {
  417. span {
  418. @include publique-font;
  419. }
  420. }
  421. .info-project-sociale {
  422. span {
  423. @include sociale-font;
  424. }
  425. }
  426. .info-project-culturelle {
  427. span {
  428. @include culturelle-font;
  429. }
  430. }
  431. h2 {
  432. overflow: hidden;
  433. position: absolute;
  434. width: 80%;
  435. padding: 3px 0;
  436. margin-top: 1.8vh;
  437. margin-left: $bodyMarginMobile;
  438. font-size: $currentSize;
  439. span {
  440. transform: translate(0, 0);
  441. display: inline-block;
  442. white-space: nowrap;
  443. }
  444. .scrollText:after {
  445. content: attr(data-text);
  446. padding-left: 20px;
  447. white-space: nowrap;
  448. }
  449. }
  450. #gradient-long-title {
  451. position: absolute;
  452. height: 4vh;
  453. width: 40px;
  454. top: 1.5vh;
  455. right: 16.5%;
  456. background: $bgGradientToLeft;
  457. }
  458. }
  459. #header-project:after {
  460. position: absolute;
  461. top: 6vh;
  462. content: '';
  463. height: 4vh;
  464. width: 100%;
  465. background: linear-gradient($bgColor, rgba($bgColor, 0));
  466. }
  467. #header-project + a {
  468. z-index: 2;
  469. }
  470. #close-project {
  471. position: fixed;
  472. right: $bodyMarginMobile;
  473. top: 2.3vh;
  474. width: calc(#{$pictoSmallWidth} - 5px);
  475. height: calc(#{$pictoSmallHeight} - 5px);
  476. }
  477. #cover-image-mobile {
  478. margin-top: -2vh;
  479. margin-bottom: 2vh;
  480. }
  481. #cover-image {
  482. display: none;
  483. }
  484. #info-project {
  485. align-self: flex-start;
  486. h2 {
  487. margin-top: 2vh;
  488. margin-bottom: 0;
  489. font-size: 1.6em;
  490. line-height: $titleLineHeight;
  491. }
  492. >div {
  493. margin-top: 0.3em;
  494. margin-bottom: 2.5vh;
  495. font-weight: normal;
  496. line-height: $currentLineHeight;
  497. }
  498. }
  499. .info-project-publique {
  500. h2, >div {
  501. @include publique-font;
  502. }
  503. }
  504. .info-project-sociale {
  505. h2, >div {
  506. @include sociale-font;
  507. }
  508. }
  509. .info-project-culturelle {
  510. h2, >div {
  511. @include culturelle-font;
  512. }
  513. }
  514. #project-description {
  515. margin-top: 2.2vh;
  516. }
  517. #project-images-grid {
  518. figure {
  519. margin-top: 3vh;
  520. }
  521. }
  522. hr {
  523. margin-bottom: 2vh;
  524. width: 66%;
  525. opacity: 0.5;
  526. color: $mainColor;
  527. background-color: $mainColor;
  528. }
  529. #related-pages {
  530. margin-top: 5vh;
  531. width: 100%;
  532. display: flex;
  533. flex-direction: column;
  534. align-items: center;
  535. h3 {
  536. text-align: center;
  537. font-size: $titleFontSizeMobile;
  538. font-family: $titleFont;
  539. margin-bottom: 2vh;
  540. margin-top: 2vh;
  541. }
  542. #related-grid {
  543. margin-bottom: 5vh;
  544. width: 80%;
  545. .card-displayed {
  546. margin-top: 1.5vh;
  547. }
  548. }
  549. }
  550. #carousel-container {
  551. display: none;
  552. }
  553. // #carrousel {
  554. // display: none;
  555. // #bg-carrousel {
  556. // position: fixed;
  557. // top: 0;
  558. // left: 0;
  559. // width: 100vw;
  560. // height: 100vh;
  561. // background-color: rgba(0, 0, 0, $transparency);
  562. // z-index: 3;
  563. // backdrop-filter: blur(2px);
  564. // cursor: pointer;
  565. // }
  566. // #slider {
  567. // position: fixed;
  568. // top: 25vh;
  569. // left: 0;
  570. // width: 100%;
  571. // height: 50vh;
  572. // background-color: $bgColor;
  573. // z-index: 4;
  574. // display: flex;
  575. // flex-direction: row;
  576. // justify-content: space-between;
  577. // div {
  578. // width: 15vw;
  579. // height: 100%;
  580. // display: flex;
  581. // justify-content: center;
  582. // align-items: center;
  583. // .picto {
  584. // width: $pictoSmallWidth;
  585. // height: $pictoSmallHeight;
  586. // cursor: pointer;
  587. // }
  588. // .disabled {
  589. // opacity: 0.5;
  590. // cursor: initial;
  591. // }
  592. // }
  593. // figure {
  594. // width: 100%;
  595. // img {
  596. // padding: 2vh 0 2vh 0;
  597. // object-fit: contain;
  598. // }
  599. // }
  600. // }
  601. // }
  602. }
  603. }
  604. footer {
  605. display: none;
  606. position: fixed;
  607. height: $footerHeightMobile;
  608. bottom: 0;
  609. align-items: center;
  610. justify-content: center;
  611. z-index: 1;
  612. width: 100vw;
  613. p {
  614. width: 100%;
  615. height: 100%;
  616. text-align: center;
  617. color: $bgColor;
  618. a {
  619. display: block;
  620. background: $mainColor;
  621. height: 100%;
  622. width: 100%;
  623. font-family: $titleFont;
  624. padding: $smallSize 0;
  625. color: $bgColor;
  626. }
  627. }
  628. }
  629. }
  630. @media only screen and (min-width: $minScreenWidthS) {
  631. body {
  632. header {
  633. nav {
  634. height: 100vh;
  635. }
  636. }
  637. .content {
  638. .card-displayed figure a figcaption {
  639. opacity: 0;
  640. position: absolute;
  641. bottom: 0;
  642. left: 0;
  643. width: 100%;
  644. box-sizing: border-box;
  645. padding: 10px;
  646. background: $mainColor;
  647. color: $bgColor;
  648. font-size: $tinySize;
  649. border-radius: 0 0 10px 10px;
  650. }
  651. }
  652. .card-displayed:hover figure a figcaption {
  653. opacity: 1;
  654. }
  655. main {
  656. #index-content {
  657. min-height: 80vh;
  658. display: flex;
  659. flex-direction: column;
  660. justify-content: center;
  661. #extrait-projets {
  662. >div {
  663. grid-template-columns: 1fr 1fr 1fr 1fr;
  664. div:last-of-type {
  665. overflow-x: hidden;
  666. text-align: right;
  667. grid-column-end: span 4;
  668. p {
  669. display: inline-block;
  670. .picto {
  671. margin-right: -6px;
  672. }
  673. }
  674. p:last-of-type span:first-of-type {
  675. margin-left: -5px;
  676. padding-left: 5px;
  677. }
  678. }
  679. }
  680. }
  681. #commanditaires-grid {
  682. width: auto;
  683. grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  684. }
  685. }
  686. #projets-index {
  687. width: auto;
  688. #filter-index {
  689. display: flex;
  690. flex-direction: row;
  691. max-width: 100%;
  692. p:last-of-type {
  693. margin-left: 8px;
  694. }
  695. }
  696. hr {
  697. margin-left: 0;
  698. width: 75%;
  699. }
  700. .projets-grid {
  701. width: 100%;
  702. display: grid;
  703. grid-template-columns: 1fr 1fr 1fr 1fr;
  704. gap: 0 10px;
  705. >div {
  706. width: 100%;
  707. }
  708. }
  709. }
  710. #reader {
  711. #header-project {
  712. h2 {
  713. margin-top: 1vh;
  714. }
  715. }
  716. #close-project {
  717. width: $pictoInlineWidth;
  718. height: $pictoInlineHeight;
  719. top: 2.5vh;
  720. }
  721. #cover-image-mobile {
  722. display: none !important;
  723. }
  724. #cover-image {
  725. display: flex !important;
  726. margin-bottom: 5vh;
  727. }
  728. h2#main-project-title {
  729. font-size: $bigFontSizeDesktop;
  730. }
  731. #info-project {
  732. margin-top: -6vh;
  733. div {
  734. margin-top: 0;
  735. margin-bottom: 8vh;
  736. }
  737. }
  738. #project-description {
  739. font-size: $smallSize;
  740. margin-bottom: 5vh;
  741. }
  742. #project-images-grid {
  743. width: auto;
  744. display: grid;
  745. grid-template-columns: 1fr 1fr;
  746. grid-gap: 2% 4%;
  747. figure {
  748. margin-top: 0;
  749. width: 100%;
  750. min-width: 40vw;
  751. img:not(.loader) {
  752. width: 100%;
  753. height: 100%;
  754. object-fit: cover;
  755. }
  756. }
  757. figure:last-child:nth-child(odd) {
  758. grid-column: span 2;
  759. }
  760. }
  761. #related-grid {
  762. display: grid;
  763. grid-template-columns: 1fr 1fr 1fr;
  764. width: auto !important;
  765. grid-column-gap: 10%;
  766. margin-bottom: 6vh !important;
  767. .card-displayed {
  768. margin-top: 2vh !important;
  769. figure {
  770. min-height: 80px !important;
  771. min-width: 15vw;
  772. }
  773. }
  774. }
  775. }
  776. }
  777. footer {
  778. display: flex;
  779. align-items: center;
  780. justify-content: center;
  781. width: auto;
  782. padding: 0 15px;
  783. height: $footerHeightDesktop;
  784. right: $bodyMarginMobile;
  785. border-radius: 20px 20px 0 0;
  786. background-color: $mainColor;
  787. p {
  788. height: auto;
  789. font-size: $smallSize;
  790. a {
  791. padding: 0;
  792. background-color: transparent;
  793. }
  794. }
  795. }
  796. }
  797. }
  798. @media only screen and (min-width: $minScreenWidthM) {
  799. body {
  800. header {
  801. #nav-container {
  802. display: none;
  803. }
  804. nav {
  805. position: relative;
  806. top: 0;
  807. opacity: 1;
  808. height: $navHeight;
  809. background-color: $bgColor;
  810. justify-content: center;
  811. #crossMenu {
  812. display: none;
  813. }
  814. ul {
  815. width: calc(#{$bodyWidth} - 12px);
  816. max-width: $maxBodyWidth;
  817. flex-direction: row;
  818. li {
  819. width: auto;
  820. color: $mainColor;
  821. height: $smallSize;
  822. z-index: 0;
  823. a {
  824. display: inline;
  825. font-size: $smallSize;
  826. width: auto;
  827. margin: 0;
  828. padding: 0;
  829. @include transition-ease-out(color);
  830. }
  831. }
  832. li:hover a {
  833. color: $bgColor;
  834. }
  835. li.selected {
  836. a {
  837. color: $bgColor;
  838. background-color: transparent;
  839. }
  840. }
  841. li:after {
  842. content: "";
  843. display: block;
  844. position: relative;
  845. opacity: 0;
  846. height: 100%;
  847. width: 100%;
  848. $paddingX: 12px;
  849. $paddingY: 4px;
  850. padding: $paddingY $paddingX;
  851. transform: translateX(-#{$paddingX}) translateY(calc(-100% - 2px + #{$paddingY}));
  852. background-color: $mainColor;
  853. border-radius: 15px;
  854. z-index: -1;
  855. @include transition-ease-out(opacity);
  856. }
  857. .selected:after, li:hover:after {
  858. opacity: 1;
  859. }
  860. }
  861. }
  862. }
  863. header:after {
  864. height: $navGradientHeightDesktop;
  865. }
  866. main {
  867. display: flex;
  868. justify-content: center;
  869. margin-top: calc(#{$navHeight} + #{$navGradientHeightDesktop} + #{$sectionSpacing});
  870. .content {
  871. width: $bodyWidth;
  872. padding: 0;
  873. }
  874. #index-content {
  875. #commanditaires-grid {
  876. grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  877. }
  878. }
  879. #projets-index {
  880. width: $bodyWidth;
  881. #filter-index {
  882. .filter-button:hover {
  883. opacity: 1 !important;
  884. }
  885. }
  886. }
  887. #text-content {
  888. .text-item {
  889. width: 70%;
  890. }
  891. .text-item:first-of-type {
  892. position: fixed;
  893. top: calc(#{$navHeight} + #{$navGradientHeightDesktop} + #{$sectionSpacing});
  894. width: 20%;
  895. left: 70%;
  896. img {
  897. width: 70%;
  898. margin-bottom: 5vh;
  899. }
  900. }
  901. }
  902. #reader {
  903. margin-top: -10vh;
  904. width: 40vw;
  905. #header-project {
  906. width: 100%;
  907. h2 {
  908. width: 35vw;
  909. margin-left: 29.5vw;
  910. padding: 0;
  911. span {
  912. height: $currentLineHeight;
  913. padding-top: 5px;
  914. }
  915. }
  916. #gradient-long-title {
  917. right: 34.2vw;
  918. }
  919. }
  920. #info-project {
  921. width: 100%;
  922. margin-top: 2vh;
  923. margin-bottom: 4vh;
  924. h2 {
  925. min-width: 100%;
  926. border-right: solid 1px rgba(0, 0, 0, $transparency);
  927. margin-top: 0;
  928. margin-bottom: 1vh;
  929. }
  930. div {
  931. margin-bottom: 2vh;
  932. }
  933. }
  934. .info-project-culturelle {
  935. h2 {
  936. line-height: $currentLineHeight !important;
  937. }
  938. }
  939. #close-project {
  940. width: $pictoSmallWidth;
  941. height: $pictoSmallHeight;
  942. top: 6vh;
  943. right: calc(30vw - #{$pictoSmallWidth} - 2vw);
  944. transform: scale(1, 1);
  945. @include transition-ease-out(top, right, transform);
  946. }
  947. .scrolled-cross {
  948. top: 1.4vh !important;
  949. right: 30vw !important;
  950. transform: scale(0.7, 0.7) !important;
  951. }
  952. #project-description {
  953. align-self: flex-start;
  954. }
  955. #project-images-grid {
  956. width: auto;
  957. margin-bottom: 6vh;
  958. figure {
  959. min-width: 15vw;
  960. }
  961. }
  962. #related-pages {
  963. hr {
  964. margin-bottom: 4vh;
  965. }
  966. h3 {
  967. margin-top: 0;
  968. }
  969. #related-grid {
  970. grid-column-gap: 3%;
  971. div figure {
  972. min-width: 10vw;
  973. }
  974. }
  975. }
  976. }
  977. }
  978. footer {
  979. height: $footerHeightDesktop;
  980. width: auto;
  981. right: 12%;
  982. p {
  983. width: inherit;
  984. a {
  985. font-size: $currentSize;
  986. }
  987. }
  988. }
  989. }
  990. }
  991. @media only screen and (min-width: $minScreenWidthL) {
  992. body {
  993. main {
  994. #index-content {
  995. #main-p-index {
  996. p {
  997. font-size: $bigFontSizeDesktop;
  998. }
  999. }
  1000. #arrow-container {
  1001. margin-top: $marginTopShortContent;
  1002. .picto {
  1003. width: $pictoExtraLargeWidth;
  1004. height: $pictoExtraLargeHeight;
  1005. }
  1006. }
  1007. }
  1008. #projets-index {
  1009. .projets-grid {
  1010. grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  1011. }
  1012. }
  1013. }
  1014. }
  1015. }