app.scss 31 KB

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