app.scss 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377
  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), (orientation: portrait) {
  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{
  187. &>h1{
  188. @include titleSansRed;
  189. margin: 0;
  190. }
  191. }
  192. article.item{
  193. // margin: 2em 0 0;
  194. header{
  195. margin:0;
  196. h1{
  197. margin:0;
  198. span.title{
  199. @include title1black;
  200. color: $bleuroi;
  201. }
  202. span.quantity{
  203. @include title4black;
  204. }
  205. }
  206. }
  207. }
  208. &:not(#list-corpus){
  209. ul.item-list{
  210. li{
  211. // margin: 0 0 2em 0;
  212. max-height: $base-line * 3;
  213. opacity: 1;
  214. transition: all 0.3s ease-in-out;
  215. &.hidden {
  216. // display: none;
  217. max-height: 0.01px;
  218. opacity: 0;
  219. }
  220. }
  221. }
  222. }
  223. ul.item-list{
  224. li{
  225. // margin: 0 0 2em 0;
  226. header{
  227. h2{
  228. @include title1blue;
  229. // margin:0.4em 0 0.2em;
  230. margin-bottom: $base-line / 2;
  231. }
  232. h3{
  233. margin:0;
  234. @include fontsans;
  235. font-size: 0.756em;
  236. font-weight: 500;
  237. line-height: $base-line / 2;
  238. }
  239. margin-bottom: $base-line / 2;
  240. }
  241. h4{
  242. margin:0;
  243. font-weight: 300;
  244. @include fontsans;
  245. font-size: 0.756em;
  246. line-height: $base-line / 2;
  247. &.texts-quantity{
  248. color: $rouge;
  249. // margin: 0.3em 0 0;
  250. }
  251. }
  252. section.editions{
  253. div.editions{
  254. ol{
  255. padding:0;
  256. li{
  257. margin:0.7em 1em;
  258. }
  259. }
  260. }
  261. }
  262. section.texts{
  263. ul.texts-list{
  264. padding: 0 0 0 1em;
  265. li{
  266. margin-bottom: $base-line / 2;
  267. }
  268. h3{
  269. @include title2black;
  270. // margin: 0.7em 0 0.3em;
  271. line-height: $base-line / 2;
  272. }
  273. p{
  274. font-weight: 300;
  275. @include fontsans;
  276. font-size: 0.756em;
  277. margin: 0;
  278. line-height: $base-line / 2;
  279. }
  280. }
  281. }
  282. ul {
  283. li{
  284. margin:0 0 0 1em;
  285. h3{
  286. margin: 0.5em 0;
  287. font-weight: 400;
  288. font-size: 1em;
  289. }
  290. }
  291. }
  292. }
  293. }
  294. .abc{
  295. ul{
  296. li{
  297. opacity: 1;
  298. transition: opacity 0.3s ease-in-out;
  299. padding: 3px;
  300. &.inactive{
  301. opacity: 0.4;
  302. }
  303. span{
  304. @include fontcaption;
  305. font-variant: small-caps;
  306. font-size: 1em;
  307. cursor: pointer;
  308. // line-height: $base-line / 2;
  309. border: 1px solid $grisclair;
  310. border-radius: 3px;
  311. padding: 0.3em;
  312. display: inline-block;
  313. text-align: center;
  314. }
  315. &:not(:first-of-type) span{
  316. width: 1.1em; height: 1.1em;
  317. }
  318. }
  319. }
  320. }
  321. }
  322. #corpus{
  323. }
  324. .index{
  325. }
  326. .index-item{
  327. header{
  328. h1{
  329. @include title1black;
  330. margin:0 0 0.3em;
  331. }
  332. p{
  333. margin: 0 0 0.5em 0;
  334. }
  335. h3{
  336. @include title2black
  337. margin:0;
  338. }
  339. .authors{
  340. a{
  341. @include title2black;
  342. color: $bleuroi;
  343. }
  344. margin:0 0 0.3em;
  345. }
  346. .mdi{
  347. color: $bleuroilight;
  348. font-size: 0.7em;
  349. }
  350. .attested-forms{
  351. ul{
  352. // >li{
  353. // margin: 0 0 1em 0;
  354. // li{
  355. // margin: 0 0 0.5em 0;
  356. // }
  357. // }
  358. }
  359. a{
  360. @include title4grey;
  361. color: $grisfonce;
  362. font-weight: 400;
  363. }
  364. }
  365. }
  366. .tabs{
  367. border-bottom: 1px solid $bleuroilight;
  368. margin-bottom: $base-line / 2;
  369. .tab{
  370. cursor: pointer;
  371. border-radius: 5px 5px 0 0;
  372. z-index: 10;
  373. display: inline-block;
  374. margin-bottom: -2px;
  375. padding: 0.3em 0.5em;
  376. border: 1px solid $bleuroilight;
  377. &.active{
  378. border-bottom: 2px solid white;
  379. }
  380. }
  381. }
  382. .occurences{
  383. >ul{
  384. >li{
  385. padding:0 0 $base-line / 2 0;
  386. h3{
  387. @include title1black;
  388. padding:0 0 $base-line / 2 0;
  389. color: $bleuroi;
  390. }
  391. >ul{
  392. >li{
  393. // padding:0 0 0.5em 0;
  394. section{
  395. h4{
  396. // @include title3black;
  397. @include title4grey;
  398. color: $grisfonce;
  399. font-weight: 400;
  400. display: inline-block;
  401. a{
  402. span.form{
  403. font-style: italic;
  404. }
  405. }
  406. }
  407. // ? c'est quoi ça ?
  408. // span.open-close{
  409. // cursor: pointer;
  410. // display: inline-block;
  411. // svg{
  412. // transform: rotate(-90deg) scale(0.8);
  413. // transition: transform 0.3s ease-in-out;
  414. // path{
  415. // fill:$bleuroi;
  416. // }
  417. // }
  418. // }
  419. // div.text{
  420. // max-height: 0;
  421. // transition: max-height 0.3s ease-in-out;
  422. // overflow: hidden;
  423. // box-sizing: content-box;
  424. // p, h1, h2, h3, h4, h5, h6{
  425. // margin: 0.5em 0 0 0;
  426. // }
  427. // }
  428. // a.lire-plus{
  429. // color: $bleuroi;
  430. // opacity: 0;
  431. // display: inline-block;
  432. // height: 0;
  433. // overflow: hidden;
  434. // transition: height, opacity 0.3s ease-in-out;
  435. // }
  436. // &.opened{
  437. // span.open-close{
  438. // cursor: pointer;
  439. // display: inline-block;
  440. // svg{
  441. // transform: scale(0.8) rotate(0);
  442. // }
  443. // }
  444. // div.text{
  445. // max-height:100px;
  446. // }
  447. // a.lire-plus{
  448. // opacity: 1;
  449. // height:1em;
  450. // }
  451. // }
  452. }
  453. }
  454. }
  455. }
  456. }
  457. }
  458. .attested-forms-occurences{
  459. >ul{
  460. >li{
  461. margin: 0 0 1em 0;
  462. h3{
  463. @include title1black;
  464. padding:0 0 0 0;
  465. }
  466. li{
  467. // margin: 0 0 0.5em 0;
  468. h4{
  469. // @include title3black;
  470. @include title4grey;
  471. color: $grisfonce;
  472. font-weight: 400;
  473. display: inline-block;
  474. a{
  475. span.edition{
  476. font-style: italic;
  477. }
  478. }
  479. }
  480. }
  481. }
  482. }
  483. }
  484. nav{
  485. h3{
  486. @include title2black;
  487. margin:0 0 0.5em;
  488. }
  489. h4{
  490. @include title3black;
  491. margin:0 0 0.5em;
  492. color: $bleuroi;
  493. }
  494. }
  495. }
  496. #edition{
  497. >header{
  498. position: relative;
  499. h1{
  500. @include title1black;
  501. }
  502. aside.index-tooltip{
  503. z-index:10;
  504. margin-top: -1.75em;
  505. position:absolute;
  506. text-align: right;
  507. right: 2em;
  508. h1 {
  509. @include title2black;
  510. margin:0 0 0.5em 0;
  511. }
  512. p{
  513. margin:0 0 0.5em 0;
  514. }
  515. time{
  516. font-weight: 600;
  517. }
  518. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  519. background-color: #fff;
  520. padding: 1em;
  521. box-shadow: 0 0 10px $gris;
  522. *{
  523. pointer-events: none;
  524. }
  525. }
  526. }
  527. }
  528. $pagenum_w:1em;
  529. >section{
  530. padding-right: 0;
  531. >.wrapper{
  532. padding-right: $pagenum_w*3;
  533. // outline: orange solid thin;
  534. }
  535. div#text{
  536. // .infinite-loading-container{
  537. // height:0;
  538. // overflow: hidden;
  539. // }
  540. .text-wrapper{
  541. // padding-left: 1em;
  542. position: relative;
  543. }
  544. .textrefcopylink{
  545. display: block;
  546. position: absolute;
  547. z-index: 99;
  548. span.mdi-open-in-new {
  549. position: relative;
  550. z-index: 10;
  551. margin-left: 1px;
  552. }
  553. .popup{
  554. position: absolute;
  555. top:0;
  556. left: 1px;
  557. // width: 15em;
  558. background-color: #fff;
  559. border-radius: 3px;
  560. padding: 1em 1em 1em 1.5em;
  561. box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  562. display: none;
  563. opacity: 0.1;
  564. // outline: 1px solid blue;
  565. transition: opacity 2s ease-in-out;
  566. button.copy-btn{
  567. display: block;
  568. padding: 0.5em 0.2em;
  569. @include fontcaption;
  570. white-space: nowrap;
  571. border: none;
  572. background: none;
  573. cursor: pointer;
  574. }
  575. }
  576. &:hover .popup{
  577. display: block;
  578. opacity: 1;
  579. transition: opacity 2s ease-in-out;
  580. }
  581. }
  582. div.tei{
  583. position: relative;
  584. width: calc(100% - #{$pagenum_w});
  585. // DEBUG
  586. color:chartreuse;
  587. &>*{ color: #1A1A1A;}
  588. // @media only screen and (min-width: $small-bp + 1) {
  589. padding-right: $pagenum_w;
  590. border-left: 1px dotted $grisclair;
  591. padding-left: 1em;
  592. margin-left:1.2em;
  593. overflow: visible;
  594. &.active{
  595. border-left: 1px dotted $bleuroi;
  596. }
  597. // }
  598. >h1{
  599. @include teititle1blue;
  600. }
  601. span.placeName,
  602. span.objectName,
  603. span.persName{
  604. font-weight: 600;
  605. }
  606. h1{ font-size: 1.512em;
  607. line-height: $base-line; }
  608. p{
  609. margin-top: 0;
  610. font-size: 1.134em;
  611. line-height: $base-line;
  612. margin-bottom: $base-line / 2;
  613. span.persName,
  614. span.placeName,
  615. span.objectName{
  616. font-weight: 600;
  617. }
  618. a{
  619. font-weight: 600;
  620. &.active-link{
  621. color: $rouge;
  622. // text-decoration: underline;
  623. line-height: $base-line/2;
  624. }
  625. sup.mdi{
  626. font-size: 0.630em;
  627. vertical-align: super;
  628. // line-height: 0.1;
  629. padding: 0 0.2em;
  630. }
  631. }
  632. }
  633. span[role="pageNum"]{
  634. font-size: 16px;
  635. position: relative;
  636. float:right;
  637. width: $pagenum_w; height:$base-line/4;
  638. border-bottom: 1px solid $bleuroilight;
  639. border-right: 1px solid $bleuroilight;
  640. // outline: solid red thin;
  641. // margin-left:calc(100% - #{$pagenum_w * 2});
  642. // margin-left: 100%;
  643. margin-right: - $pagenum_w * 1.5;
  644. &:before{
  645. // outline: solid green thin;
  646. content:attr(data-num);
  647. font-size: 0.630em;
  648. line-height: $base-line/3;
  649. position: absolute;
  650. right: 0;
  651. top:$base-line/2;
  652. color: $bleuroi;
  653. // top:0;
  654. // width: $pagenum_w*2; height: $pagenum_w;
  655. // border-top: 1px solid $bleuroilight;
  656. // border-right: 1px solid $bleuroilight;
  657. // text-indent: $pagenum_w * 2.5;
  658. }
  659. }
  660. a.text-item-link{
  661. // float: left;
  662. position: absolute;
  663. top:0; left:0;
  664. // display: block;
  665. // width:1em; height:1em;
  666. font-size: 0.630em;
  667. .mdi{
  668. color: $bleuroi;
  669. pointer-events: none;
  670. }
  671. }
  672. // front page
  673. header{
  674. padding-top: $base-line;
  675. h1{
  676. @include teititlefrontblue;
  677. .initial{
  678. display: inline-block;
  679. text-transform: uppercase;
  680. font-size: 1.3em;
  681. line-height: $base-line*2;
  682. margin: $base-line/2 0;
  683. }
  684. }
  685. }
  686. .byline{
  687. text-align: center;
  688. font-style: italic;
  689. padding-bottom: 1em;
  690. }
  691. .docImprint{
  692. text-align: center;
  693. // padding-bottom: 1em;
  694. }
  695. .imprimatur{
  696. text-align: center;
  697. font-style: italic;
  698. padding-bottom: 1em;
  699. }
  700. figure{
  701. // outline: 1px solid red;
  702. background-color: $grisclair;
  703. margin:1em 0;
  704. img{
  705. width: 100%;
  706. }
  707. figcaption{
  708. @include fontcaption
  709. padding: 0.5em;
  710. }
  711. }
  712. ul{
  713. line-height: $base-line;
  714. margin-bottom: $base-line/2;
  715. }
  716. blockquote{
  717. margin: $base-line/2 1em;
  718. line-height: $base-line;
  719. p{
  720. margin: 0;
  721. }
  722. }
  723. }
  724. }
  725. }
  726. >nav{
  727. $pager_h:2em;
  728. display: flex;
  729. flex-direction: column;
  730. span.nav-title{ display:none; }
  731. section#toc{
  732. box-sizing: content-box;
  733. padding:0 0 1em 1.5em;
  734. height:calc(100% - #{$pager_h});
  735. overflow-x: hidden;
  736. overflow-y: auto;
  737. line-height: $base-line / 2;
  738. >ul{
  739. ul{
  740. li{
  741. ul{
  742. overflow: hidden;
  743. max-height: 1000px;
  744. transition: max-height 0.5s ease-in-out;
  745. // transform: scaleY(1);
  746. // transform-origin: top;
  747. // transition: transform 0.3s ease-in-out;
  748. &:not(.opened){
  749. // height:0;
  750. max-height:0;
  751. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  752. // transform: scaleY(0);
  753. }
  754. // &.opened{
  755. // border: 1px solid red;
  756. // }
  757. // padding-left: 1em;
  758. border-left: 0.5px solid $grisclair;
  759. // min-height: 1em;
  760. margin-bottom: 0em;
  761. li{
  762. // min-height: 1em;
  763. // border-left: 1px solid red;
  764. padding:0 0 0 1em;
  765. }
  766. }
  767. }
  768. }
  769. .toc-title{
  770. @include title4grey;
  771. &.active,
  772. &:hover{
  773. color:$grisfonce;
  774. font-weight: 600;
  775. }
  776. &.loaded{
  777. color:$grisfonce;
  778. }
  779. }
  780. // h2.toc-title{font-size: 0.882em;}
  781. // h3.toc-title{font-size: 0.882em;}
  782. // h4.toc-title{font-size: 0.882em;}
  783. // h5.toc-title{font-size: 0.882em;}
  784. // h6.toc-title{font-size: 0.882em;}
  785. // span.toc-title{font-size: 0.882em;}
  786. }
  787. }
  788. div#page-nav{
  789. height:$pager_h;
  790. overflow: hidden;
  791. box-sizing: content-box;
  792. padding:1em 0 0 1.5em;
  793. select{
  794. option{
  795. padding:0;
  796. }
  797. }
  798. }
  799. }
  800. // responsive
  801. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  802. position: relative;
  803. >nav{
  804. $top: 45px;
  805. z-index: 2;
  806. position: absolute;
  807. top:$top;
  808. right:0;
  809. background-color: #fff;
  810. width:percentage(10/$default_sum);
  811. box-sizing: border-box;
  812. padding-top: 1em;
  813. padding-bottom: 1em;
  814. height:calc(100% - #{$top});
  815. transform: translateX(100%);
  816. transition: transform 0.3s ease-in-out;
  817. span.nav-title{
  818. display: block;
  819. position: absolute;
  820. top:4.5em; left:-1.8em;
  821. transform: rotateZ(-90deg);
  822. transform-origin: center;
  823. @include fontsans;
  824. font-size: 0.600em;
  825. cursor: pointer;
  826. color: $bleuroi;
  827. svg{
  828. vertical-align: bottom;
  829. transform-origin: center;
  830. transform: scale(0.8) rotate(180deg);
  831. transition: transform 0.3s ease-in-out;
  832. path{
  833. fill: $bleuroi;
  834. }
  835. }
  836. }
  837. &.opened{
  838. box-shadow: -3px -3px 5px $grisclair;
  839. transform: translateX(0);
  840. span.nav-title{
  841. svg{
  842. transform: scale(0.7) rotate(0);
  843. }
  844. }
  845. }
  846. }
  847. }
  848. }
  849. #biblio{
  850. .router-link-active{
  851. font-weight: 600;
  852. }
  853. ul.item-list{
  854. margin:0;
  855. padding:0;
  856. li{
  857. padding:0;
  858. margin:0 0 1.5em 0;
  859. h2{
  860. margin:0;
  861. @include title2black;
  862. }
  863. p{
  864. margin:0;
  865. }
  866. }
  867. }
  868. }
  869. }
  870. footer[role="tools"]{
  871. $list-item-h: 7em;
  872. @mixin resultItem{
  873. box-sizing: border-box;
  874. // we are only on 10 colls as 2 are occupied by sides
  875. flex-basis: percentage(2/($default_sum - 2));
  876. max-height: $list-item-h;
  877. overflow: hidden;
  878. padding-bottom: 1em;
  879. padding-right: $default_gap;
  880. article{
  881. max-height: 100%;
  882. overflow: hidden;
  883. }
  884. article.item{
  885. h1{
  886. @include title3black;
  887. font-weight: 600;
  888. max-width: 95%;
  889. }
  890. h2{
  891. @include title3black;
  892. text-transform: none;
  893. }
  894. span{
  895. font-size: 0.882em;
  896. }
  897. // .preview{
  898. // font-size: 0.882em;
  899. // margin:0;
  900. // code{
  901. // @include fontserif;
  902. // background-color: lighten(desaturate($rouge,20%), 20%);
  903. // padding:0 0.2em;
  904. // }
  905. // }
  906. }
  907. }
  908. #history{
  909. z-index: 8;
  910. background-color: $or;
  911. padding:1.2em $side-padding;
  912. max-height: $list-item-h;
  913. @include accordeon-transition($list-item-h);
  914. >header{
  915. }
  916. .history-list{
  917. overflow-x: hidden;
  918. .wrapper{
  919. height:100%;
  920. // hidding the scrollbar
  921. overflow-y: auto;
  922. // width:calc(100% + 1em);
  923. padding-right: 1em;
  924. >ul{
  925. padding:0;
  926. display: flex;
  927. flex-direction: row;
  928. flex-wrap: wrap;
  929. }
  930. }
  931. li.item{
  932. @include resultItem;
  933. }
  934. }
  935. }
  936. #results{
  937. z-index: 9;
  938. background-color: $gris;
  939. padding:1.2em $side-padding;
  940. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  941. padding:1.2em $side-padding/2;
  942. }
  943. max-height: $list-item-h * 3;
  944. @include accordeon-transition($list-item-h * 3);
  945. >header{
  946. .search-keys{
  947. font-size: 0.756em;
  948. font-weight: 500;
  949. }
  950. .results-count{
  951. font-size: 0.756em;
  952. }
  953. }
  954. .results-list{
  955. overflow-x: hidden;
  956. .wrapper{
  957. position:relative;
  958. height:100%;
  959. // hidding the scrollbar
  960. overflow-y: auto;
  961. // width:calc(100% + 1em);
  962. padding-right: 1em;
  963. >ul{
  964. padding:0;
  965. display: flex;
  966. flex-direction: row;
  967. flex-wrap: wrap;
  968. }
  969. }
  970. li.result{
  971. @include resultItem;
  972. }
  973. .infinite-loading-container{
  974. // TODO: how to center the loading
  975. }
  976. }
  977. >header, section.results-list{
  978. transition: opacity 0.2s ease-in-out;
  979. }
  980. &.loading {
  981. >header, section.results-list{
  982. transition: opacity 0.5s ease-in-out;
  983. opacity:0.5;
  984. pointer-events: none;
  985. }
  986. }
  987. // responsive
  988. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  989. position: relative;
  990. >header{
  991. padding:0 0 1em 0;
  992. >*{
  993. display: inline-block;
  994. margin-right: 1em;
  995. }
  996. #sorting{
  997. width:10em;
  998. }
  999. }
  1000. >section.results-list{
  1001. max-height: 15em;
  1002. li.result{
  1003. flex-basis: 33%;
  1004. }
  1005. }
  1006. >nav{
  1007. position: absolute;
  1008. top:1.2em; right:1.2em;
  1009. }
  1010. }
  1011. }
  1012. #footer-bottom{
  1013. z-index: 10;
  1014. padding:0 $side-padding;
  1015. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1016. padding:0 $side-padding/2;
  1017. }
  1018. background-color: $bleuroi;
  1019. &>*{
  1020. // disable grid gap
  1021. padding-right: 0;
  1022. }
  1023. #footer-tabs{
  1024. ul{
  1025. padding:0; margin:0;
  1026. display: flex;
  1027. flex-direction: column;
  1028. li{
  1029. flex: 1 1 auto;
  1030. .wrapper{
  1031. box-sizing: border-box;
  1032. line-height: 0.6em;
  1033. height:2em;
  1034. width: calc(100% + $side-padding);
  1035. margin-left:-$side-padding;
  1036. padding:0.3em 0.5em 0.3em $side-padding;
  1037. }
  1038. &.history .wrapper{
  1039. background-color: $or;
  1040. }
  1041. &.results .wrapper{
  1042. background-color: $gris;
  1043. }
  1044. span{
  1045. font-size: 0.693em;
  1046. font-weight: 400;
  1047. text-transform: uppercase;
  1048. cursor: pointer;
  1049. @include fade-transition;
  1050. }
  1051. }
  1052. }
  1053. }
  1054. #search{
  1055. color: #fff;
  1056. background-color: $bleuroi;
  1057. form{
  1058. padding: 0;
  1059. // display: flex;
  1060. // flex-direction: row;
  1061. // flex-wrap: wrap;
  1062. fieldset{
  1063. padding:0.7em 1em;
  1064. border: none;
  1065. box-sizing:border-box;
  1066. // width correction as row is not the same width as others in the page
  1067. // flex-basis: percentage(2/($default_sum - 1));
  1068. // flex-basis: 17.667%;
  1069. // flex-basis: percentage(2 / 11);
  1070. &:not(:first-of-type){
  1071. border-left: 1px solid $grisclair;
  1072. }
  1073. }
  1074. fieldset.search{
  1075. display: inline-flex;
  1076. align-items: center;
  1077. >div{
  1078. width:80%;
  1079. vertical-align: middle;
  1080. }
  1081. label[for="keys"]{
  1082. display: none;
  1083. }
  1084. input[type="text"]{
  1085. padding:0em 0.3em;
  1086. margin:0 0 0.3em 0;
  1087. box-sizing: border-box;
  1088. font-size: 0.756em;
  1089. line-height: 1;
  1090. width:100%;
  1091. height:1.4em;
  1092. border:none;
  1093. border-radius: 2px;
  1094. }
  1095. span.mdi{
  1096. display: inline-block;
  1097. margin:0 0 0 0.5em;
  1098. font-size: 1.2em;
  1099. line-height:1.1;
  1100. vertical-align:middle;
  1101. width:1.2em; height:1.2em;
  1102. border-radius: 0.6em;
  1103. background-color: #fff;
  1104. color: $bleuroi;
  1105. text-align: center;
  1106. font-weight: 700;
  1107. cursor: pointer;
  1108. }
  1109. }
  1110. }
  1111. fieldset.filters{
  1112. .vs__actions{
  1113. // background-color: $grisclair;
  1114. align-items:baseline;
  1115. padding-top:0.2em;
  1116. }
  1117. }
  1118. form{
  1119. transition: opacity 0.2s ease-in-out;
  1120. }
  1121. &.loading{
  1122. form{
  1123. opacity:0.5;
  1124. transition: opacity 0.5s ease-in-out;
  1125. pointer-events: none;
  1126. }
  1127. }
  1128. // responsive
  1129. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1130. form{
  1131. fieldset{
  1132. &.search{
  1133. >div{
  1134. display: inline-flex;
  1135. flex-wrap: nowrap;
  1136. width:84%;
  1137. >*{
  1138. flex-basis: 45%;
  1139. margin: 0 0.5em 0 0;
  1140. // box-sizing: content-box;
  1141. // width:auto!important;
  1142. &#keys[type="text"]{
  1143. margin-right:1.5em;
  1144. }
  1145. }
  1146. }
  1147. span.mdi{
  1148. width:1em; height:1em;
  1149. margin-top: -0.1em;
  1150. margin-left: 0;
  1151. }
  1152. }
  1153. &.filters{
  1154. border-left: none;
  1155. flex-basis: 32%;
  1156. padding: 0.2em 0 1em 1em;
  1157. }
  1158. }
  1159. }
  1160. }
  1161. }
  1162. }
  1163. h2{
  1164. margin:0;
  1165. font-size: 0.756em;
  1166. font-weight: 400;
  1167. text-transform: uppercase;
  1168. padding:0;
  1169. }
  1170. }
  1171. // vue-select
  1172. .v-select{
  1173. padding:0;
  1174. div[role="combobox"]{
  1175. background-color: #fff;
  1176. padding:0;
  1177. border-radius: 2px;
  1178. border: none;
  1179. }
  1180. input[type="search"]{
  1181. margin:0;
  1182. padding:0;
  1183. -webkit-appearance:textfield;
  1184. -webkit-box-sizing:content-box;
  1185. }
  1186. input::-webkit-search-decoration,
  1187. input::-webkit-search-cancel-button {
  1188. display: none;
  1189. }
  1190. .vs__search{
  1191. &, &:focus{
  1192. font-size: 0.756em;
  1193. line-height: 1;
  1194. height:1.2em;
  1195. border:none;
  1196. box-sizing: border-box;
  1197. }
  1198. }
  1199. .vs__dropdown-toggle{
  1200. input::placeholder{background-color: #fff;}
  1201. }
  1202. .vs__selected-options{
  1203. background-color: #fff;
  1204. }
  1205. .vs__actions{
  1206. padding:1px 3px;
  1207. button.vs__clear{
  1208. line-height: 0.5;
  1209. // height:0;
  1210. }
  1211. svg[role="presentation"]{
  1212. transform: scale(0.8);
  1213. path{
  1214. fill: $bleuroi;
  1215. }
  1216. }
  1217. }
  1218. .vs__selected{
  1219. margin:0;
  1220. padding:0.2em 0;
  1221. line-height:1;
  1222. font-size: 0.756em;
  1223. background-color: #fff;
  1224. border:none;
  1225. align-items: middle;
  1226. box-sizing: content-box;
  1227. display: inline-block;
  1228. width: calc(100% - 12px);
  1229. // &>*:not(button){
  1230. // display: inline-block;
  1231. // width:70%;
  1232. // }
  1233. button{
  1234. svg{
  1235. transform: scale(0.8);
  1236. path{
  1237. fill: $bleuroi;
  1238. }
  1239. }
  1240. &.vs__deselect{
  1241. line-height: 0;
  1242. }
  1243. }
  1244. }
  1245. // border-radius: 2px;
  1246. // border: none;
  1247. }
  1248. ul[role="listbox"]{
  1249. @include fontsans;
  1250. padding:0;
  1251. margin:0;
  1252. border:none;
  1253. position: relative;
  1254. li{
  1255. box-sizing: content-box;
  1256. padding:0.3em;
  1257. margin:0;
  1258. font-size: 0.756em;
  1259. line-height: 1;
  1260. white-space: normal;
  1261. position: relative;
  1262. *{
  1263. max-width: 100%;
  1264. }
  1265. }
  1266. }
  1267. // ___
  1268. // |_ _|__ ___ _ _ ___
  1269. // | |/ _/ _ \ ' \(_-<
  1270. // |___\__\___/_||_/__/
  1271. span.mdi-close{
  1272. cursor: pointer;
  1273. }
  1274. @keyframes spin {
  1275. from {
  1276. transform:rotate(0deg);
  1277. }
  1278. to {
  1279. transform:rotate(360deg);
  1280. }
  1281. }
  1282. span.mdi-loading{
  1283. animation-name: spin;
  1284. animation-duration: 2000ms;
  1285. animation-iteration-count: infinite;
  1286. animation-timing-function: linear;
  1287. }
  1288. // _ _ _
  1289. // | | ___ __ _ __| (_)_ _ __ _
  1290. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1291. // |____\___/\__,_\__,_|_|_||_\__, |
  1292. // |___/
  1293. span.loading{
  1294. @include fontsans;
  1295. font-size: 0.756em;
  1296. color: $grisfonce;
  1297. animation: pulseloading 4s infinite;
  1298. }
  1299. @keyframes pulseloading{
  1300. 0% {
  1301. opacity: 1;
  1302. }
  1303. 50%{
  1304. opacity: 0;
  1305. }
  1306. 100% {
  1307. opacity: 1;
  1308. }
  1309. }