app.scss 17 KB

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