app.scss 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402
  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. // front page
  601. header{
  602. padding-top: $base-line;
  603. h1{
  604. @include teititlefrontblue;
  605. .initial{
  606. display: inline-block;
  607. text-transform: uppercase;
  608. font-size: 1.3em;
  609. line-height: $base-line*2;
  610. margin: $base-line/2 0;
  611. }
  612. margin-bottom: $base-line;
  613. }
  614. }
  615. span.metamark.tailpiece,
  616. span.metamark.simpleLine{
  617. display: block;
  618. border-top: 1px solid $gris;
  619. margin: $base-line / 2 auto;
  620. }
  621. .byline{
  622. text-align: center;
  623. font-style: italic;
  624. padding-bottom: 1em;
  625. }
  626. .docImprint{
  627. text-align: center;
  628. // padding-bottom: 1em;
  629. .pubPlace{
  630. display: block;
  631. }
  632. .publisher{
  633. display: block;
  634. }
  635. .docDate{
  636. display: block;
  637. margin-top: $base-line / 2;
  638. }
  639. }
  640. .imprimatur{
  641. text-align: center;
  642. font-style: italic;
  643. padding-bottom: $base-line;
  644. }
  645. >h1{
  646. @include teititle1blue;
  647. }
  648. span.placeName,
  649. span.objectName,
  650. span.persName{
  651. font-weight: 600;
  652. }
  653. h1{ font-size: 1.512em;
  654. line-height: $base-line; }
  655. p{
  656. margin-top: 0;
  657. font-size: 1.134em;
  658. line-height: $base-line;
  659. margin-bottom: $base-line / 2;
  660. span.persName,
  661. span.placeName,
  662. span.objectName{
  663. font-weight: 600;
  664. }
  665. a{
  666. font-weight: 600;
  667. &.active-link{
  668. color: $rouge;
  669. // text-decoration: underline;
  670. line-height: $base-line/2;
  671. }
  672. sup.mdi{
  673. font-size: 0.630em;
  674. vertical-align: super;
  675. // line-height: 0.1;
  676. padding: 0 0.2em;
  677. }
  678. }
  679. }
  680. span[role="pageNum"]{
  681. font-size: 16px;
  682. position: relative;
  683. float:right;
  684. width: $pagenum_w; height:$base-line/4;
  685. border-bottom: 1px solid $bleuroilight;
  686. border-right: 1px solid $bleuroilight;
  687. // outline: solid red thin;
  688. // margin-left:calc(100% - #{$pagenum_w * 2});
  689. // margin-left: 100%;
  690. margin-right: - $pagenum_w * 1.5;
  691. &:before{
  692. // outline: solid green thin;
  693. content:attr(data-num);
  694. font-size: 0.630em;
  695. line-height: $base-line/3;
  696. position: absolute;
  697. right: 0;
  698. top:$base-line/2;
  699. color: $bleuroi;
  700. // top:0;
  701. // width: $pagenum_w*2; height: $pagenum_w;
  702. // border-top: 1px solid $bleuroilight;
  703. // border-right: 1px solid $bleuroilight;
  704. // text-indent: $pagenum_w * 2.5;
  705. }
  706. }
  707. a.text-item-link{
  708. // float: left;
  709. position: absolute;
  710. top:0; left:0;
  711. // display: block;
  712. // width:1em; height:1em;
  713. font-size: 0.630em;
  714. .mdi{
  715. color: $bleuroi;
  716. pointer-events: none;
  717. }
  718. }
  719. figure{
  720. // outline: 1px solid red;
  721. background-color: $grisclair;
  722. margin:1em 0;
  723. img{
  724. width: 100%;
  725. }
  726. figcaption{
  727. @include fontcaption;
  728. padding: 0.5em;
  729. }
  730. }
  731. ul{
  732. line-height: $base-line;
  733. margin-bottom: $base-line/2;
  734. }
  735. blockquote{
  736. margin: $base-line/2 1em;
  737. line-height: $base-line;
  738. p{
  739. margin: 0;
  740. }
  741. }
  742. }
  743. }
  744. }
  745. >nav{
  746. $pager_h:2em;
  747. display: flex;
  748. flex-direction: column;
  749. span.nav-title{ display:none; }
  750. section#toc{
  751. box-sizing: content-box;
  752. padding:0 0 1em 1.5em;
  753. height:calc(100% - #{$pager_h});
  754. overflow-x: hidden;
  755. overflow-y: auto;
  756. line-height: $base-line / 2;
  757. >ul{
  758. ul{
  759. li{
  760. ul{
  761. overflow: hidden;
  762. max-height: 1000px;
  763. transition: max-height 0.5s ease-in-out;
  764. // transform: scaleY(1);
  765. // transform-origin: top;
  766. // transition: transform 0.3s ease-in-out;
  767. &:not(.opened){
  768. // height:0;
  769. max-height:0;
  770. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  771. // transform: scaleY(0);
  772. }
  773. // &.opened{
  774. // border: 1px solid red;
  775. // }
  776. // padding-left: 1em;
  777. border-left: 0.5px solid $grisclair;
  778. // min-height: 1em;
  779. margin-bottom: 0em;
  780. li{
  781. // min-height: 1em;
  782. // border-left: 1px solid red;
  783. padding:0 0 0 1em;
  784. }
  785. }
  786. }
  787. }
  788. .toc-title{
  789. @include title4grey;
  790. &.active,
  791. &:hover{
  792. color:$grisfonce;
  793. font-weight: 600;
  794. }
  795. &.loaded{
  796. color:$grisfonce;
  797. }
  798. }
  799. // h2.toc-title{font-size: 0.882em;}
  800. // h3.toc-title{font-size: 0.882em;}
  801. // h4.toc-title{font-size: 0.882em;}
  802. // h5.toc-title{font-size: 0.882em;}
  803. // h6.toc-title{font-size: 0.882em;}
  804. // span.toc-title{font-size: 0.882em;}
  805. }
  806. }
  807. div#page-nav{
  808. height:$pager_h;
  809. overflow: hidden;
  810. box-sizing: content-box;
  811. padding:1em 0 0 1.5em;
  812. select{
  813. option{
  814. padding:0;
  815. }
  816. }
  817. }
  818. }
  819. // responsive
  820. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  821. position: relative;
  822. >nav{
  823. $top: 45px;
  824. z-index: 2;
  825. position: absolute;
  826. top:$top;
  827. right:0;
  828. background-color: #fff;
  829. width:percentage(10/$default_sum);
  830. box-sizing: border-box;
  831. padding-top: 1em;
  832. padding-bottom: 1em;
  833. height:calc(100% - #{$top});
  834. transform: translateX(100%);
  835. transition: transform 0.3s ease-in-out;
  836. span.nav-title{
  837. display: block;
  838. position: absolute;
  839. top:4.5em; left:-1.8em;
  840. transform: rotateZ(-90deg);
  841. transform-origin: center;
  842. @include fontsans;
  843. font-size: 0.600em;
  844. cursor: pointer;
  845. color: $bleuroi;
  846. svg{
  847. vertical-align: bottom;
  848. transform-origin: center;
  849. transform: scale(0.8) rotate(180deg);
  850. transition: transform 0.3s ease-in-out;
  851. path{
  852. fill: $bleuroi;
  853. }
  854. }
  855. }
  856. &.opened{
  857. box-shadow: -3px -3px 5px $grisclair;
  858. transform: translateX(0);
  859. span.nav-title{
  860. svg{
  861. transform: scale(0.7) rotate(0);
  862. }
  863. }
  864. }
  865. }
  866. }
  867. }
  868. #biblio{
  869. .router-link-active{
  870. font-weight: 600;
  871. }
  872. ul.item-list{
  873. margin:0;
  874. padding:0;
  875. li{
  876. padding:0;
  877. margin:0 0 1.5em 0;
  878. h2{
  879. margin:0;
  880. @include title2black;
  881. }
  882. p{
  883. margin:0;
  884. }
  885. }
  886. }
  887. }
  888. }
  889. footer[role="tools"]{
  890. $list-item-h: 7em;
  891. @mixin resultItem{
  892. box-sizing: border-box;
  893. // we are only on 10 colls as 2 are occupied by sides
  894. flex-basis: percentage(2/($default_sum - 2));
  895. max-height: $list-item-h;
  896. overflow: hidden;
  897. padding-bottom: 1em;
  898. padding-right: $default_gap;
  899. article{
  900. max-height: 100%;
  901. overflow: hidden;
  902. }
  903. article.item{
  904. h1{
  905. @include title3black;
  906. font-weight: 600;
  907. max-width: 95%;
  908. }
  909. h2{
  910. @include title3black;
  911. text-transform: none;
  912. }
  913. span{
  914. font-size: 0.882em;
  915. }
  916. // .preview{
  917. // font-size: 0.882em;
  918. // margin:0;
  919. // code{
  920. // @include fontserif;
  921. // background-color: lighten(desaturate($rouge,20%), 20%);
  922. // padding:0 0.2em;
  923. // }
  924. // }
  925. }
  926. }
  927. #history{
  928. z-index: 8;
  929. background-color: $or;
  930. padding:1.2em $side-padding;
  931. max-height: $list-item-h;
  932. @include accordeon-transition($list-item-h);
  933. >header{
  934. }
  935. .history-list{
  936. overflow-x: hidden;
  937. .wrapper{
  938. height:100%;
  939. // hidding the scrollbar
  940. overflow-y: auto;
  941. // width:calc(100% + 1em);
  942. padding-right: 1em;
  943. >ul{
  944. padding:0;
  945. display: flex;
  946. flex-direction: row;
  947. flex-wrap: wrap;
  948. }
  949. }
  950. li.item{
  951. @include resultItem;
  952. }
  953. }
  954. }
  955. #results{
  956. z-index: 9;
  957. background-color: $gris;
  958. padding:1.2em $side-padding;
  959. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  960. padding:1.2em $side-padding/2;
  961. }
  962. max-height: $list-item-h * 3;
  963. @include accordeon-transition($list-item-h * 3);
  964. >header{
  965. .search-keys{
  966. font-size: 0.756em;
  967. font-weight: 500;
  968. }
  969. .results-count{
  970. font-size: 0.756em;
  971. }
  972. }
  973. .results-list{
  974. overflow-x: hidden;
  975. .wrapper{
  976. position:relative;
  977. height:100%;
  978. // hidding the scrollbar
  979. overflow-y: auto;
  980. // width:calc(100% + 1em);
  981. padding-right: 1em;
  982. >ul{
  983. padding:0;
  984. display: flex;
  985. flex-direction: row;
  986. flex-wrap: wrap;
  987. }
  988. }
  989. li.result{
  990. @include resultItem;
  991. }
  992. .infinite-loading-container{
  993. // TODO: how to center the loading
  994. }
  995. }
  996. >header, section.results-list{
  997. transition: opacity 0.2s ease-in-out;
  998. }
  999. &.loading {
  1000. >header, section.results-list{
  1001. transition: opacity 0.5s ease-in-out;
  1002. opacity:0.5;
  1003. pointer-events: none;
  1004. }
  1005. }
  1006. // responsive
  1007. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1008. position: relative;
  1009. >header{
  1010. padding:0 0 1em 0;
  1011. >*{
  1012. display: inline-block;
  1013. margin-right: 1em;
  1014. }
  1015. #sorting{
  1016. width:10em;
  1017. }
  1018. }
  1019. >section.results-list{
  1020. max-height: 15em;
  1021. li.result{
  1022. flex-basis: 33%;
  1023. }
  1024. }
  1025. >nav{
  1026. position: absolute;
  1027. top:1.2em; right:1.2em;
  1028. }
  1029. }
  1030. }
  1031. #footer-bottom{
  1032. z-index: 10;
  1033. padding:0 $side-padding;
  1034. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1035. padding:0 $side-padding/2;
  1036. }
  1037. background-color: $bleuroi;
  1038. &>*{
  1039. // disable grid gap
  1040. padding-right: 0;
  1041. }
  1042. #footer-tabs{
  1043. ul{
  1044. padding:0; margin:0;
  1045. display: flex;
  1046. flex-direction: column;
  1047. li{
  1048. flex: 1 1 auto;
  1049. .wrapper{
  1050. box-sizing: border-box;
  1051. line-height: 0.6em;
  1052. height:2em;
  1053. width: calc(100% + $side-padding);
  1054. margin-left:-$side-padding;
  1055. padding:0.3em 0.5em 0.3em $side-padding;
  1056. }
  1057. &.history .wrapper{
  1058. background-color: $or;
  1059. }
  1060. &.results .wrapper{
  1061. background-color: $gris;
  1062. }
  1063. span{
  1064. font-size: 0.693em;
  1065. font-weight: 400;
  1066. text-transform: uppercase;
  1067. cursor: pointer;
  1068. @include fade-transition;
  1069. }
  1070. }
  1071. }
  1072. }
  1073. #search{
  1074. color: #fff;
  1075. background-color: $bleuroi;
  1076. form{
  1077. padding: 0;
  1078. // display: flex;
  1079. // flex-direction: row;
  1080. // flex-wrap: wrap;
  1081. fieldset{
  1082. padding:0.7em 1em;
  1083. border: none;
  1084. box-sizing:border-box;
  1085. // width correction as row is not the same width as others in the page
  1086. // flex-basis: percentage(2/($default_sum - 1));
  1087. // flex-basis: 17.667%;
  1088. // flex-basis: percentage(2 / 11);
  1089. &:not(:first-of-type){
  1090. border-left: 1px solid $grisclair;
  1091. }
  1092. }
  1093. fieldset.search{
  1094. display: inline-flex;
  1095. align-items: center;
  1096. >div{
  1097. width:80%;
  1098. vertical-align: middle;
  1099. }
  1100. label[for="keys"]{
  1101. display: none;
  1102. }
  1103. input[type="text"]{
  1104. padding:0em 0.3em;
  1105. margin:0 0 0.3em 0;
  1106. box-sizing: border-box;
  1107. font-size: 0.756em;
  1108. line-height: 1;
  1109. width:100%;
  1110. height:1.4em;
  1111. border:none;
  1112. border-radius: 2px;
  1113. }
  1114. span.mdi{
  1115. display: inline-block;
  1116. margin:0 0 0 0.5em;
  1117. font-size: 1.2em;
  1118. line-height:1.1;
  1119. vertical-align:middle;
  1120. width:1.2em; height:1.2em;
  1121. border-radius: 0.6em;
  1122. background-color: #fff;
  1123. color: $bleuroi;
  1124. text-align: center;
  1125. font-weight: 700;
  1126. cursor: pointer;
  1127. }
  1128. }
  1129. }
  1130. fieldset.filters{
  1131. .vs__actions{
  1132. // background-color: $grisclair;
  1133. align-items:baseline;
  1134. padding-top:0.2em;
  1135. }
  1136. }
  1137. form{
  1138. transition: opacity 0.2s ease-in-out;
  1139. }
  1140. &.loading{
  1141. form{
  1142. opacity:0.5;
  1143. transition: opacity 0.5s ease-in-out;
  1144. pointer-events: none;
  1145. }
  1146. }
  1147. // responsive
  1148. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1149. form{
  1150. fieldset{
  1151. &.search{
  1152. >div{
  1153. display: inline-flex;
  1154. flex-wrap: nowrap;
  1155. width:84%;
  1156. >*{
  1157. flex-basis: 45%;
  1158. margin: 0 0.5em 0 0;
  1159. // box-sizing: content-box;
  1160. // width:auto!important;
  1161. &#keys[type="text"]{
  1162. margin-right:1.5em;
  1163. }
  1164. }
  1165. }
  1166. span.mdi{
  1167. width:1em; height:1em;
  1168. margin-top: -0.1em;
  1169. margin-left: 0;
  1170. }
  1171. }
  1172. &.filters{
  1173. border-left: none;
  1174. flex-basis: 32%;
  1175. padding: 0.2em 0 1em 1em;
  1176. }
  1177. }
  1178. }
  1179. }
  1180. }
  1181. }
  1182. h2{
  1183. margin:0;
  1184. font-size: 0.756em;
  1185. font-weight: 400;
  1186. text-transform: uppercase;
  1187. padding:0;
  1188. }
  1189. }
  1190. // vue-select
  1191. .v-select{
  1192. padding:0;
  1193. div[role="combobox"]{
  1194. background-color: #fff;
  1195. padding:0;
  1196. border-radius: 2px;
  1197. border: none;
  1198. }
  1199. input[type="search"]{
  1200. margin:0;
  1201. padding:0;
  1202. -webkit-appearance:textfield;
  1203. -webkit-box-sizing:content-box;
  1204. }
  1205. input::-webkit-search-decoration,
  1206. input::-webkit-search-cancel-button {
  1207. display: none;
  1208. }
  1209. .vs__search{
  1210. &, &:focus{
  1211. font-size: 0.756em;
  1212. line-height: 1;
  1213. height:1.2em;
  1214. border:none;
  1215. box-sizing: border-box;
  1216. }
  1217. }
  1218. .vs__dropdown-toggle{
  1219. input::placeholder{background-color: #fff;}
  1220. }
  1221. .vs__selected-options{
  1222. background-color: #fff;
  1223. }
  1224. .vs__actions{
  1225. padding:1px 3px;
  1226. button.vs__clear{
  1227. line-height: 0.5;
  1228. // height:0;
  1229. }
  1230. svg[role="presentation"]{
  1231. transform: scale(0.8);
  1232. path{
  1233. fill: $bleuroi;
  1234. }
  1235. }
  1236. }
  1237. .vs__selected{
  1238. margin:0;
  1239. padding:0.2em 0;
  1240. line-height:1;
  1241. font-size: 0.756em;
  1242. background-color: #fff;
  1243. border:none;
  1244. align-items: middle;
  1245. box-sizing: content-box;
  1246. display: inline-block;
  1247. width: calc(100% - 12px);
  1248. // &>*:not(button){
  1249. // display: inline-block;
  1250. // width:70%;
  1251. // }
  1252. button{
  1253. svg{
  1254. transform: scale(0.8);
  1255. path{
  1256. fill: $bleuroi;
  1257. }
  1258. }
  1259. &.vs__deselect{
  1260. line-height: 0;
  1261. }
  1262. }
  1263. }
  1264. // border-radius: 2px;
  1265. // border: none;
  1266. }
  1267. ul[role="listbox"]{
  1268. @include fontsans;
  1269. padding:0;
  1270. margin:0;
  1271. border:none;
  1272. position: relative;
  1273. li{
  1274. box-sizing: content-box;
  1275. padding:0.3em;
  1276. margin:0;
  1277. font-size: 0.756em;
  1278. line-height: 1;
  1279. white-space: normal;
  1280. position: relative;
  1281. *{
  1282. max-width: 100%;
  1283. }
  1284. }
  1285. }
  1286. // ___
  1287. // |_ _|__ ___ _ _ ___
  1288. // | |/ _/ _ \ ' \(_-<
  1289. // |___\__\___/_||_/__/
  1290. span.mdi-close{
  1291. cursor: pointer;
  1292. }
  1293. @keyframes spin {
  1294. from {
  1295. transform:rotate(0deg);
  1296. }
  1297. to {
  1298. transform:rotate(360deg);
  1299. }
  1300. }
  1301. span.mdi-loading{
  1302. animation-name: spin;
  1303. animation-duration: 2000ms;
  1304. animation-iteration-count: infinite;
  1305. animation-timing-function: linear;
  1306. }
  1307. // _ _ _
  1308. // | | ___ __ _ __| (_)_ _ __ _
  1309. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1310. // |____\___/\__,_\__,_|_|_||_\__, |
  1311. // |___/
  1312. span.loading{
  1313. @include fontsans;
  1314. font-size: 0.756em;
  1315. color: $grisfonce;
  1316. animation: pulseloading 4s infinite;
  1317. }
  1318. @keyframes pulseloading{
  1319. 0% {
  1320. opacity: 1;
  1321. }
  1322. 50%{
  1323. opacity: 0;
  1324. }
  1325. 100% {
  1326. opacity: 1;
  1327. }
  1328. }