app.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid-flex';
  5. @import './base/layout';
  6. @import './base/fonts';
  7. @import './base/transitions';
  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. }
  29. #root{
  30. }
  31. .red{
  32. background-color: red;
  33. color:white;
  34. }
  35. header[role="banner"]{
  36. div.wrapper{
  37. display: grid;
  38. grid-template-columns: 1fr 1fr;
  39. }
  40. h1.site-title{
  41. grid-column: 1;
  42. margin:0;
  43. font-size: 1em;
  44. }
  45. nav#header-menu{
  46. grid-column: 2;
  47. text-align: right;
  48. >ul>li{
  49. display: inline-block;
  50. margin-right: 1em;
  51. position: relative;
  52. >ul{
  53. position: absolute;
  54. top:1em; right:-1em;
  55. overflow: hidden;
  56. padding-bottom: 0.5em;
  57. background-color: white;
  58. >li{
  59. padding:0 1em;
  60. // margin-right: -1em;
  61. transition: height 0.3s ease-in-out;
  62. height:0;
  63. overflow: hidden;
  64. }
  65. }
  66. &:hover{
  67. >ul>li{
  68. height:1em;
  69. }
  70. }
  71. }
  72. li>span,li>a{
  73. font-size: 0.9em;
  74. color: $bleuroi;
  75. text-transform: uppercase;
  76. }
  77. }
  78. }
  79. section[role="main-content"]{
  80. #home{
  81. header{
  82. text-align: center;
  83. h1{
  84. color: $bleuroi;
  85. font-size: 8em;
  86. font-weight: 300;
  87. margin:15vh 0 0;
  88. }
  89. h2{
  90. color: $or;
  91. font-size: 2em;
  92. font-weight: 300;
  93. margin:1em 0 0;
  94. text-transform: uppercase;
  95. letter-spacing: 0.2em;
  96. sup{
  97. // line-height: 5em;
  98. vertical-align:text-top;
  99. font-size: 0.7em
  100. }
  101. }
  102. }
  103. $filet_space:8em;
  104. $decallage: 0.5em;
  105. section{
  106. padding-top: $filet_space;
  107. }
  108. div.teasers{
  109. display: flex;
  110. flex-direction: row;
  111. flex-wrap: nowrap;
  112. position: relative;
  113. padding-right: 0;
  114. article{
  115. box-sizing: border-box;
  116. flex-basis: percentage(2 / ( $default_sum - 6) );
  117. padding-right: $default_gap;
  118. @include fontsans;
  119. h1{
  120. color: $bleuroi;
  121. }
  122. p{
  123. font-size: 0.882em;
  124. line-height: 1.2;
  125. }
  126. span{
  127. color:$rouge;
  128. font-size:0.693em;
  129. }
  130. }
  131. // filets decoratif
  132. &:before, &:after{
  133. z-index: 0;
  134. content: "";
  135. position: absolute;
  136. opacity: 0.4;
  137. }
  138. &:before{
  139. border:1px solid $or;
  140. width:calc(100% + #{$filet_space*2 + $decallage*2});
  141. left:- $filet_space - $default_gap/2 -$decallage;
  142. height:calc(100% + #{$filet_space});
  143. top:- $filet_space / 2;
  144. }
  145. &:after{
  146. border:1px solid $rouge;
  147. width:calc(100% + #{$filet_space*2});
  148. left:- $filet_space - $default_gap/2;
  149. height:calc(100% + #{$filet_space + $decallage*2});
  150. top:- $filet_space / 2 - $decallage;
  151. }
  152. }
  153. }
  154. #list-corpus, .index{
  155. >header>h1{
  156. font-family: "noto_sans";
  157. color: $rouge;
  158. font-weight: 400;
  159. }
  160. article.item{
  161. margin: 2em 0 0;
  162. header h1{
  163. font-size: 1.512em;
  164. color: $bleuroi;
  165. font-weight: 400;
  166. margin:0;
  167. }
  168. }
  169. ul.item-list{
  170. li{
  171. margin: 0 0 2em 0;
  172. header{
  173. h2{
  174. margin:0.4em 0 0.2em;
  175. @include title1blue;
  176. }
  177. h3{
  178. margin:0.2em 0;
  179. @include fontsans;
  180. font-size: 0.756em;
  181. font-weight: 500;
  182. }
  183. margin-bottom: 0.3em;
  184. }
  185. section.editions{
  186. div.editions{
  187. ol{
  188. padding:0;
  189. li{
  190. margin:0.7em 1em;
  191. }
  192. }
  193. }
  194. }
  195. h4{
  196. margin:0.1em 0;
  197. font-weight: 300;
  198. @include fontsans;
  199. font-size: 0.756em;
  200. &.texts-quantity{
  201. color: $rouge;
  202. // &:after{
  203. // content: ">>";
  204. // margin:0 0 0 0.5em;
  205. // }
  206. }
  207. }
  208. ul {
  209. li{
  210. margin:0 0 0 1em;
  211. h3{
  212. margin: 0.5em 0;
  213. font-weight: 400;
  214. font-size: 1em;
  215. }
  216. }
  217. }
  218. }
  219. }
  220. }
  221. #corpus{
  222. }
  223. .index{
  224. }
  225. .index-item{
  226. header{
  227. h1{
  228. @include title2black;
  229. }
  230. }
  231. .occurences{
  232. >ul{
  233. >li{
  234. padding:0 0 2em 0;
  235. h3{
  236. @include title1black;
  237. padding:0 0 1em 0;
  238. }
  239. >ul{
  240. >li{
  241. padding:0 0 1em 0;
  242. section{
  243. h4{
  244. @include title2black;
  245. display: inline-block;
  246. }
  247. span.open-close{
  248. cursor: pointer;
  249. display: inline-block;
  250. svg{
  251. transform: rotate(-90deg) scale(0.8);
  252. transition: transform 0.3s ease-in-out;
  253. path{
  254. fill:$bleuroi;
  255. }
  256. }
  257. }
  258. div.text{
  259. max-height: 0;
  260. transition: max-height 0.3s ease-in-out;
  261. overflow: hidden;
  262. box-sizing: content-box;
  263. p, h1, h2, h3, h4, h5, h6{
  264. margin: 0.5em 0 0 0;
  265. }
  266. }
  267. a.lire-plus{
  268. color: $bleuroi;
  269. opacity: 0;
  270. display: inline-block;
  271. height: 0;
  272. overflow: hidden;
  273. transition: height, opacity 0.3s ease-in-out;
  274. }
  275. &.opened{
  276. span.open-close{
  277. cursor: pointer;
  278. display: inline-block;
  279. svg{
  280. transform: scale(0.8) rotate(0);
  281. }
  282. }
  283. div.text{
  284. max-height:100px;
  285. }
  286. a.lire-plus{
  287. opacity: 1;
  288. height:1em;
  289. }
  290. }
  291. }
  292. }
  293. }
  294. }
  295. }
  296. }
  297. }
  298. #edition{
  299. header{
  300. position: relative;
  301. h1{
  302. @include title1black;
  303. }
  304. aside.index-tooltip{
  305. z-index:10;
  306. margin-top: -1.75em;
  307. position:absolute;
  308. text-align: right;
  309. right: 2em;
  310. h1 {
  311. @include title2black;
  312. margin:0 0 0.5em 0;
  313. }
  314. p{
  315. margin:0 0 0.5em 0;
  316. }
  317. time{
  318. font-weight: 600;
  319. }
  320. }
  321. }
  322. >section{
  323. div#text{
  324. .infinite-loading-container{
  325. height:0;
  326. overflow: hidden;
  327. }
  328. div.tei{
  329. border-left: 1px dotted $grisclair;
  330. padding-left: 1em;
  331. &.active{
  332. border-left: 1px dotted $grisfonce;
  333. }
  334. >h1{@include title1blue;}
  335. span.placeName,
  336. span.objectName,
  337. span.persName{
  338. font-weight: 600;
  339. }
  340. }
  341. }
  342. }
  343. >nav{
  344. padding-bottom: 0;
  345. $pager_h:2em;
  346. section#toc{
  347. box-sizing: content-box;
  348. padding:0 0 1em 1.5em;
  349. height:calc(100% - #{$pager_h});
  350. overflow-x: hidden;
  351. overflow-y: auto;
  352. >ul{
  353. ul{
  354. li{
  355. ul{
  356. overflow: hidden;
  357. max-height: 1000px;
  358. transition: max-height 0.5s ease-in-out;
  359. // transform: scaleY(1);
  360. // transform-origin: top;
  361. // transition: transform 0.3s ease-in-out;
  362. &:not(.opened){
  363. // height:0;
  364. max-height:0;
  365. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  366. // transform: scaleY(0);
  367. }
  368. // &.opened{
  369. // border: 1px solid red;
  370. // }
  371. // padding-left: 1em;
  372. border-left: 0.5px solid $grisclair;
  373. // min-height: 1em;
  374. margin-bottom: 0em;
  375. li{
  376. // min-height: 1em;
  377. // border-left: 1px solid red;
  378. padding:0 0 0.2em 1em;
  379. }
  380. }
  381. }
  382. }
  383. .toc-title{
  384. color: $gris;
  385. font-weight: 400;
  386. margin:0;
  387. &.active,
  388. &:hover{
  389. color:$grisfonce;
  390. font-weight: 600;
  391. }
  392. &.loaded{
  393. color:$grisfonce;
  394. }
  395. }
  396. h2.toc-title{font-size: 0.882em;}
  397. h3.toc-title{font-size: 0.882em;}
  398. h4.toc-title{font-size: 0.882em;}
  399. h5.toc-title{font-size: 0.882em;}
  400. h6.toc-title{font-size: 0.882em;}
  401. span.toc-title{font-size: 0.882em;}
  402. }
  403. }
  404. div#page-nav{
  405. height:$pager_h;
  406. overflow: hidden;
  407. box-sizing: content-box;
  408. padding:0 1.5em;
  409. select{
  410. option{
  411. padding:0;
  412. }
  413. }
  414. }
  415. }
  416. }
  417. #text{
  418. .tei{
  419. width: 93%;
  420. h1{
  421. font-size: 1.512em;
  422. }
  423. p{
  424. margin-top: 0;
  425. font-size: 1.134em;
  426. line-height: 1.5;
  427. span.persName,
  428. span.placeName,
  429. span.objectName{
  430. font-weight: 600;
  431. }
  432. a{
  433. font-weight: 600;
  434. &.active-link{
  435. color: $rouge;
  436. // text-decoration: underline;
  437. }
  438. sup.mdi{
  439. font-size: 0.630em;
  440. vertical-align: super;
  441. // line-height: 0.1;
  442. padding: 0 0.2em;
  443. }
  444. }
  445. }
  446. }
  447. // <span role=\"pageBreak\" data-num=\"15\"></span>
  448. // span[role="pageBreak"]{
  449. // display: inline-block;
  450. // border-left: 1px solid $bleuroi;
  451. // height:1.4em;
  452. // // word-spacing: 0;
  453. // margin: 0 0.3em;
  454. // line-height: 3;
  455. // position: relative;
  456. // vertical-align: bottom;
  457. // &:after, &:before{
  458. // content: '';
  459. // display: block;
  460. // width:0.5em;
  461. // position: absolute;
  462. // }
  463. // &:after{
  464. // top:0;
  465. // left:0;
  466. // border-top: 1px solid $bleuroi;
  467. // }
  468. // &:before{
  469. // bottom:0;
  470. // right:0;
  471. // border-bottom: 1px solid $bleuroi;
  472. // }
  473. // }
  474. span[role="pageNum"]{
  475. // display:inline;
  476. position: relative;
  477. float:right;
  478. // position: sticky;
  479. $w:0.5em;
  480. width:$w; height:0;
  481. margin-left:calc(100% - (#{$w} * 0.5));
  482. // &:before
  483. &:after{
  484. // display: block;
  485. position: absolute;
  486. font-size: 0.630em;
  487. width:$w; height:$w*2;
  488. line-height: $w*1.7;
  489. padding-left: 1em;
  490. border-right: 1px solid $bleuroilight;
  491. color: $bleuroi;
  492. text-indent: $w + 0.5em;
  493. }
  494. // &:before{
  495. // content:attr(data-num-prev);
  496. // border-bottom: 1px solid $bleuroilight;
  497. // bottom: 0.1em;
  498. // }
  499. &:after{
  500. content:attr(data-num);
  501. border-top: 1px solid $bleuroilight;
  502. // bottom:1.3em;
  503. }
  504. }
  505. }
  506. #biblio{
  507. .router-link-active{
  508. font-weight: 600;
  509. }
  510. ul.item-list{
  511. margin:0;
  512. padding:0;
  513. li{
  514. padding:0;
  515. margin:0 0 1.5em 0;
  516. h2{
  517. margin:0;
  518. @include title2black;
  519. }
  520. p{
  521. margin:0;
  522. }
  523. }
  524. }
  525. }
  526. }
  527. footer[role="tools"]{
  528. $list-item-h: 7em;
  529. @mixin resultItem{
  530. box-sizing: border-box;
  531. // we are only on 10 colls as 2 are occupied by sides
  532. flex-basis: percentage(2/($default_sum - 2));
  533. max-height: $list-item-h;
  534. overflow: hidden;
  535. padding-bottom: 1em;
  536. padding-right: $default_gap;
  537. article{
  538. max-height: 100%;
  539. overflow: hidden;
  540. }
  541. article.item{
  542. h1{
  543. @include title3black;
  544. font-weight: 600;
  545. max-width: 95%;
  546. }
  547. h2{
  548. @include title3black;
  549. text-transform: none;
  550. }
  551. span{
  552. font-size: 0.882em;
  553. }
  554. // .preview{
  555. // font-size: 0.882em;
  556. // margin:0;
  557. // code{
  558. // @include fontserif;
  559. // background-color: lighten(desaturate($rouge,20%), 20%);
  560. // padding:0 0.2em;
  561. // }
  562. // }
  563. }
  564. }
  565. #history{
  566. z-index: 8;
  567. background-color: $or;
  568. padding:1.2em $side-padding;
  569. max-height: $list-item-h;
  570. @include accordeon-transition($list-item-h);
  571. >header{
  572. }
  573. .history-list{
  574. overflow-x: hidden;
  575. .wrapper{
  576. height:100%;
  577. // hidding the scrollbar
  578. overflow-y: auto;
  579. // width:calc(100% + 1em);
  580. padding-right: 1em;
  581. >ul{
  582. padding:0;
  583. display: flex;
  584. flex-direction: row;
  585. flex-wrap: wrap;
  586. }
  587. }
  588. li.item{
  589. @include resultItem;
  590. }
  591. }
  592. }
  593. #results{
  594. z-index: 9;
  595. background-color: $gris;
  596. padding:1.2em $side-padding;
  597. max-height: $list-item-h * 3;
  598. @include accordeon-transition($list-item-h * 3);
  599. >header{
  600. .search-keys{
  601. font-size: 0.756em;
  602. font-weight: 500;
  603. }
  604. .results-count{
  605. font-size: 0.756em;
  606. }
  607. }
  608. .results-list{
  609. overflow-x: hidden;
  610. .wrapper{
  611. position:relative;
  612. height:100%;
  613. // hidding the scrollbar
  614. overflow-y: auto;
  615. // width:calc(100% + 1em);
  616. padding-right: 1em;
  617. >ul{
  618. padding:0;
  619. display: flex;
  620. flex-direction: row;
  621. flex-wrap: wrap;
  622. }
  623. }
  624. li.result{
  625. @include resultItem;
  626. }
  627. .infinite-loading-container{
  628. // TODO: how to center the loading
  629. }
  630. }
  631. >header, section.results-list{
  632. transition: opacity 0.2s ease-in-out;
  633. }
  634. &.loading {
  635. >header, section.results-list{
  636. transition: opacity 0.5s ease-in-out;
  637. opacity:0.5;
  638. pointer-events: none;
  639. }
  640. }
  641. }
  642. #footer-bottom{
  643. z-index: 10;
  644. padding:0 $side-padding;
  645. background-color: $bleuroi;
  646. &>*{
  647. // disable grid gap
  648. padding-right: 0;
  649. }
  650. #footer-tabs{
  651. ul{
  652. padding:0; margin:0;
  653. display: flex;
  654. flex-direction: column;
  655. li{
  656. flex: 1 1 auto;
  657. .wrapper{
  658. box-sizing: border-box;
  659. line-height: 0.6em;
  660. height:2em;
  661. width: calc(100% + $side-padding);
  662. margin-left:-$side-padding;
  663. padding:0.3em 0.5em 0.3em $side-padding;
  664. }
  665. &.history .wrapper{
  666. background-color: $or;
  667. }
  668. &.results .wrapper{
  669. background-color: $gris;
  670. }
  671. span{
  672. font-size: 0.693em;
  673. font-weight: 400;
  674. text-transform: uppercase;
  675. cursor: pointer;
  676. @include fade-transition;
  677. }
  678. }
  679. }
  680. }
  681. #search{
  682. color: #fff;
  683. background-color: $bleuroi;
  684. form{
  685. padding: 0;
  686. // display: flex;
  687. // flex-direction: row;
  688. // flex-wrap: wrap;
  689. fieldset{
  690. padding:0.7em 1em;
  691. border: none;
  692. box-sizing:border-box;
  693. // width correction as row is not the same width as others in the page
  694. // flex-basis: percentage(2/($default_sum - 1));
  695. flex-basis: 17.667%;
  696. // flex-basis: percentage(2 / 11);
  697. &:not(:first-of-type){
  698. border-left: 1px solid $grisclair;
  699. }
  700. }
  701. fieldset.search{
  702. display: inline-flex;
  703. >div{
  704. width:80%;
  705. vertical-align: middle;
  706. }
  707. label[for="keys"]{
  708. display: none;
  709. }
  710. input[type="text"]{
  711. padding:0.3em;
  712. margin:0 0 0.3em 0;
  713. box-sizing: border-box;
  714. font-size: 0.756em;
  715. line-height: 1;
  716. width:100%;
  717. height:1.2em;
  718. border:none;
  719. border-radius: 2px;
  720. }
  721. span.mdi{
  722. display: inline-block;
  723. margin:0 0 0 0.5em;
  724. font-size: 1.2em;
  725. line-height:1.1;
  726. vertical-align:middle;
  727. width:1.2em; height:1.2em;
  728. border-radius: 0.6em;
  729. background-color: #fff;
  730. color: $bleuroi;
  731. text-align: center;
  732. font-weight: 700;
  733. cursor: pointer;
  734. }
  735. }
  736. }
  737. fieldset.filters{
  738. .vs__actions{
  739. background-color: $grisclair;
  740. align-items:baseline;
  741. padding-top:0.2em;
  742. }
  743. }
  744. form{
  745. transition: opacity 0.2s ease-in-out;
  746. }
  747. &.loading{
  748. form{
  749. opacity:0.5;
  750. transition: opacity 0.5s ease-in-out;
  751. pointer-events: none;
  752. }
  753. }
  754. }
  755. }
  756. h2{
  757. margin:0;
  758. font-size: 0.756em;
  759. font-weight: 400;
  760. text-transform: uppercase;
  761. padding:0;
  762. }
  763. }
  764. // vue-select
  765. .v-select{
  766. padding:0;
  767. div[role="combobox"]{
  768. background-color: #fff;
  769. padding:0;
  770. border-radius: 2px;
  771. border: none;
  772. }
  773. input[type="search"]{
  774. margin:0;
  775. padding:0;
  776. }
  777. .vs__search{
  778. &, &:focus{
  779. font-size: 0.756em;
  780. line-height: 1;
  781. height:1.2em;
  782. border:none;
  783. box-sizing: border-box;
  784. }
  785. }
  786. .vs__actions{
  787. padding:1px 3px;
  788. svg[role="presentation"]{
  789. transform: scale(0.8);
  790. path{
  791. fill: $bleuroi;
  792. }
  793. }
  794. }
  795. .vs__selected{
  796. margin:0;
  797. padding:0.2em 0;
  798. line-height:1;
  799. font-size: 0.756em;
  800. background-color: #fff;
  801. border:none;
  802. align-items: middle;
  803. box-sizing: content-box;
  804. display: inline-block;
  805. width: calc(100% - 12px);
  806. // &>*:not(button){
  807. // display: inline-block;
  808. // width:70%;
  809. // }
  810. button{
  811. svg{
  812. transform: scale(0.8);
  813. path{
  814. fill: $bleuroi;
  815. }
  816. }
  817. &.vs__deselect{
  818. line-height: 0;
  819. }
  820. }
  821. }
  822. // border-radius: 2px;
  823. // border: none;
  824. }
  825. ul[role="listbox"]{
  826. @include fontsans;
  827. padding:0;
  828. margin:0;
  829. border:none;
  830. position: relative;
  831. li{
  832. box-sizing: content-box;
  833. padding:0.3em;
  834. margin:0;
  835. font-size: 0.756em;
  836. line-height: 1;
  837. white-space: normal;
  838. position: relative;
  839. *{
  840. max-width: 100%;
  841. }
  842. }
  843. }
  844. // ___
  845. // |_ _|__ ___ _ _ ___
  846. // | |/ _/ _ \ ' \(_-<
  847. // |___\__\___/_||_/__/
  848. span.mdi-close{
  849. cursor: pointer;
  850. }
  851. @keyframes spin {
  852. from {
  853. transform:rotate(0deg);
  854. }
  855. to {
  856. transform:rotate(360deg);
  857. }
  858. }
  859. span.mdi-loading{
  860. animation-name: spin;
  861. animation-duration: 2000ms;
  862. animation-iteration-count: infinite;
  863. animation-timing-function: linear;
  864. }