style.scss 25 KB

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