app.scss 18 KB

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