app.scss 26 KB

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