app.scss 18 KB

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