app.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  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. >section{
  327. padding:0 0 0 1.5em;
  328. >ul{
  329. ul{
  330. li{
  331. ul{
  332. overflow: hidden;
  333. max-height: 1000px;
  334. transition: max-height 0.5s ease-in-out;
  335. // transform: scaleY(1);
  336. // transform-origin: top;
  337. // transition: transform 0.3s ease-in-out;
  338. &:not(.opened){
  339. // height:0;
  340. max-height:0;
  341. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  342. // transform: scaleY(0);
  343. }
  344. // &.opened{
  345. // border: 1px solid red;
  346. // }
  347. // padding-left: 1em;
  348. border-left: 0.5px solid $grisclair;
  349. // min-height: 1em;
  350. margin-bottom: 0em;
  351. li{
  352. // min-height: 1em;
  353. // border-left: 1px solid red;
  354. padding:0 0 0.2em 1em;
  355. }
  356. }
  357. }
  358. }
  359. .toc-title{
  360. color: $gris;
  361. font-weight: 400;
  362. margin:0;
  363. &.active,
  364. &:hover{
  365. color:$grisfonce;
  366. font-weight: 600;
  367. }
  368. &.loaded{
  369. color:$grisfonce;
  370. }
  371. }
  372. h2.toc-title{font-size: 0.882em;}
  373. h3.toc-title{font-size: 0.882em;}
  374. h4.toc-title{font-size: 0.882em;}
  375. h5.toc-title{font-size: 0.882em;}
  376. h6.toc-title{font-size: 0.882em;}
  377. span.toc-title{font-size: 0.882em;}
  378. }
  379. }
  380. }
  381. }
  382. #text{
  383. .tei{
  384. width: 93%;
  385. h1{
  386. font-size: 1.512em;
  387. }
  388. p{
  389. margin-top: 0;
  390. font-size: 1.134em;
  391. line-height: 1.5;
  392. span.persName,
  393. span.placeName,
  394. span.objectName{
  395. font-weight: 600;
  396. }
  397. a{
  398. font-weight: 600;
  399. &.active-link{
  400. color: $rouge;
  401. // text-decoration: underline;
  402. }
  403. sup.mdi{
  404. font-size: 0.630em;
  405. vertical-align: super;
  406. // line-height: 0.1;
  407. padding: 0 0.2em;
  408. }
  409. }
  410. }
  411. }
  412. // <span role=\"pageBreak\" data-num=\"15\"></span>
  413. span[role="pageBreak"]{
  414. display:block;
  415. position: relative;
  416. $w:3em;
  417. width:$w; height:0;
  418. margin-left:calc(100% - (#{$w} * 0.5));
  419. &:before, &:after{
  420. display: block;
  421. position: absolute;
  422. font-size: 0.630em;
  423. width:$w; height:$w;
  424. line-height: $w *0.95;
  425. padding-left: 1em;
  426. border-right: 1px solid $bleuroilight;
  427. color: $bleuroi;
  428. text-indent: $w + 0.5em;
  429. }
  430. &:before{
  431. content:attr(data-num-prev);
  432. border-bottom: 1px solid $bleuroilight;
  433. bottom: 0.1em;
  434. }
  435. &:after{
  436. content:attr(data-num);
  437. border-top: 1px solid $bleuroilight;
  438. top:0.1em;
  439. }
  440. }
  441. }
  442. }
  443. footer[role="tools"]{
  444. $list-item-h: 5.3em;
  445. #history{
  446. z-index: 8;
  447. background-color: $or;
  448. padding:1.2em $side-padding;
  449. max-height: $list-item-h;
  450. @include accordeon-transition($list-item-h);
  451. >header{
  452. }
  453. .history-list{
  454. overflow-x: hidden;
  455. .wrapper{
  456. height:100%;
  457. // hidding the scrollbar
  458. overflow-y: auto;
  459. width:calc(100% + 1em);
  460. padding-right: 1em;
  461. >ul{
  462. padding:0;
  463. display: flex;
  464. flex-direction: row;
  465. flex-wrap: wrap;
  466. }
  467. }
  468. li.item{
  469. box-sizing: border-box;
  470. // we are only on 10 colls as 2 are occupied by sides
  471. flex-basis: percentage(2/($default_sum - 2));
  472. height: $list-item-h;
  473. overflow: hidden;
  474. padding-bottom: 1em;
  475. padding-right: $default_gap;
  476. article{
  477. max-height: 100%;
  478. overflow: hidden;
  479. }
  480. }
  481. article.history.item{
  482. header{
  483. h1{
  484. font-size: 0.882em;
  485. font-weight: normal;
  486. margin:0 0 0.5em 0;
  487. }
  488. }
  489. .extract{
  490. p{
  491. font-size: 0.882em;
  492. margin:0;
  493. }
  494. code{
  495. background-color: lighten(desaturate($rouge,20%), 20%);
  496. }
  497. }
  498. }
  499. }
  500. }
  501. #results{
  502. z-index: 9;
  503. background-color: $gris;
  504. padding:1.2em $side-padding;
  505. max-height: $list-item-h * 5;
  506. @include accordeon-transition($list-item-h * 3);
  507. >header{
  508. .search-keys{
  509. font-size: 0.756em;
  510. font-weight: 500;
  511. }
  512. .results-count{
  513. font-size: 0.756em;
  514. }
  515. }
  516. .results-list{
  517. overflow-x: hidden;
  518. .wrapper{
  519. height:100%;
  520. // hidding the scrollbar
  521. overflow-y: auto;
  522. width:calc(100% + 1em);
  523. padding-right: 1em;
  524. >ul{
  525. padding:0;
  526. display: flex;
  527. flex-direction: row;
  528. flex-wrap: wrap;
  529. }
  530. }
  531. li.result{
  532. box-sizing: border-box;
  533. // we are only on 10 colls as 2 are occupied by sides
  534. flex-basis: percentage(2/($default_sum - 2));
  535. height: $list-item-h;
  536. overflow: hidden;
  537. padding-bottom: 1em;
  538. padding-right: $default_gap;
  539. article{
  540. max-height: 100%;
  541. overflow: hidden;
  542. }
  543. }
  544. article.result.item{
  545. header{
  546. h1{
  547. @include title3black;
  548. font-weight: 600;
  549. }
  550. h2{
  551. @include title3black;
  552. }
  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. }
  566. #footer-bottom{
  567. z-index: 10;
  568. padding:0 $side-padding;
  569. background-color: $bleuroi;
  570. &>*{
  571. // disable grid gap
  572. padding-right: 0;
  573. }
  574. #footer-tabs{
  575. ul{
  576. padding:0; margin:0;
  577. display: flex;
  578. flex-direction: column;
  579. li{
  580. flex: 1 1 auto;
  581. .wrapper{
  582. box-sizing: border-box;
  583. line-height: 0.6em;
  584. height:2em;
  585. width: calc(100% + $side-padding);
  586. margin-left:-$side-padding;
  587. padding:0.3em 0.5em 0.3em $side-padding;
  588. }
  589. &.history .wrapper{
  590. background-color: $or;
  591. }
  592. &.results .wrapper{
  593. background-color: $gris;
  594. }
  595. span{
  596. font-size: 0.693em;
  597. font-weight: 400;
  598. text-transform: uppercase;
  599. cursor: pointer;
  600. @include fade-transition;
  601. }
  602. }
  603. }
  604. }
  605. #search{
  606. color: #fff;
  607. background-color: $bleuroi;
  608. form{
  609. padding: 0.7em;
  610. fieldset{
  611. padding:0em 1em;
  612. border: none;
  613. &:not(:first-of-type){
  614. border-left: 1px solid $grisclair;
  615. }
  616. }
  617. fieldset.search{
  618. >div{
  619. display: inline-block;
  620. width:80%;
  621. vertical-align: middle;
  622. }
  623. label[for="keys"]{
  624. display: none;
  625. }
  626. input[type="text"]{
  627. padding:0.3em;
  628. margin:0 0 0.3em 0;
  629. box-sizing: border-box;
  630. font-size: 0.756em;
  631. line-height: 1;
  632. width:100%;
  633. height:1.2em;
  634. border:none;
  635. border-radius: 2px;
  636. }
  637. span.mdi{
  638. display: inline-block;
  639. margin:0 0 0 0.5em;
  640. font-size: 1.2em;
  641. line-height:1.1;
  642. vertical-align:middle;
  643. width:1.2em; height:1.2em;
  644. border-radius: 0.6em;
  645. background-color: #fff;
  646. color: $bleuroi;
  647. text-align: center;
  648. font-weight: 700;
  649. cursor: pointer;
  650. }
  651. }
  652. }
  653. }
  654. }
  655. h2{
  656. margin:0;
  657. font-size: 0.756em;
  658. font-weight: 400;
  659. text-transform: uppercase;
  660. padding:0;
  661. }
  662. .v-select{
  663. padding:0;
  664. div[role="combobox"]{
  665. background-color: #fff;
  666. padding:0;
  667. border-radius: 2px;
  668. border: none;
  669. }
  670. input[type="search"]{
  671. margin:0;
  672. padding:0;
  673. }
  674. .vs__search{
  675. &, &:focus{
  676. font-size: 0.756em;
  677. line-height: 1;
  678. height:1.2em;
  679. border:none;
  680. box-sizing: border-box;
  681. }
  682. }
  683. .vs__actions{
  684. padding:1px 3px;
  685. svg[role="presentation"]{
  686. transform: scale(0.8);
  687. path{
  688. fill: $bleuroi;
  689. }
  690. }
  691. }
  692. .vs__selected{
  693. margin:0;
  694. padding:0;
  695. line-height:1;
  696. font-size: 0.756em;
  697. }
  698. // border-radius: 2px;
  699. // border: none;
  700. }
  701. fieldset.filters .v-select{
  702. .vs__selected{
  703. background-color: #fff;
  704. border:none;
  705. padding:0.3em 0.5em;
  706. button{
  707. svg{
  708. transform: scale(0.8);
  709. path{
  710. fill: $bleuroi;
  711. }
  712. }
  713. }
  714. }
  715. }
  716. }
  717. // vue-select
  718. ul[role="listbox"]{
  719. @include fontsans;
  720. padding:0;
  721. margin:0;
  722. border:none;
  723. li{
  724. padding:0.3em;
  725. margin:0;
  726. font-size: 0.756em;
  727. line-height: 1;
  728. }
  729. }
  730. // ___
  731. // |_ _|__ ___ _ _ ___
  732. // | |/ _/ _ \ ' \(_-<
  733. // |___\__\___/_||_/__/
  734. span.mdi-close{
  735. cursor: pointer;
  736. }
  737. @keyframes spin {
  738. from {
  739. transform:rotate(0deg);
  740. }
  741. to {
  742. transform:rotate(360deg);
  743. }
  744. }
  745. span.mdi-loading{
  746. animation-name: spin;
  747. animation-duration: 2000ms;
  748. animation-iteration-count: infinite;
  749. animation-timing-function: linear;
  750. }