app.scss 28 KB

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