app.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  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 1em 0;
  217. h3{
  218. @include title2black;
  219. padding:0 0 0.3em 0;
  220. }
  221. >ul{
  222. >li{
  223. padding:0 0 0.3em 0;
  224. h4{
  225. @include title3black;
  226. }
  227. }
  228. }
  229. }
  230. }
  231. }
  232. }
  233. #edition{
  234. header{
  235. position: relative;
  236. h1{
  237. @include title1black;
  238. }
  239. aside.index-tooltip{
  240. z-index:10;
  241. margin-top: -1.75em;
  242. position:absolute;
  243. text-align: right;
  244. right: 2em;
  245. h1 {
  246. @include title2black;
  247. margin:0 0 0.5em 0;
  248. }
  249. p{
  250. margin:0 0 0.5em 0;
  251. }
  252. time{
  253. font-weight: 600;
  254. }
  255. }
  256. }
  257. >section{
  258. div#text{
  259. .infinite-loading-container{
  260. height:0;
  261. overflow: hidden;
  262. }
  263. div.tei{
  264. border-left: 1px dotted $grisclair;
  265. padding-left: 1em;
  266. &.active{
  267. border-left: 1px dotted $grisfonce;
  268. }
  269. >h1{@include title1blue;}
  270. span.placeName,
  271. span.objectName,
  272. span.persName{
  273. font-weight: 600;
  274. }
  275. }
  276. }
  277. }
  278. >nav{
  279. >section{
  280. padding:0 0 0 1.5em;
  281. >ul{
  282. ul{
  283. li{
  284. ul{
  285. overflow: hidden;
  286. max-height: 1000px;
  287. transition: max-height 0.5s ease-in-out;
  288. // transform: scaleY(1);
  289. // transform-origin: top;
  290. // transition: transform 0.3s ease-in-out;
  291. &:not(.opened){
  292. // height:0;
  293. max-height:0;
  294. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  295. // transform: scaleY(0);
  296. }
  297. // &.opened{
  298. // border: 1px solid red;
  299. // }
  300. // padding-left: 1em;
  301. border-left: 0.5px solid $grisclair;
  302. // min-height: 1em;
  303. margin-bottom: 0em;
  304. li{
  305. // min-height: 1em;
  306. // border-left: 1px solid red;
  307. padding:0 0 0.2em 1em;
  308. }
  309. }
  310. }
  311. }
  312. .toc-title{
  313. color: $gris;
  314. font-weight: 400;
  315. margin:0;
  316. &.active,
  317. &:hover{
  318. color:$grisfonce;
  319. font-weight: 600;
  320. }
  321. &.loaded{
  322. color:$grisfonce;
  323. }
  324. }
  325. h2.toc-title{font-size: 0.882em;}
  326. h3.toc-title{font-size: 0.882em;}
  327. h4.toc-title{font-size: 0.882em;}
  328. h5.toc-title{font-size: 0.882em;}
  329. h6.toc-title{font-size: 0.882em;}
  330. span.toc-title{font-size: 0.882em;}
  331. }
  332. }
  333. }
  334. }
  335. #text{
  336. .tei{
  337. h1{
  338. font-size: 1.512em;
  339. }
  340. p{
  341. margin-top: 0;
  342. font-size: 1.134em;
  343. line-height: 1.5;
  344. span.persName,
  345. span.placeName,
  346. span.objectName{
  347. font-weight: 600;
  348. }
  349. a{
  350. font-weight: 600;
  351. &.active-link{
  352. color: $rouge;
  353. // text-decoration: underline;
  354. }
  355. sup.mdi{
  356. font-size: 0.630em;
  357. vertical-align: super;
  358. // line-height: 0.1;
  359. padding: 0 0.2em;
  360. }
  361. }
  362. }
  363. }
  364. }
  365. }
  366. footer[role="tools"]{
  367. $list-item-h: 5.3em;
  368. #history{
  369. z-index: 8;
  370. background-color: $or;
  371. padding:1.2em $side-padding;
  372. max-height: $list-item-h;
  373. @include accordeon-transition($list-item-h);
  374. >header{
  375. }
  376. .history-list{
  377. overflow-x: hidden;
  378. .wrapper{
  379. height:100%;
  380. // hidding the scrollbar
  381. overflow-y: auto;
  382. width:calc(100% + 1em);
  383. padding-right: 1em;
  384. >ul{
  385. padding:0;
  386. display: flex;
  387. flex-direction: row;
  388. flex-wrap: wrap;
  389. }
  390. }
  391. li.item{
  392. box-sizing: border-box;
  393. // we are only on 10 colls as 2 are occupied by sides
  394. flex-basis: percentage(2/($default_sum - 2));
  395. height: $list-item-h;
  396. overflow: hidden;
  397. padding-bottom: 1em;
  398. padding-right: $default_gap;
  399. article{
  400. max-height: 100%;
  401. overflow: hidden;
  402. }
  403. }
  404. article.history.item{
  405. header{
  406. h1{
  407. font-size: 0.882em;
  408. font-weight: normal;
  409. margin:0 0 0.5em 0;
  410. }
  411. }
  412. .extract{
  413. p{
  414. font-size: 0.882em;
  415. margin:0;
  416. }
  417. code{
  418. background-color: lighten(desaturate($rouge,20%), 20%);
  419. }
  420. }
  421. }
  422. }
  423. }
  424. #results{
  425. z-index: 9;
  426. background-color: $gris;
  427. padding:1.2em $side-padding;
  428. max-height: $list-item-h * 3;
  429. @include accordeon-transition($list-item-h * 3);
  430. >header{
  431. .search-keys{
  432. font-size: 0.756em;
  433. font-weight: 500;
  434. }
  435. .results-count{
  436. font-size: 0.756em;
  437. }
  438. }
  439. .results-list{
  440. overflow-x: hidden;
  441. .wrapper{
  442. height:100%;
  443. // hidding the scrollbar
  444. overflow-y: auto;
  445. width:calc(100% + 1em);
  446. padding-right: 1em;
  447. >ul{
  448. padding:0;
  449. display: flex;
  450. flex-direction: row;
  451. flex-wrap: wrap;
  452. }
  453. }
  454. li.result{
  455. box-sizing: border-box;
  456. // we are only on 10 colls as 2 are occupied by sides
  457. flex-basis: percentage(2/($default_sum - 2));
  458. height: $list-item-h;
  459. overflow: hidden;
  460. padding-bottom: 1em;
  461. padding-right: $default_gap;
  462. article{
  463. max-height: 100%;
  464. overflow: hidden;
  465. }
  466. }
  467. article.result.item{
  468. header{
  469. h1{
  470. font-size: 0.882em;
  471. font-weight: normal;
  472. margin:0 0 0.5em 0;
  473. }
  474. }
  475. .extract{
  476. p{
  477. font-size: 0.882em;
  478. margin:0;
  479. }
  480. code{
  481. background-color: lighten(desaturate($rouge,20%), 20%);
  482. }
  483. }
  484. }
  485. }
  486. }
  487. #footer-bottom{
  488. z-index: 10;
  489. padding:0 $side-padding;
  490. background-color: $bleuroi;
  491. &>*{
  492. // disable grid gap
  493. padding-right: 0;
  494. }
  495. #footer-tabs{
  496. ul{
  497. padding:0; margin:0;
  498. display: flex;
  499. flex-direction: column;
  500. li{
  501. flex: 1 1 auto;
  502. .wrapper{
  503. box-sizing: border-box;
  504. line-height: 0.6em;
  505. height:2em;
  506. width: calc(100% + $side-padding);
  507. margin-left:-$side-padding;
  508. padding:0.3em 0.5em 0.3em $side-padding;
  509. }
  510. &.history .wrapper{
  511. background-color: $or;
  512. }
  513. &.results .wrapper{
  514. background-color: $gris;
  515. }
  516. span{
  517. font-size: 0.693em;
  518. font-weight: 400;
  519. text-transform: uppercase;
  520. cursor: pointer;
  521. @include fade-transition;
  522. }
  523. }
  524. }
  525. }
  526. #search{
  527. color: #fff;
  528. background-color: $bleuroi;
  529. form{
  530. padding: 0.7em;
  531. fieldset{
  532. padding:1em;
  533. border: none;
  534. &:not(:first-of-type){
  535. border-left: 1px solid $grisclair;
  536. }
  537. }
  538. fieldset.search{
  539. >div{
  540. display: inline-block;
  541. width:80%;
  542. vertical-align: middle;
  543. }
  544. label[for="keys"]{
  545. display: none;
  546. }
  547. input[type="text"]{
  548. padding:0.3em;
  549. box-sizing: border-box;
  550. font-size: 0.756em;
  551. line-height: 1;
  552. width:100%;
  553. height:1.2em;
  554. border:none;
  555. border-radius: 2px;
  556. }
  557. #search-type{
  558. padding:0.2em 0 0 0;
  559. div[role="combobox"]{
  560. background-color: #fff;
  561. padding:0;
  562. border-radius: 2px;
  563. border: none;
  564. }
  565. input[type="search"]{
  566. margin:0;
  567. padding:0;
  568. }
  569. .vs__search{
  570. &, &:focus{
  571. font-size: 0.756em;
  572. line-height: 1;
  573. height:1.2em;
  574. border:none;
  575. box-sizing: border-box;
  576. }
  577. }
  578. .vs__actions{
  579. padding:1px 3px;
  580. svg[role="presentation"]{
  581. transform: scale(0.8);
  582. path{
  583. fill: $bleuroi;
  584. }
  585. }
  586. }
  587. .vs__selected{
  588. margin:0;
  589. padding:0;
  590. line-height:1;
  591. font-size: 0.756em;
  592. }
  593. // border-radius: 2px;
  594. // border: none;
  595. }
  596. // input[type="submit"]{
  597. // #submit-search{
  598. // border:none;
  599. //
  600. // }
  601. // }
  602. span.mdi{
  603. display: inline-block;
  604. font-size: 1.2em;
  605. line-height:1.1;
  606. vertical-align:middle;
  607. width:1.2em; height:1.2em;
  608. border-radius: 0.6em;
  609. background-color: #fff;
  610. color: $bleuroi;
  611. text-align: center;
  612. font-weight: 700;
  613. cursor: pointer;
  614. }
  615. }
  616. }
  617. }
  618. }
  619. h2{
  620. margin:0;
  621. font-size: 0.756em;
  622. font-weight: 400;
  623. text-transform: uppercase;
  624. padding:0;
  625. }
  626. }
  627. // vue-select
  628. ul[role="listbox"]{
  629. @include fontsans;
  630. padding:0;
  631. margin:0;
  632. border:none;
  633. li{
  634. padding:0.3em;
  635. margin:0;
  636. font-size: 0.756em;
  637. line-height: 1;
  638. }
  639. }
  640. // ___
  641. // |_ _|__ ___ _ _ ___
  642. // | |/ _/ _ \ ' \(_-<
  643. // |___\__\___/_||_/__/
  644. span.mdi-close{
  645. cursor: pointer;
  646. }
  647. @keyframes spin {
  648. from {
  649. transform:rotate(0deg);
  650. }
  651. to {
  652. transform:rotate(360deg);
  653. }
  654. }
  655. span.mdi-loading{
  656. animation-name: spin;
  657. animation-duration: 2000ms;
  658. animation-iteration-count: infinite;
  659. animation-timing-function: linear;
  660. }