app.scss 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213
  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. }
  428. div#text{
  429. // .infinite-loading-container{
  430. // height:0;
  431. // overflow: hidden;
  432. // }
  433. div.tei{
  434. position: relative;
  435. width: calc(100% - #{$pagenum_w});
  436. // DEBUG
  437. color:chartreuse;
  438. &>*{ color: #1A1A1A;}
  439. // @media only screen and (min-width: $small-bp + 1) {
  440. padding-right: $pagenum_w;
  441. border-left: 1px dotted $grisclair;
  442. padding-left: 1em;
  443. &.active{
  444. border-left: 1px dotted $bleuroi;
  445. }
  446. // }
  447. >h1{
  448. @include teititle1blue;
  449. }
  450. span.placeName,
  451. span.objectName,
  452. span.persName{
  453. font-weight: 600;
  454. }
  455. h1{ font-size: 1.512em;
  456. line-height: $base-line; }
  457. p{
  458. margin-top: 0;
  459. font-size: 1.134em;
  460. line-height: $base-line;
  461. margin-bottom: $base-line / 2;
  462. span.persName,
  463. span.placeName,
  464. span.objectName{
  465. font-weight: 600;
  466. }
  467. a{
  468. font-weight: 600;
  469. &.active-link{
  470. color: $rouge;
  471. // text-decoration: underline;
  472. line-height: $base-line/2;
  473. }
  474. sup.mdi{
  475. font-size: 0.630em;
  476. vertical-align: super;
  477. // line-height: 0.1;
  478. padding: 0 0.2em;
  479. }
  480. }
  481. }
  482. span[role="pageNum"]{
  483. font-size: 16px;
  484. position: relative;
  485. float:right;
  486. width: $pagenum_w; height:0;
  487. // margin-left:calc(100% - #{$pagenum_w * 2});
  488. // margin-left: 100%;
  489. margin-right: - $pagenum_w;
  490. &:after{
  491. content:attr(data-num);
  492. border-top: 1px solid $bleuroilight;
  493. position: absolute;
  494. right:0;
  495. font-size: 0.630em;
  496. width: $pagenum_w*2; height: $pagenum_w;
  497. line-height: $pagenum_w;
  498. border-right: 1px solid $bleuroilight;
  499. color: $bleuroi;
  500. text-indent: $pagenum_w * 2.5;
  501. }
  502. }
  503. a.text-item-link{
  504. // float: left;
  505. position: absolute;
  506. top:0; left:0;
  507. // display: block;
  508. // width:1em; height:1em;
  509. font-size: 0.630em;
  510. .mdi{
  511. color: $bleuroi;
  512. pointer-events: none;
  513. }
  514. }
  515. // front page
  516. header{
  517. padding-top: $base-line;
  518. h1{
  519. @include teititlefrontblue;
  520. .initial{
  521. display: inline-block;
  522. text-transform: uppercase;
  523. font-size: 1.3em;
  524. line-height: $base-line*2;
  525. margin: $base-line/2 0;
  526. }
  527. }
  528. }
  529. .byline{
  530. text-align: center;
  531. font-style: italic;
  532. padding-bottom: 1em;
  533. }
  534. .docImprint{
  535. text-align: center;
  536. // padding-bottom: 1em;
  537. }
  538. .imprimatur{
  539. text-align: center;
  540. font-style: italic;
  541. padding-bottom: 1em;
  542. }
  543. figure{
  544. // outline: 1px solid red;
  545. background-color: $grisclair;
  546. margin:1em 0;
  547. img{
  548. width: 100%;
  549. }
  550. figcaption{
  551. @include fontcaption
  552. padding: 0.5em;
  553. }
  554. }
  555. ul{
  556. line-height: $base-line;
  557. margin-bottom: $base-line/2;
  558. }
  559. blockquote{
  560. margin: $base-line/2 1em;
  561. line-height: $base-line;
  562. p{
  563. margin: 0;
  564. }
  565. }
  566. }
  567. }
  568. }
  569. >nav{
  570. $pager_h:2em;
  571. display: flex;
  572. flex-direction: column;
  573. span.nav-title{ display:none; }
  574. section#toc{
  575. box-sizing: content-box;
  576. padding:0 0 1em 1.5em;
  577. height:calc(100% - #{$pager_h});
  578. overflow-x: hidden;
  579. overflow-y: auto;
  580. line-height: $base-line / 2;
  581. >ul{
  582. ul{
  583. li{
  584. ul{
  585. overflow: hidden;
  586. max-height: 1000px;
  587. transition: max-height 0.5s ease-in-out;
  588. // transform: scaleY(1);
  589. // transform-origin: top;
  590. // transition: transform 0.3s ease-in-out;
  591. &:not(.opened){
  592. // height:0;
  593. max-height:0;
  594. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  595. // transform: scaleY(0);
  596. }
  597. // &.opened{
  598. // border: 1px solid red;
  599. // }
  600. // padding-left: 1em;
  601. border-left: 0.5px solid $grisclair;
  602. // min-height: 1em;
  603. margin-bottom: 0em;
  604. li{
  605. // min-height: 1em;
  606. // border-left: 1px solid red;
  607. padding:0 0 0 1em;
  608. }
  609. }
  610. }
  611. }
  612. .toc-title{
  613. @include title4grey;
  614. &.active,
  615. &:hover{
  616. color:$grisfonce;
  617. font-weight: 600;
  618. }
  619. &.loaded{
  620. color:$grisfonce;
  621. }
  622. }
  623. // h2.toc-title{font-size: 0.882em;}
  624. // h3.toc-title{font-size: 0.882em;}
  625. // h4.toc-title{font-size: 0.882em;}
  626. // h5.toc-title{font-size: 0.882em;}
  627. // h6.toc-title{font-size: 0.882em;}
  628. // span.toc-title{font-size: 0.882em;}
  629. }
  630. }
  631. div#page-nav{
  632. height:$pager_h;
  633. overflow: hidden;
  634. box-sizing: content-box;
  635. padding:1em 0 0 1.5em;
  636. select{
  637. option{
  638. padding:0;
  639. }
  640. }
  641. }
  642. }
  643. // responsive
  644. @media only screen and (max-width: $small-bp) {
  645. position: relative;
  646. >nav{
  647. $top: 45px;
  648. z-index: 2;
  649. position: absolute;
  650. top:$top;
  651. right:0;
  652. background-color: #fff;
  653. width:percentage(10/$default_sum);
  654. box-sizing: border-box;
  655. padding-top: 1em;
  656. padding-bottom: 1em;
  657. height:calc(100% - #{$top});
  658. transform: translateX(100%);
  659. transition: transform 0.3s ease-in-out;
  660. span.nav-title{
  661. display: block;
  662. position: absolute;
  663. top:4.5em; left:-1.8em;
  664. transform: rotateZ(-90deg);
  665. transform-origin: center;
  666. @include fontsans;
  667. font-size: 0.600em;
  668. cursor: pointer;
  669. color: $bleuroi;
  670. svg{
  671. vertical-align: bottom;
  672. transform-origin: center;
  673. transform: scale(0.8) rotate(180deg);
  674. transition: transform 0.3s ease-in-out;
  675. path{
  676. fill: $bleuroi;
  677. }
  678. }
  679. }
  680. &.opened{
  681. box-shadow: -3px -3px 5px $grisclair;
  682. transform: translateX(0);
  683. span.nav-title{
  684. svg{
  685. transform: scale(0.7) rotate(0);
  686. }
  687. }
  688. }
  689. }
  690. }
  691. }
  692. #text{
  693. .tei{}}
  694. #biblio{
  695. .router-link-active{
  696. font-weight: 600;
  697. }
  698. ul.item-list{
  699. margin:0;
  700. padding:0;
  701. li{
  702. padding:0;
  703. margin:0 0 1.5em 0;
  704. h2{
  705. margin:0;
  706. @include title2black;
  707. }
  708. p{
  709. margin:0;
  710. }
  711. }
  712. }
  713. }
  714. }
  715. footer[role="tools"]{
  716. $list-item-h: 7em;
  717. @mixin resultItem{
  718. box-sizing: border-box;
  719. // we are only on 10 colls as 2 are occupied by sides
  720. flex-basis: percentage(2/($default_sum - 2));
  721. max-height: $list-item-h;
  722. overflow: hidden;
  723. padding-bottom: 1em;
  724. padding-right: $default_gap;
  725. article{
  726. max-height: 100%;
  727. overflow: hidden;
  728. }
  729. article.item{
  730. h1{
  731. @include title3black;
  732. font-weight: 600;
  733. max-width: 95%;
  734. }
  735. h2{
  736. @include title3black;
  737. text-transform: none;
  738. }
  739. span{
  740. font-size: 0.882em;
  741. }
  742. // .preview{
  743. // font-size: 0.882em;
  744. // margin:0;
  745. // code{
  746. // @include fontserif;
  747. // background-color: lighten(desaturate($rouge,20%), 20%);
  748. // padding:0 0.2em;
  749. // }
  750. // }
  751. }
  752. }
  753. #history{
  754. z-index: 8;
  755. background-color: $or;
  756. padding:1.2em $side-padding;
  757. max-height: $list-item-h;
  758. @include accordeon-transition($list-item-h);
  759. >header{
  760. }
  761. .history-list{
  762. overflow-x: hidden;
  763. .wrapper{
  764. height:100%;
  765. // hidding the scrollbar
  766. overflow-y: auto;
  767. // width:calc(100% + 1em);
  768. padding-right: 1em;
  769. >ul{
  770. padding:0;
  771. display: flex;
  772. flex-direction: row;
  773. flex-wrap: wrap;
  774. }
  775. }
  776. li.item{
  777. @include resultItem;
  778. }
  779. }
  780. }
  781. #results{
  782. z-index: 9;
  783. background-color: $gris;
  784. padding:1.2em $side-padding;
  785. @media only screen and (max-width: $small-bp) {
  786. padding:1.2em $side-padding/2;
  787. }
  788. max-height: $list-item-h * 3;
  789. @include accordeon-transition($list-item-h * 3);
  790. >header{
  791. .search-keys{
  792. font-size: 0.756em;
  793. font-weight: 500;
  794. }
  795. .results-count{
  796. font-size: 0.756em;
  797. }
  798. }
  799. .results-list{
  800. overflow-x: hidden;
  801. .wrapper{
  802. position:relative;
  803. height:100%;
  804. // hidding the scrollbar
  805. overflow-y: auto;
  806. // width:calc(100% + 1em);
  807. padding-right: 1em;
  808. >ul{
  809. padding:0;
  810. display: flex;
  811. flex-direction: row;
  812. flex-wrap: wrap;
  813. }
  814. }
  815. li.result{
  816. @include resultItem;
  817. }
  818. .infinite-loading-container{
  819. // TODO: how to center the loading
  820. }
  821. }
  822. >header, section.results-list{
  823. transition: opacity 0.2s ease-in-out;
  824. }
  825. &.loading {
  826. >header, section.results-list{
  827. transition: opacity 0.5s ease-in-out;
  828. opacity:0.5;
  829. pointer-events: none;
  830. }
  831. }
  832. // responsive
  833. @media only screen and (max-width: $small-bp) {
  834. position: relative;
  835. >header{
  836. padding:0 0 1em 0;
  837. >*{
  838. display: inline-block;
  839. margin-right: 1em;
  840. }
  841. #sorting{
  842. width:10em;
  843. }
  844. }
  845. >section.results-list{
  846. max-height: 15em;
  847. li.result{
  848. flex-basis: 33%;
  849. }
  850. }
  851. >nav{
  852. position: absolute;
  853. top:1.2em; right:1.2em;
  854. }
  855. }
  856. }
  857. #footer-bottom{
  858. z-index: 10;
  859. padding:0 $side-padding;
  860. @media only screen and (max-width: $small-bp) {
  861. padding:0 $side-padding/2;
  862. }
  863. background-color: $bleuroi;
  864. &>*{
  865. // disable grid gap
  866. padding-right: 0;
  867. }
  868. #footer-tabs{
  869. ul{
  870. padding:0; margin:0;
  871. display: flex;
  872. flex-direction: column;
  873. li{
  874. flex: 1 1 auto;
  875. .wrapper{
  876. box-sizing: border-box;
  877. line-height: 0.6em;
  878. height:2em;
  879. width: calc(100% + $side-padding);
  880. margin-left:-$side-padding;
  881. padding:0.3em 0.5em 0.3em $side-padding;
  882. }
  883. &.history .wrapper{
  884. background-color: $or;
  885. }
  886. &.results .wrapper{
  887. background-color: $gris;
  888. }
  889. span{
  890. font-size: 0.693em;
  891. font-weight: 400;
  892. text-transform: uppercase;
  893. cursor: pointer;
  894. @include fade-transition;
  895. }
  896. }
  897. }
  898. }
  899. #search{
  900. color: #fff;
  901. background-color: $bleuroi;
  902. form{
  903. padding: 0;
  904. // display: flex;
  905. // flex-direction: row;
  906. // flex-wrap: wrap;
  907. fieldset{
  908. padding:0.7em 1em;
  909. border: none;
  910. box-sizing:border-box;
  911. // width correction as row is not the same width as others in the page
  912. // flex-basis: percentage(2/($default_sum - 1));
  913. // flex-basis: 17.667%;
  914. // flex-basis: percentage(2 / 11);
  915. &:not(:first-of-type){
  916. border-left: 1px solid $grisclair;
  917. }
  918. }
  919. fieldset.search{
  920. display: inline-flex;
  921. >div{
  922. width:80%;
  923. vertical-align: middle;
  924. }
  925. label[for="keys"]{
  926. display: none;
  927. }
  928. input[type="text"]{
  929. padding:0em 0.3em;
  930. margin:0 0 0.3em 0;
  931. box-sizing: border-box;
  932. font-size: 0.756em;
  933. line-height: 1;
  934. width:100%;
  935. height:1.4em;
  936. border:none;
  937. border-radius: 2px;
  938. }
  939. span.mdi{
  940. display: inline-block;
  941. margin:0 0 0 0.5em;
  942. font-size: 1.2em;
  943. line-height:1.1;
  944. vertical-align:middle;
  945. width:1.2em; height:1.2em;
  946. border-radius: 0.6em;
  947. background-color: #fff;
  948. color: $bleuroi;
  949. text-align: center;
  950. font-weight: 700;
  951. cursor: pointer;
  952. }
  953. }
  954. }
  955. fieldset.filters{
  956. .vs__actions{
  957. // background-color: $grisclair;
  958. align-items:baseline;
  959. padding-top:0.2em;
  960. }
  961. }
  962. form{
  963. transition: opacity 0.2s ease-in-out;
  964. }
  965. &.loading{
  966. form{
  967. opacity:0.5;
  968. transition: opacity 0.5s ease-in-out;
  969. pointer-events: none;
  970. }
  971. }
  972. // responsive
  973. @media only screen and (max-width: $small-bp) {
  974. form{
  975. fieldset{
  976. &.search{
  977. >div{
  978. display: inline-flex;
  979. flex-wrap: nowrap;
  980. width:84%;
  981. >*{
  982. flex-basis: 45%;
  983. margin: 0 0.5em 0 0;
  984. // box-sizing: content-box;
  985. // width:auto!important;
  986. &#keys[type="text"]{
  987. margin-right:1.5em;
  988. }
  989. }
  990. }
  991. span.mdi{
  992. width:1em; height:1em;
  993. margin-top: -0.1em;
  994. margin-left: 0;
  995. }
  996. }
  997. &.filters{
  998. border-left: none;
  999. flex-basis: 32%;
  1000. padding: 0.2em 0 1em 1em;
  1001. }
  1002. }
  1003. }
  1004. }
  1005. }
  1006. }
  1007. h2{
  1008. margin:0;
  1009. font-size: 0.756em;
  1010. font-weight: 400;
  1011. text-transform: uppercase;
  1012. padding:0;
  1013. }
  1014. }
  1015. // vue-select
  1016. .v-select{
  1017. padding:0;
  1018. div[role="combobox"]{
  1019. background-color: #fff;
  1020. padding:0;
  1021. border-radius: 2px;
  1022. border: none;
  1023. }
  1024. input[type="search"]{
  1025. margin:0;
  1026. padding:0;
  1027. -webkit-appearance:textfield;
  1028. -webkit-box-sizing:content-box;
  1029. }
  1030. input::-webkit-search-decoration,
  1031. input::-webkit-search-cancel-button {
  1032. display: none;
  1033. }
  1034. .vs__search{
  1035. &, &:focus{
  1036. font-size: 0.756em;
  1037. line-height: 1;
  1038. height:1.2em;
  1039. border:none;
  1040. box-sizing: border-box;
  1041. }
  1042. }
  1043. .vs__dropdown-toggle{
  1044. input::placeholder{background-color: #fff;}
  1045. }
  1046. .vs__selected-options{
  1047. background-color: #fff;
  1048. }
  1049. .vs__actions{
  1050. padding:1px 3px;
  1051. button.vs__clear{
  1052. line-height: 0.5;
  1053. // height:0;
  1054. }
  1055. svg[role="presentation"]{
  1056. transform: scale(0.8);
  1057. path{
  1058. fill: $bleuroi;
  1059. }
  1060. }
  1061. }
  1062. .vs__selected{
  1063. margin:0;
  1064. padding:0.2em 0;
  1065. line-height:1;
  1066. font-size: 0.756em;
  1067. background-color: #fff;
  1068. border:none;
  1069. align-items: middle;
  1070. box-sizing: content-box;
  1071. display: inline-block;
  1072. width: calc(100% - 12px);
  1073. // &>*:not(button){
  1074. // display: inline-block;
  1075. // width:70%;
  1076. // }
  1077. button{
  1078. svg{
  1079. transform: scale(0.8);
  1080. path{
  1081. fill: $bleuroi;
  1082. }
  1083. }
  1084. &.vs__deselect{
  1085. line-height: 0;
  1086. }
  1087. }
  1088. }
  1089. // border-radius: 2px;
  1090. // border: none;
  1091. }
  1092. ul[role="listbox"]{
  1093. @include fontsans;
  1094. padding:0;
  1095. margin:0;
  1096. border:none;
  1097. position: relative;
  1098. li{
  1099. box-sizing: content-box;
  1100. padding:0.3em;
  1101. margin:0;
  1102. font-size: 0.756em;
  1103. line-height: 1;
  1104. white-space: normal;
  1105. position: relative;
  1106. *{
  1107. max-width: 100%;
  1108. }
  1109. }
  1110. }
  1111. // ___
  1112. // |_ _|__ ___ _ _ ___
  1113. // | |/ _/ _ \ ' \(_-<
  1114. // |___\__\___/_||_/__/
  1115. span.mdi-close{
  1116. cursor: pointer;
  1117. }
  1118. @keyframes spin {
  1119. from {
  1120. transform:rotate(0deg);
  1121. }
  1122. to {
  1123. transform:rotate(360deg);
  1124. }
  1125. }
  1126. span.mdi-loading{
  1127. animation-name: spin;
  1128. animation-duration: 2000ms;
  1129. animation-iteration-count: infinite;
  1130. animation-timing-function: linear;
  1131. }
  1132. // _ _ _
  1133. // | | ___ __ _ __| (_)_ _ __ _
  1134. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1135. // |____\___/\__,_\__,_|_|_||_\__, |
  1136. // |___/
  1137. span.loading{
  1138. @include fontsans;
  1139. font-size: 0.756em;
  1140. color: $grisfonce;
  1141. animation: pulseloading 4s infinite;
  1142. }
  1143. @keyframes pulseloading{
  1144. 0% {
  1145. opacity: 1;
  1146. }
  1147. 50%{
  1148. opacity: 0;
  1149. }
  1150. 100% {
  1151. opacity: 1;
  1152. }
  1153. }