app.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  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:block;
  450. position: relative;
  451. $w:3em;
  452. width:$w; height:0;
  453. margin-left:calc(100% - (#{$w} * 0.5));
  454. &:before, &:after{
  455. display: block;
  456. position: absolute;
  457. font-size: 0.630em;
  458. width:$w; height:$w;
  459. line-height: $w *0.95;
  460. padding-left: 1em;
  461. border-right: 1px solid $bleuroilight;
  462. color: $bleuroi;
  463. text-indent: $w + 0.5em;
  464. }
  465. &:before{
  466. content:attr(data-num-prev);
  467. border-bottom: 1px solid $bleuroilight;
  468. bottom: 0.1em;
  469. }
  470. &:after{
  471. content:attr(data-num);
  472. border-top: 1px solid $bleuroilight;
  473. top:0.1em;
  474. }
  475. }
  476. }
  477. }
  478. footer[role="tools"]{
  479. $list-item-h: 5em;
  480. @mixin resultItem{
  481. box-sizing: border-box;
  482. // we are only on 10 colls as 2 are occupied by sides
  483. flex-basis: percentage(2/($default_sum - 2));
  484. height: $list-item-h;
  485. overflow: hidden;
  486. padding-bottom: 1em;
  487. padding-right: $default_gap;
  488. article{
  489. max-height: 100%;
  490. overflow: hidden;
  491. }
  492. article.item{
  493. h1{
  494. @include title3black;
  495. font-weight: 600;
  496. max-width: 95%;
  497. }
  498. h2{
  499. @include title3black;
  500. text-transform: none;
  501. }
  502. span{
  503. font-size: 0.882em;
  504. }
  505. // .preview{
  506. // font-size: 0.882em;
  507. // margin:0;
  508. // code{
  509. // @include fontserif;
  510. // background-color: lighten(desaturate($rouge,20%), 20%);
  511. // padding:0 0.2em;
  512. // }
  513. // }
  514. }
  515. }
  516. #history{
  517. z-index: 8;
  518. background-color: $or;
  519. padding:1.2em $side-padding;
  520. max-height: $list-item-h;
  521. @include accordeon-transition($list-item-h);
  522. >header{
  523. }
  524. .history-list{
  525. overflow-x: hidden;
  526. .wrapper{
  527. height:100%;
  528. // hidding the scrollbar
  529. overflow-y: auto;
  530. // width:calc(100% + 1em);
  531. padding-right: 1em;
  532. >ul{
  533. padding:0;
  534. display: flex;
  535. flex-direction: row;
  536. flex-wrap: wrap;
  537. }
  538. }
  539. li.item{
  540. @include resultItem;
  541. }
  542. }
  543. }
  544. #results{
  545. z-index: 9;
  546. background-color: $gris;
  547. padding:1.2em $side-padding;
  548. max-height: $list-item-h * 5;
  549. @include accordeon-transition($list-item-h * 3);
  550. >header{
  551. .search-keys{
  552. font-size: 0.756em;
  553. font-weight: 500;
  554. }
  555. .results-count{
  556. font-size: 0.756em;
  557. }
  558. }
  559. .results-list{
  560. overflow-x: hidden;
  561. .wrapper{
  562. position:relative;
  563. height:100%;
  564. // hidding the scrollbar
  565. overflow-y: auto;
  566. // width:calc(100% + 1em);
  567. padding-right: 1em;
  568. >ul{
  569. padding:0;
  570. display: flex;
  571. flex-direction: row;
  572. flex-wrap: wrap;
  573. }
  574. }
  575. li.result{
  576. @include resultItem;
  577. }
  578. .infinite-loading-container{
  579. // TODO: how to center the loading
  580. }
  581. }
  582. }
  583. #footer-bottom{
  584. z-index: 10;
  585. padding:0 $side-padding;
  586. background-color: $bleuroi;
  587. &>*{
  588. // disable grid gap
  589. padding-right: 0;
  590. }
  591. #footer-tabs{
  592. ul{
  593. padding:0; margin:0;
  594. display: flex;
  595. flex-direction: column;
  596. li{
  597. flex: 1 1 auto;
  598. .wrapper{
  599. box-sizing: border-box;
  600. line-height: 0.6em;
  601. height:2em;
  602. width: calc(100% + $side-padding);
  603. margin-left:-$side-padding;
  604. padding:0.3em 0.5em 0.3em $side-padding;
  605. }
  606. &.history .wrapper{
  607. background-color: $or;
  608. }
  609. &.results .wrapper{
  610. background-color: $gris;
  611. }
  612. span{
  613. font-size: 0.693em;
  614. font-weight: 400;
  615. text-transform: uppercase;
  616. cursor: pointer;
  617. @include fade-transition;
  618. }
  619. }
  620. }
  621. }
  622. #search{
  623. color: #fff;
  624. background-color: $bleuroi;
  625. form{
  626. padding: 0;
  627. // display: flex;
  628. // flex-direction: row;
  629. // flex-wrap: wrap;
  630. fieldset{
  631. padding:0.7em 1em;
  632. border: none;
  633. box-sizing:border-box;
  634. // width correction as row is not the same width as others in the page
  635. // flex-basis: percentage(2/($default_sum - 1));
  636. flex-basis: 17.667%;
  637. // flex-basis: percentage(2 / 11);
  638. &:not(:first-of-type){
  639. border-left: 1px solid $grisclair;
  640. }
  641. }
  642. fieldset.search{
  643. display: inline-flex;
  644. >div{
  645. width:80%;
  646. vertical-align: middle;
  647. }
  648. label[for="keys"]{
  649. display: none;
  650. }
  651. input[type="text"]{
  652. padding:0.3em;
  653. margin:0 0 0.3em 0;
  654. box-sizing: border-box;
  655. font-size: 0.756em;
  656. line-height: 1;
  657. width:100%;
  658. height:1.2em;
  659. border:none;
  660. border-radius: 2px;
  661. }
  662. span.mdi{
  663. display: inline-block;
  664. margin:0 0 0 0.5em;
  665. font-size: 1.2em;
  666. line-height:1.1;
  667. vertical-align:middle;
  668. width:1.2em; height:1.2em;
  669. border-radius: 0.6em;
  670. background-color: #fff;
  671. color: $bleuroi;
  672. text-align: center;
  673. font-weight: 700;
  674. cursor: pointer;
  675. }
  676. }
  677. }
  678. fieldset.filters{
  679. .vs__actions{
  680. background-color: $grisclair;
  681. align-items:baseline;
  682. padding-top:0.2em;
  683. }
  684. }
  685. }
  686. }
  687. h2{
  688. margin:0;
  689. font-size: 0.756em;
  690. font-weight: 400;
  691. text-transform: uppercase;
  692. padding:0;
  693. }
  694. }
  695. // vue-select
  696. .v-select{
  697. padding:0;
  698. div[role="combobox"]{
  699. background-color: #fff;
  700. padding:0;
  701. border-radius: 2px;
  702. border: none;
  703. }
  704. input[type="search"]{
  705. margin:0;
  706. padding:0;
  707. }
  708. .vs__search{
  709. &, &:focus{
  710. font-size: 0.756em;
  711. line-height: 1;
  712. height:1.2em;
  713. border:none;
  714. box-sizing: border-box;
  715. }
  716. }
  717. .vs__actions{
  718. padding:1px 3px;
  719. svg[role="presentation"]{
  720. transform: scale(0.8);
  721. path{
  722. fill: $bleuroi;
  723. }
  724. }
  725. }
  726. .vs__selected{
  727. margin:0;
  728. padding:0.2em 0;
  729. line-height:1;
  730. font-size: 0.756em;
  731. background-color: #fff;
  732. border:none;
  733. align-items: middle;
  734. box-sizing: content-box;
  735. display: inline-block;
  736. width: calc(100% - 12px);
  737. // &>*:not(button){
  738. // display: inline-block;
  739. // width:70%;
  740. // }
  741. button{
  742. svg{
  743. transform: scale(0.8);
  744. path{
  745. fill: $bleuroi;
  746. }
  747. }
  748. &.vs__deselect{
  749. line-height: 0;
  750. }
  751. }
  752. }
  753. // border-radius: 2px;
  754. // border: none;
  755. }
  756. ul[role="listbox"]{
  757. @include fontsans;
  758. padding:0;
  759. margin:0;
  760. border:none;
  761. position: relative;
  762. li{
  763. box-sizing: content-box;
  764. padding:0.3em;
  765. margin:0;
  766. font-size: 0.756em;
  767. line-height: 1;
  768. white-space: normal;
  769. position: relative;
  770. *{
  771. max-width: 100%;
  772. }
  773. }
  774. }
  775. // ___
  776. // |_ _|__ ___ _ _ ___
  777. // | |/ _/ _ \ ' \(_-<
  778. // |___\__\___/_||_/__/
  779. span.mdi-close{
  780. cursor: pointer;
  781. }
  782. @keyframes spin {
  783. from {
  784. transform:rotate(0deg);
  785. }
  786. to {
  787. transform:rotate(360deg);
  788. }
  789. }
  790. span.mdi-loading{
  791. animation-name: spin;
  792. animation-duration: 2000ms;
  793. animation-iteration-count: infinite;
  794. animation-timing-function: linear;
  795. }