app.scss 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid-flex';
  5. @import './base/transitions';
  6. @import './base/layout';
  7. @import './base/fonts';
  8. /* The emerging W3C standard
  9. that is currently Firefox-only */
  10. * {
  11. scrollbar-width: thin;
  12. scrollbar-color: $grisclair rgba(255,255,255,0);
  13. }
  14. /* Works on Chrome/Edge/Safari */
  15. *::-webkit-scrollbar {
  16. width: 12px;
  17. }
  18. *::-webkit-scrollbar-track {
  19. background: rgba(255,255,255,0);
  20. }
  21. *::-webkit-scrollbar-thumb {
  22. background-color: $grisclair;
  23. border-radius: 20px;
  24. border: none;
  25. }
  26. body{
  27. color: #1a1a1a;
  28. // background-image: url('/static/img/grille-ligne-de-base.png');
  29. // background-repeat: repeat;
  30. }
  31. #root{
  32. }
  33. .red{
  34. background-color: red;
  35. color:white;
  36. }
  37. header[role="banner"]{
  38. div.wrapper{
  39. display: grid;
  40. grid-template-columns: 1fr 1fr;
  41. }
  42. h1.site-title{
  43. grid-column: 1;
  44. margin:0;
  45. font-size: 1em;
  46. }
  47. nav#header-menu{
  48. grid-column: 2;
  49. text-align: right;
  50. >ul>li{
  51. display: inline-block;
  52. margin-right: 1em;
  53. position: relative;
  54. >ul{
  55. position: absolute;
  56. top:1em; right:-1em;
  57. overflow: hidden;
  58. padding-bottom: 0.5em;
  59. background-color: white;
  60. >li{
  61. padding:0 1em;
  62. // margin-right: -1em;
  63. transition: height 0.3s ease-in-out;
  64. height:0;
  65. overflow: hidden;
  66. }
  67. }
  68. //
  69. // &:focus-within
  70. // &:hover,
  71. &.opened{
  72. >ul>li{
  73. height:1em;
  74. }
  75. }
  76. &.has-submenu{
  77. cursor: pointer;
  78. }
  79. }
  80. li>span,li>a{
  81. font-size: 0.9em;
  82. color: $bleuroi;
  83. text-transform: uppercase;
  84. }
  85. }
  86. }
  87. section[role="main-content"]{
  88. #home{
  89. header{
  90. text-align: center;
  91. h1{
  92. color: $bleuroi;
  93. font-size: 8em;
  94. font-weight: 300;
  95. margin:15vh 0 0;
  96. }
  97. h2{
  98. color: $or;
  99. font-size: 2em;
  100. font-weight: 300;
  101. margin:1em 0 0;
  102. text-transform: uppercase;
  103. letter-spacing: 0.2em;
  104. sup{
  105. // line-height: 5em;
  106. vertical-align:text-top;
  107. font-size: 0.7em
  108. }
  109. }
  110. }
  111. // $filet_space:8em;
  112. // $decallage: 0.5em;
  113. section{
  114. padding-top: 8em;
  115. }
  116. @mixin teasersfilet($filet_space, $decallage){
  117. &:before, &:after{
  118. z-index: 0;
  119. content: "";
  120. position: absolute;
  121. opacity: 0.4;
  122. }
  123. &:before{
  124. border:1px solid $or;
  125. width:calc(100% + #{$filet_space*2 + $decallage*2});
  126. left:- $filet_space - $default_gap/2 -$decallage;
  127. height:calc(100% + #{$filet_space});
  128. top:- $filet_space / 2;
  129. }
  130. &:after{
  131. border:1px solid $rouge;
  132. width:calc(100% + #{$filet_space*2});
  133. left:- $filet_space - $default_gap/2;
  134. height:calc(100% + #{$filet_space + $decallage*2});
  135. top:- $filet_space / 2 - $decallage;
  136. }
  137. }
  138. div.teasers{
  139. display: flex;
  140. flex-direction: row;
  141. flex-wrap: nowrap;
  142. position: relative;
  143. padding-right: 0;
  144. article{
  145. box-sizing: border-box;
  146. flex-basis: percentage(2 / ( $default_sum - 6) );
  147. padding-right: $default_gap;
  148. @include fontsans;
  149. h1{
  150. color: $bleuroi;
  151. }
  152. p{
  153. font-size: 0.882em;
  154. line-height: 1.2;
  155. }
  156. span{
  157. color:$rouge;
  158. font-size:0.693em;
  159. }
  160. }
  161. // filets decoratif
  162. @include teasersfilet(8em, 0.5em);
  163. }
  164. // responsive
  165. @media only screen and (max-width: $small-bp) {
  166. header{
  167. h1{
  168. font-size: 5em;
  169. margin:7vh 0 0;
  170. }
  171. h2{
  172. font-size: 1em;
  173. }
  174. }
  175. section{
  176. padding-top: 4em;
  177. }
  178. div.teasers{
  179. flex-direction: column;
  180. // filets decoratif
  181. @include teasersfilet(4em, 0.5em);
  182. }
  183. }
  184. }
  185. #list-corpus, .index{
  186. >header>h1{
  187. font-family: "noto_sans";
  188. color: $rouge;
  189. font-weight: 400;
  190. }
  191. article.item{
  192. margin: 2em 0 0;
  193. header h1{
  194. font-size: 1.512em;
  195. color: $bleuroi;
  196. font-weight: 400;
  197. margin:0;
  198. }
  199. }
  200. ul.item-list{
  201. li{
  202. margin: 0 0 2em 0;
  203. header{
  204. h2{
  205. @include title1blue;
  206. margin:0.4em 0 0.2em;
  207. }
  208. h3{
  209. margin:0.2em 0;
  210. @include fontsans;
  211. font-size: 0.756em;
  212. font-weight: 500;
  213. }
  214. margin-bottom: 0.3em;
  215. }
  216. h4{
  217. margin:0.1em 0;
  218. font-weight: 300;
  219. @include fontsans;
  220. font-size: 0.756em;
  221. &.texts-quantity{
  222. color: $rouge;
  223. margin: 0.3em 0 0;
  224. }
  225. }
  226. section.editions{
  227. div.editions{
  228. ol{
  229. padding:0;
  230. li{
  231. margin:0.7em 1em;
  232. }
  233. }
  234. }
  235. }
  236. section.texts{
  237. ul.texts-list{
  238. padding: 0 0 0 1em;
  239. li{
  240. margin: 0;
  241. }
  242. h3{
  243. @include title2black;
  244. margin: 0.7em 0 0.3em;
  245. }
  246. p{
  247. font-weight: 300;
  248. @include fontsans;
  249. font-size: 0.756em;
  250. margin: 0;
  251. }
  252. }
  253. }
  254. ul {
  255. li{
  256. margin:0 0 0 1em;
  257. h3{
  258. margin: 0.5em 0;
  259. font-weight: 400;
  260. font-size: 1em;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. }
  267. #corpus{
  268. }
  269. .index{
  270. }
  271. .index-item{
  272. header{
  273. h1{
  274. @include title1black;
  275. margin:0 0 0.3em;
  276. }
  277. p{
  278. margin: 0 0 0.5em 0;
  279. }
  280. h3{
  281. @include title2black
  282. margin:0;
  283. }
  284. .authors{
  285. a{
  286. @include title2black;
  287. color: $bleuroi;
  288. }
  289. margin:0 0 0.3em;
  290. }
  291. .mdi{
  292. color: $bleuroilight;
  293. font-size: 0.7em;
  294. }
  295. }
  296. .occurences{
  297. >ul{
  298. >li{
  299. padding:0 0 2em 0;
  300. h3{
  301. @include title2black;
  302. padding:0 0 0.5em 0;
  303. color: $bleuroi;
  304. }
  305. >ul{
  306. >li{
  307. padding:0 0 0.5em 0;
  308. section{
  309. h4{
  310. @include title3black;
  311. display: inline-block;
  312. }
  313. span.open-close{
  314. cursor: pointer;
  315. display: inline-block;
  316. svg{
  317. transform: rotate(-90deg) scale(0.8);
  318. transition: transform 0.3s ease-in-out;
  319. path{
  320. fill:$bleuroi;
  321. }
  322. }
  323. }
  324. div.text{
  325. max-height: 0;
  326. transition: max-height 0.3s ease-in-out;
  327. overflow: hidden;
  328. box-sizing: content-box;
  329. p, h1, h2, h3, h4, h5, h6{
  330. margin: 0.5em 0 0 0;
  331. }
  332. }
  333. a.lire-plus{
  334. color: $bleuroi;
  335. opacity: 0;
  336. display: inline-block;
  337. height: 0;
  338. overflow: hidden;
  339. transition: height, opacity 0.3s ease-in-out;
  340. }
  341. &.opened{
  342. span.open-close{
  343. cursor: pointer;
  344. display: inline-block;
  345. svg{
  346. transform: scale(0.8) rotate(0);
  347. }
  348. }
  349. div.text{
  350. max-height:100px;
  351. }
  352. a.lire-plus{
  353. opacity: 1;
  354. height:1em;
  355. }
  356. }
  357. }
  358. }
  359. }
  360. }
  361. }
  362. }
  363. nav{
  364. h3{
  365. @include title2black;
  366. margin:0 0 0.5em;
  367. }
  368. h4{
  369. @include title3black;
  370. margin:0 0 0.5em;
  371. color: $bleuroi;
  372. }
  373. .attested-forms{
  374. ul{
  375. >li{
  376. margin: 0 0 1em 0;
  377. li{
  378. margin: 0 0 0.5em 0;
  379. }
  380. }
  381. }
  382. a{
  383. @include title4grey;
  384. color: $grisfonce;
  385. font-weight: 400;
  386. }
  387. }
  388. }
  389. }
  390. #edition{
  391. >header{
  392. position: relative;
  393. h1{
  394. @include title1black;
  395. }
  396. aside.index-tooltip{
  397. z-index:10;
  398. margin-top: -1.75em;
  399. position:absolute;
  400. text-align: right;
  401. right: 2em;
  402. h1 {
  403. @include title2black;
  404. margin:0 0 0.5em 0;
  405. }
  406. p{
  407. margin:0 0 0.5em 0;
  408. }
  409. time{
  410. font-weight: 600;
  411. }
  412. @media only screen and (max-width: $small-bp) {
  413. background-color: #fff;
  414. padding: 1em;
  415. box-shadow: 0 0 10px $gris;
  416. *{
  417. pointer-events: none;
  418. }
  419. }
  420. }
  421. }
  422. $pagenum_w:1em;
  423. >section{
  424. padding-right: 0;
  425. >.wrapper{
  426. padding-right: $pagenum_w*2;
  427. // outline: orange solid thin;
  428. }
  429. div#text{
  430. // .infinite-loading-container{
  431. // height:0;
  432. // overflow: hidden;
  433. // }
  434. div.tei{
  435. position: relative;
  436. width: calc(100% - #{$pagenum_w});
  437. // DEBUG
  438. color:chartreuse;
  439. &>*{ color: #1A1A1A;}
  440. // @media only screen and (min-width: $small-bp + 1) {
  441. padding-right: $pagenum_w;
  442. border-left: 1px dotted $grisclair;
  443. padding-left: 1em;
  444. &.active{
  445. border-left: 1px dotted $bleuroi;
  446. }
  447. // }
  448. >h1{
  449. @include teititle1blue;
  450. }
  451. span.placeName,
  452. span.objectName,
  453. span.persName{
  454. font-weight: 600;
  455. }
  456. h1{ font-size: 1.512em;
  457. line-height: $base-line; }
  458. p{
  459. margin-top: 0;
  460. font-size: 1.134em;
  461. line-height: $base-line;
  462. margin-bottom: $base-line / 2;
  463. span.persName,
  464. span.placeName,
  465. span.objectName{
  466. font-weight: 600;
  467. }
  468. a{
  469. font-weight: 600;
  470. &.active-link{
  471. color: $rouge;
  472. // text-decoration: underline;
  473. line-height: $base-line/2;
  474. }
  475. sup.mdi{
  476. font-size: 0.630em;
  477. vertical-align: super;
  478. // line-height: 0.1;
  479. padding: 0 0.2em;
  480. }
  481. }
  482. }
  483. span[role="pageNum"]{
  484. font-size: 16px;
  485. position: relative;
  486. float:right;
  487. width: $pagenum_w; height:$base-line/4;
  488. border-bottom: 1px solid $bleuroilight;
  489. border-right: 1px solid $bleuroilight;
  490. // outline: solid red thin;
  491. // margin-left:calc(100% - #{$pagenum_w * 2});
  492. // margin-left: 100%;
  493. margin-right: - $pagenum_w * 0.7;
  494. &:before{
  495. // outline: solid green thin;
  496. content:attr(data-num);
  497. font-size: 0.630em;
  498. line-height: $base-line/3;
  499. position: absolute;
  500. right: - $pagenum_w * 1.7;
  501. color: $bleuroi;
  502. // top:0;
  503. // width: $pagenum_w*2; height: $pagenum_w;
  504. // border-top: 1px solid $bleuroilight;
  505. // border-right: 1px solid $bleuroilight;
  506. // text-indent: $pagenum_w * 2.5;
  507. }
  508. }
  509. a.text-item-link{
  510. // float: left;
  511. position: absolute;
  512. top:0; left:0;
  513. // display: block;
  514. // width:1em; height:1em;
  515. font-size: 0.630em;
  516. .mdi{
  517. color: $bleuroi;
  518. pointer-events: none;
  519. }
  520. }
  521. // front page
  522. header{
  523. padding-top: $base-line;
  524. h1{
  525. @include teititlefrontblue;
  526. .initial{
  527. display: inline-block;
  528. text-transform: uppercase;
  529. font-size: 1.3em;
  530. line-height: $base-line*2;
  531. margin: $base-line/2 0;
  532. }
  533. }
  534. }
  535. .byline{
  536. text-align: center;
  537. font-style: italic;
  538. padding-bottom: 1em;
  539. }
  540. .docImprint{
  541. text-align: center;
  542. // padding-bottom: 1em;
  543. }
  544. .imprimatur{
  545. text-align: center;
  546. font-style: italic;
  547. padding-bottom: 1em;
  548. }
  549. figure{
  550. // outline: 1px solid red;
  551. background-color: $grisclair;
  552. margin:1em 0;
  553. img{
  554. width: 100%;
  555. }
  556. figcaption{
  557. @include fontcaption
  558. padding: 0.5em;
  559. }
  560. }
  561. ul{
  562. line-height: $base-line;
  563. margin-bottom: $base-line/2;
  564. }
  565. blockquote{
  566. margin: $base-line/2 1em;
  567. line-height: $base-line;
  568. p{
  569. margin: 0;
  570. }
  571. }
  572. }
  573. }
  574. }
  575. >nav{
  576. $pager_h:2em;
  577. display: flex;
  578. flex-direction: column;
  579. span.nav-title{ display:none; }
  580. section#toc{
  581. box-sizing: content-box;
  582. padding:0 0 1em 1.5em;
  583. height:calc(100% - #{$pager_h});
  584. overflow-x: hidden;
  585. overflow-y: auto;
  586. line-height: $base-line / 2;
  587. >ul{
  588. ul{
  589. li{
  590. ul{
  591. overflow: hidden;
  592. max-height: 1000px;
  593. transition: max-height 0.5s ease-in-out;
  594. // transform: scaleY(1);
  595. // transform-origin: top;
  596. // transition: transform 0.3s ease-in-out;
  597. &:not(.opened){
  598. // height:0;
  599. max-height:0;
  600. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  601. // transform: scaleY(0);
  602. }
  603. // &.opened{
  604. // border: 1px solid red;
  605. // }
  606. // padding-left: 1em;
  607. border-left: 0.5px solid $grisclair;
  608. // min-height: 1em;
  609. margin-bottom: 0em;
  610. li{
  611. // min-height: 1em;
  612. // border-left: 1px solid red;
  613. padding:0 0 0 1em;
  614. }
  615. }
  616. }
  617. }
  618. .toc-title{
  619. @include title4grey;
  620. &.active,
  621. &:hover{
  622. color:$grisfonce;
  623. font-weight: 600;
  624. }
  625. &.loaded{
  626. color:$grisfonce;
  627. }
  628. }
  629. // h2.toc-title{font-size: 0.882em;}
  630. // h3.toc-title{font-size: 0.882em;}
  631. // h4.toc-title{font-size: 0.882em;}
  632. // h5.toc-title{font-size: 0.882em;}
  633. // h6.toc-title{font-size: 0.882em;}
  634. // span.toc-title{font-size: 0.882em;}
  635. }
  636. }
  637. div#page-nav{
  638. height:$pager_h;
  639. overflow: hidden;
  640. box-sizing: content-box;
  641. padding:1em 0 0 1.5em;
  642. select{
  643. option{
  644. padding:0;
  645. }
  646. }
  647. }
  648. }
  649. // responsive
  650. @media only screen and (max-width: $small-bp) {
  651. position: relative;
  652. >nav{
  653. $top: 45px;
  654. z-index: 2;
  655. position: absolute;
  656. top:$top;
  657. right:0;
  658. background-color: #fff;
  659. width:percentage(10/$default_sum);
  660. box-sizing: border-box;
  661. padding-top: 1em;
  662. padding-bottom: 1em;
  663. height:calc(100% - #{$top});
  664. transform: translateX(100%);
  665. transition: transform 0.3s ease-in-out;
  666. span.nav-title{
  667. display: block;
  668. position: absolute;
  669. top:4.5em; left:-1.8em;
  670. transform: rotateZ(-90deg);
  671. transform-origin: center;
  672. @include fontsans;
  673. font-size: 0.600em;
  674. cursor: pointer;
  675. color: $bleuroi;
  676. svg{
  677. vertical-align: bottom;
  678. transform-origin: center;
  679. transform: scale(0.8) rotate(180deg);
  680. transition: transform 0.3s ease-in-out;
  681. path{
  682. fill: $bleuroi;
  683. }
  684. }
  685. }
  686. &.opened{
  687. box-shadow: -3px -3px 5px $grisclair;
  688. transform: translateX(0);
  689. span.nav-title{
  690. svg{
  691. transform: scale(0.7) rotate(0);
  692. }
  693. }
  694. }
  695. }
  696. }
  697. }
  698. #text{
  699. .tei{}}
  700. #biblio{
  701. .router-link-active{
  702. font-weight: 600;
  703. }
  704. ul.item-list{
  705. margin:0;
  706. padding:0;
  707. li{
  708. padding:0;
  709. margin:0 0 1.5em 0;
  710. h2{
  711. margin:0;
  712. @include title2black;
  713. }
  714. p{
  715. margin:0;
  716. }
  717. }
  718. }
  719. }
  720. }
  721. footer[role="tools"]{
  722. $list-item-h: 7em;
  723. @mixin resultItem{
  724. box-sizing: border-box;
  725. // we are only on 10 colls as 2 are occupied by sides
  726. flex-basis: percentage(2/($default_sum - 2));
  727. max-height: $list-item-h;
  728. overflow: hidden;
  729. padding-bottom: 1em;
  730. padding-right: $default_gap;
  731. article{
  732. max-height: 100%;
  733. overflow: hidden;
  734. }
  735. article.item{
  736. h1{
  737. @include title3black;
  738. font-weight: 600;
  739. max-width: 95%;
  740. }
  741. h2{
  742. @include title3black;
  743. text-transform: none;
  744. }
  745. span{
  746. font-size: 0.882em;
  747. }
  748. // .preview{
  749. // font-size: 0.882em;
  750. // margin:0;
  751. // code{
  752. // @include fontserif;
  753. // background-color: lighten(desaturate($rouge,20%), 20%);
  754. // padding:0 0.2em;
  755. // }
  756. // }
  757. }
  758. }
  759. #history{
  760. z-index: 8;
  761. background-color: $or;
  762. padding:1.2em $side-padding;
  763. max-height: $list-item-h;
  764. @include accordeon-transition($list-item-h);
  765. >header{
  766. }
  767. .history-list{
  768. overflow-x: hidden;
  769. .wrapper{
  770. height:100%;
  771. // hidding the scrollbar
  772. overflow-y: auto;
  773. // width:calc(100% + 1em);
  774. padding-right: 1em;
  775. >ul{
  776. padding:0;
  777. display: flex;
  778. flex-direction: row;
  779. flex-wrap: wrap;
  780. }
  781. }
  782. li.item{
  783. @include resultItem;
  784. }
  785. }
  786. }
  787. #results{
  788. z-index: 9;
  789. background-color: $gris;
  790. padding:1.2em $side-padding;
  791. @media only screen and (max-width: $small-bp) {
  792. padding:1.2em $side-padding/2;
  793. }
  794. max-height: $list-item-h * 3;
  795. @include accordeon-transition($list-item-h * 3);
  796. >header{
  797. .search-keys{
  798. font-size: 0.756em;
  799. font-weight: 500;
  800. }
  801. .results-count{
  802. font-size: 0.756em;
  803. }
  804. }
  805. .results-list{
  806. overflow-x: hidden;
  807. .wrapper{
  808. position:relative;
  809. height:100%;
  810. // hidding the scrollbar
  811. overflow-y: auto;
  812. // width:calc(100% + 1em);
  813. padding-right: 1em;
  814. >ul{
  815. padding:0;
  816. display: flex;
  817. flex-direction: row;
  818. flex-wrap: wrap;
  819. }
  820. }
  821. li.result{
  822. @include resultItem;
  823. }
  824. .infinite-loading-container{
  825. // TODO: how to center the loading
  826. }
  827. }
  828. >header, section.results-list{
  829. transition: opacity 0.2s ease-in-out;
  830. }
  831. &.loading {
  832. >header, section.results-list{
  833. transition: opacity 0.5s ease-in-out;
  834. opacity:0.5;
  835. pointer-events: none;
  836. }
  837. }
  838. // responsive
  839. @media only screen and (max-width: $small-bp) {
  840. position: relative;
  841. >header{
  842. padding:0 0 1em 0;
  843. >*{
  844. display: inline-block;
  845. margin-right: 1em;
  846. }
  847. #sorting{
  848. width:10em;
  849. }
  850. }
  851. >section.results-list{
  852. max-height: 15em;
  853. li.result{
  854. flex-basis: 33%;
  855. }
  856. }
  857. >nav{
  858. position: absolute;
  859. top:1.2em; right:1.2em;
  860. }
  861. }
  862. }
  863. #footer-bottom{
  864. z-index: 10;
  865. padding:0 $side-padding;
  866. @media only screen and (max-width: $small-bp) {
  867. padding:0 $side-padding/2;
  868. }
  869. background-color: $bleuroi;
  870. &>*{
  871. // disable grid gap
  872. padding-right: 0;
  873. }
  874. #footer-tabs{
  875. ul{
  876. padding:0; margin:0;
  877. display: flex;
  878. flex-direction: column;
  879. li{
  880. flex: 1 1 auto;
  881. .wrapper{
  882. box-sizing: border-box;
  883. line-height: 0.6em;
  884. height:2em;
  885. width: calc(100% + $side-padding);
  886. margin-left:-$side-padding;
  887. padding:0.3em 0.5em 0.3em $side-padding;
  888. }
  889. &.history .wrapper{
  890. background-color: $or;
  891. }
  892. &.results .wrapper{
  893. background-color: $gris;
  894. }
  895. span{
  896. font-size: 0.693em;
  897. font-weight: 400;
  898. text-transform: uppercase;
  899. cursor: pointer;
  900. @include fade-transition;
  901. }
  902. }
  903. }
  904. }
  905. #search{
  906. color: #fff;
  907. background-color: $bleuroi;
  908. form{
  909. padding: 0;
  910. // display: flex;
  911. // flex-direction: row;
  912. // flex-wrap: wrap;
  913. fieldset{
  914. padding:0.7em 1em;
  915. border: none;
  916. box-sizing:border-box;
  917. // width correction as row is not the same width as others in the page
  918. // flex-basis: percentage(2/($default_sum - 1));
  919. // flex-basis: 17.667%;
  920. // flex-basis: percentage(2 / 11);
  921. &:not(:first-of-type){
  922. border-left: 1px solid $grisclair;
  923. }
  924. }
  925. fieldset.search{
  926. display: inline-flex;
  927. >div{
  928. width:80%;
  929. vertical-align: middle;
  930. }
  931. label[for="keys"]{
  932. display: none;
  933. }
  934. input[type="text"]{
  935. padding:0em 0.3em;
  936. margin:0 0 0.3em 0;
  937. box-sizing: border-box;
  938. font-size: 0.756em;
  939. line-height: 1;
  940. width:100%;
  941. height:1.4em;
  942. border:none;
  943. border-radius: 2px;
  944. }
  945. span.mdi{
  946. display: inline-block;
  947. margin:0 0 0 0.5em;
  948. font-size: 1.2em;
  949. line-height:1.1;
  950. vertical-align:middle;
  951. width:1.2em; height:1.2em;
  952. border-radius: 0.6em;
  953. background-color: #fff;
  954. color: $bleuroi;
  955. text-align: center;
  956. font-weight: 700;
  957. cursor: pointer;
  958. }
  959. }
  960. }
  961. fieldset.filters{
  962. .vs__actions{
  963. // background-color: $grisclair;
  964. align-items:baseline;
  965. padding-top:0.2em;
  966. }
  967. }
  968. form{
  969. transition: opacity 0.2s ease-in-out;
  970. }
  971. &.loading{
  972. form{
  973. opacity:0.5;
  974. transition: opacity 0.5s ease-in-out;
  975. pointer-events: none;
  976. }
  977. }
  978. // responsive
  979. @media only screen and (max-width: $small-bp) {
  980. form{
  981. fieldset{
  982. &.search{
  983. >div{
  984. display: inline-flex;
  985. flex-wrap: nowrap;
  986. width:84%;
  987. >*{
  988. flex-basis: 45%;
  989. margin: 0 0.5em 0 0;
  990. // box-sizing: content-box;
  991. // width:auto!important;
  992. &#keys[type="text"]{
  993. margin-right:1.5em;
  994. }
  995. }
  996. }
  997. span.mdi{
  998. width:1em; height:1em;
  999. margin-top: -0.1em;
  1000. margin-left: 0;
  1001. }
  1002. }
  1003. &.filters{
  1004. border-left: none;
  1005. flex-basis: 32%;
  1006. padding: 0.2em 0 1em 1em;
  1007. }
  1008. }
  1009. }
  1010. }
  1011. }
  1012. }
  1013. h2{
  1014. margin:0;
  1015. font-size: 0.756em;
  1016. font-weight: 400;
  1017. text-transform: uppercase;
  1018. padding:0;
  1019. }
  1020. }
  1021. // vue-select
  1022. .v-select{
  1023. padding:0;
  1024. div[role="combobox"]{
  1025. background-color: #fff;
  1026. padding:0;
  1027. border-radius: 2px;
  1028. border: none;
  1029. }
  1030. input[type="search"]{
  1031. margin:0;
  1032. padding:0;
  1033. -webkit-appearance:textfield;
  1034. -webkit-box-sizing:content-box;
  1035. }
  1036. input::-webkit-search-decoration,
  1037. input::-webkit-search-cancel-button {
  1038. display: none;
  1039. }
  1040. .vs__search{
  1041. &, &:focus{
  1042. font-size: 0.756em;
  1043. line-height: 1;
  1044. height:1.2em;
  1045. border:none;
  1046. box-sizing: border-box;
  1047. }
  1048. }
  1049. .vs__dropdown-toggle{
  1050. input::placeholder{background-color: #fff;}
  1051. }
  1052. .vs__selected-options{
  1053. background-color: #fff;
  1054. }
  1055. .vs__actions{
  1056. padding:1px 3px;
  1057. button.vs__clear{
  1058. line-height: 0.5;
  1059. // height:0;
  1060. }
  1061. svg[role="presentation"]{
  1062. transform: scale(0.8);
  1063. path{
  1064. fill: $bleuroi;
  1065. }
  1066. }
  1067. }
  1068. .vs__selected{
  1069. margin:0;
  1070. padding:0.2em 0;
  1071. line-height:1;
  1072. font-size: 0.756em;
  1073. background-color: #fff;
  1074. border:none;
  1075. align-items: middle;
  1076. box-sizing: content-box;
  1077. display: inline-block;
  1078. width: calc(100% - 12px);
  1079. // &>*:not(button){
  1080. // display: inline-block;
  1081. // width:70%;
  1082. // }
  1083. button{
  1084. svg{
  1085. transform: scale(0.8);
  1086. path{
  1087. fill: $bleuroi;
  1088. }
  1089. }
  1090. &.vs__deselect{
  1091. line-height: 0;
  1092. }
  1093. }
  1094. }
  1095. // border-radius: 2px;
  1096. // border: none;
  1097. }
  1098. ul[role="listbox"]{
  1099. @include fontsans;
  1100. padding:0;
  1101. margin:0;
  1102. border:none;
  1103. position: relative;
  1104. li{
  1105. box-sizing: content-box;
  1106. padding:0.3em;
  1107. margin:0;
  1108. font-size: 0.756em;
  1109. line-height: 1;
  1110. white-space: normal;
  1111. position: relative;
  1112. *{
  1113. max-width: 100%;
  1114. }
  1115. }
  1116. }
  1117. // ___
  1118. // |_ _|__ ___ _ _ ___
  1119. // | |/ _/ _ \ ' \(_-<
  1120. // |___\__\___/_||_/__/
  1121. span.mdi-close{
  1122. cursor: pointer;
  1123. }
  1124. @keyframes spin {
  1125. from {
  1126. transform:rotate(0deg);
  1127. }
  1128. to {
  1129. transform:rotate(360deg);
  1130. }
  1131. }
  1132. span.mdi-loading{
  1133. animation-name: spin;
  1134. animation-duration: 2000ms;
  1135. animation-iteration-count: infinite;
  1136. animation-timing-function: linear;
  1137. }
  1138. // _ _ _
  1139. // | | ___ __ _ __| (_)_ _ __ _
  1140. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1141. // |____\___/\__,_\__,_|_|_||_\__, |
  1142. // |___/
  1143. span.loading{
  1144. @include fontsans;
  1145. font-size: 0.756em;
  1146. color: $grisfonce;
  1147. animation: pulseloading 4s infinite;
  1148. }
  1149. @keyframes pulseloading{
  1150. 0% {
  1151. opacity: 1;
  1152. }
  1153. 50%{
  1154. opacity: 0;
  1155. }
  1156. 100% {
  1157. opacity: 1;
  1158. }
  1159. }