app.scss 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363
  1. @import './base/reset';
  2. @import './base/variables';
  3. @import './base/colors';
  4. @import './base/grid-flex';
  5. @import './base/transitions';
  6. @import './base/layout';
  7. @import './base/fonts';
  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. // background-image: url('/static/img/grille-ligne-de-base.png');
  29. // background-repeat: repeat;
  30. }
  31. #root{
  32. }
  33. .red{
  34. background-color: red;
  35. color:white;
  36. }
  37. header[role="banner"]{
  38. div.wrapper{
  39. display: grid;
  40. grid-template-columns: 1fr 1fr;
  41. }
  42. h1.site-title{
  43. grid-column: 1;
  44. margin:0;
  45. font-size: 1em;
  46. }
  47. nav#header-menu{
  48. grid-column: 2;
  49. text-align: right;
  50. >ul>li{
  51. display: inline-block;
  52. margin-right: 1em;
  53. position: relative;
  54. >ul{
  55. position: absolute;
  56. top:1em; right:-1em;
  57. overflow: hidden;
  58. padding-bottom: 0.5em;
  59. background-color: white;
  60. >li{
  61. padding:0 1em;
  62. // margin-right: -1em;
  63. transition: height 0.3s ease-in-out;
  64. height:0;
  65. overflow: hidden;
  66. }
  67. }
  68. //
  69. // &:focus-within
  70. // &:hover,
  71. &.opened{
  72. >ul>li{
  73. height:1em;
  74. }
  75. }
  76. &.has-submenu{
  77. cursor: pointer;
  78. }
  79. }
  80. li>span,li>a{
  81. font-size: 0.9em;
  82. color: $bleuroi;
  83. text-transform: uppercase;
  84. }
  85. }
  86. }
  87. section[role="main-content"]{
  88. #home{
  89. header{
  90. text-align: center;
  91. h1{
  92. color: $bleuroi;
  93. font-size: 8em;
  94. font-weight: 300;
  95. margin:15vh 0 0;
  96. }
  97. h2{
  98. color: $or;
  99. font-size: 2em;
  100. font-weight: 300;
  101. margin:1em 0 0;
  102. text-transform: uppercase;
  103. letter-spacing: 0.2em;
  104. sup{
  105. // line-height: 5em;
  106. vertical-align:text-top;
  107. font-size: 0.7em
  108. }
  109. }
  110. }
  111. // $filet_space:8em;
  112. // $decallage: 0.5em;
  113. section{
  114. padding-top: 8em;
  115. }
  116. @mixin teasersfilet($filet_space, $decallage){
  117. &:before, &:after{
  118. z-index: 0;
  119. content: "";
  120. position: absolute;
  121. opacity: 0.4;
  122. }
  123. &:before{
  124. border:1px solid $or;
  125. width:calc(100% + #{$filet_space*2 + $decallage*2});
  126. left:- $filet_space - $default_gap/2 -$decallage;
  127. height:calc(100% + #{$filet_space});
  128. top:- $filet_space / 2;
  129. }
  130. &:after{
  131. border:1px solid $rouge;
  132. width:calc(100% + #{$filet_space*2});
  133. left:- $filet_space - $default_gap/2;
  134. height:calc(100% + #{$filet_space + $decallage*2});
  135. top:- $filet_space / 2 - $decallage;
  136. }
  137. }
  138. div.teasers{
  139. display: flex;
  140. flex-direction: row;
  141. flex-wrap: nowrap;
  142. position: relative;
  143. padding-right: 0;
  144. article{
  145. box-sizing: border-box;
  146. flex-basis: percentage(2 / ( $default_sum - 6) );
  147. padding-right: $default_gap;
  148. @include fontsans;
  149. h1{
  150. color: $bleuroi;
  151. }
  152. p{
  153. font-size: 0.882em;
  154. line-height: 1.2;
  155. }
  156. span{
  157. color:$rouge;
  158. font-size:0.693em;
  159. }
  160. }
  161. // filets decoratif
  162. @include teasersfilet(8em, 0.5em);
  163. }
  164. // responsive
  165. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  166. header{
  167. h1{
  168. font-size: 5em;
  169. margin:7vh 0 0;
  170. }
  171. h2{
  172. font-size: 1em;
  173. }
  174. }
  175. section{
  176. padding-top: 4em;
  177. }
  178. div.teasers{
  179. flex-direction: column;
  180. // filets decoratif
  181. @include teasersfilet(4em, 0.5em);
  182. }
  183. }
  184. }
  185. #list-corpus, .index{
  186. >header{
  187. &>h1{
  188. @include titleSansRed;
  189. margin: 0;
  190. }
  191. }
  192. article.item{
  193. // margin: 2em 0 0;
  194. header{
  195. margin:0;
  196. h1{
  197. margin:0;
  198. span.title{
  199. @include title1black;
  200. color: $bleuroi;
  201. }
  202. span.quantity{
  203. @include title4black;
  204. }
  205. }
  206. }
  207. }
  208. &:not(#list-corpus){
  209. ul.item-list{
  210. li{
  211. // margin: 0 0 2em 0;
  212. max-height: $base-line * 3;
  213. opacity: 1;
  214. transition: all 0.3s ease-in-out;
  215. &.hidden {
  216. // display: none;
  217. max-height: 0.01px;
  218. opacity: 0;
  219. }
  220. }
  221. }
  222. }
  223. ul.item-list{
  224. li{
  225. // margin: 0 0 2em 0;
  226. header{
  227. h2{
  228. @include title1blue;
  229. // margin:0.4em 0 0.2em;
  230. margin-bottom: $base-line / 2;
  231. }
  232. h3{
  233. margin:0;
  234. @include fontsans;
  235. font-size: 0.756em;
  236. font-weight: 500;
  237. line-height: $base-line / 2;
  238. }
  239. margin-bottom: $base-line / 2;
  240. }
  241. h4{
  242. margin:0;
  243. font-weight: 300;
  244. @include fontsans;
  245. font-size: 0.756em;
  246. line-height: $base-line / 2;
  247. &.texts-quantity{
  248. color: $rouge;
  249. // margin: 0.3em 0 0;
  250. }
  251. }
  252. section.editions{
  253. div.editions{
  254. ol{
  255. padding:0;
  256. li{
  257. margin:0.7em 1em;
  258. }
  259. }
  260. }
  261. }
  262. section.texts{
  263. ul.texts-list{
  264. padding: 0 0 0 1em;
  265. li{
  266. margin-bottom: $base-line / 2;
  267. }
  268. h3{
  269. @include title2black;
  270. // margin: 0.7em 0 0.3em;
  271. line-height: $base-line / 2;
  272. }
  273. p{
  274. font-weight: 300;
  275. @include fontsans;
  276. font-size: 0.756em;
  277. margin: 0;
  278. line-height: $base-line / 2;
  279. }
  280. }
  281. }
  282. ul {
  283. li{
  284. margin:0 0 0 1em;
  285. h3{
  286. margin: 0.5em 0;
  287. font-weight: 400;
  288. font-size: 1em;
  289. }
  290. }
  291. }
  292. }
  293. }
  294. .abc{
  295. ul{
  296. li{
  297. opacity: 1;
  298. transition: opacity 0.3s ease-in-out;
  299. &.inactive{
  300. opacity: 0.4;
  301. }
  302. span{
  303. @include fontcaption;
  304. font-variant: small-caps;
  305. font-size: 1em;
  306. cursor: pointer;
  307. line-height: $base-line / 2;
  308. }
  309. }
  310. }
  311. }
  312. }
  313. #corpus{
  314. }
  315. .index{
  316. }
  317. .index-item{
  318. header{
  319. h1{
  320. @include title1black;
  321. margin:0 0 0.3em;
  322. }
  323. p{
  324. margin: 0 0 0.5em 0;
  325. }
  326. h3{
  327. @include title2black
  328. margin:0;
  329. }
  330. .authors{
  331. a{
  332. @include title2black;
  333. color: $bleuroi;
  334. }
  335. margin:0 0 0.3em;
  336. }
  337. .mdi{
  338. color: $bleuroilight;
  339. font-size: 0.7em;
  340. }
  341. .attested-forms{
  342. ul{
  343. // >li{
  344. // margin: 0 0 1em 0;
  345. // li{
  346. // margin: 0 0 0.5em 0;
  347. // }
  348. // }
  349. }
  350. a{
  351. @include title4grey;
  352. color: $grisfonce;
  353. font-weight: 400;
  354. }
  355. }
  356. }
  357. .tabs{
  358. border-bottom: 1px solid $bleuroilight;
  359. margin-bottom: $base-line / 2;
  360. .tab{
  361. cursor: pointer;
  362. border-radius: 5px 5px 0 0;
  363. z-index: 10;
  364. display: inline-block;
  365. margin-bottom: -2px;
  366. padding: 0.3em 0.5em;
  367. border: 1px solid $bleuroilight;
  368. &.active{
  369. border-bottom: 2px solid white;
  370. }
  371. }
  372. }
  373. .occurences{
  374. >ul{
  375. >li{
  376. padding:0 0 $base-line / 2 0;
  377. h3{
  378. @include title2black;
  379. padding:0 0 $base-line / 2 0;
  380. color: $bleuroi;
  381. }
  382. >ul{
  383. >li{
  384. // padding:0 0 0.5em 0;
  385. section{
  386. h4{
  387. @include title3black;
  388. display: inline-block;
  389. a{
  390. span.form{
  391. font-style: italic;
  392. }
  393. }
  394. }
  395. // ? c'est quoi ça ?
  396. // span.open-close{
  397. // cursor: pointer;
  398. // display: inline-block;
  399. // svg{
  400. // transform: rotate(-90deg) scale(0.8);
  401. // transition: transform 0.3s ease-in-out;
  402. // path{
  403. // fill:$bleuroi;
  404. // }
  405. // }
  406. // }
  407. // div.text{
  408. // max-height: 0;
  409. // transition: max-height 0.3s ease-in-out;
  410. // overflow: hidden;
  411. // box-sizing: content-box;
  412. // p, h1, h2, h3, h4, h5, h6{
  413. // margin: 0.5em 0 0 0;
  414. // }
  415. // }
  416. // a.lire-plus{
  417. // color: $bleuroi;
  418. // opacity: 0;
  419. // display: inline-block;
  420. // height: 0;
  421. // overflow: hidden;
  422. // transition: height, opacity 0.3s ease-in-out;
  423. // }
  424. // &.opened{
  425. // span.open-close{
  426. // cursor: pointer;
  427. // display: inline-block;
  428. // svg{
  429. // transform: scale(0.8) rotate(0);
  430. // }
  431. // }
  432. // div.text{
  433. // max-height:100px;
  434. // }
  435. // a.lire-plus{
  436. // opacity: 1;
  437. // height:1em;
  438. // }
  439. // }
  440. }
  441. }
  442. }
  443. }
  444. }
  445. }
  446. .attested-forms-occurences{
  447. ul{
  448. >li{
  449. margin: 0 0 1em 0;
  450. h3{
  451. @include title2black;
  452. padding:0 0 $base-line / 2 0;
  453. }
  454. li{
  455. margin: 0 0 0.5em 0;
  456. h4{
  457. @include title3black;
  458. display: inline-block;
  459. a{
  460. span.edition{
  461. font-style: italic;
  462. }
  463. }
  464. }
  465. }
  466. }
  467. }
  468. a{
  469. @include title4grey;
  470. color: $grisfonce;
  471. font-weight: 400;
  472. }
  473. }
  474. nav{
  475. h3{
  476. @include title2black;
  477. margin:0 0 0.5em;
  478. }
  479. h4{
  480. @include title3black;
  481. margin:0 0 0.5em;
  482. color: $bleuroi;
  483. }
  484. }
  485. }
  486. #edition{
  487. >header{
  488. position: relative;
  489. h1{
  490. @include title1black;
  491. }
  492. aside.index-tooltip{
  493. z-index:10;
  494. margin-top: -1.75em;
  495. position:absolute;
  496. text-align: right;
  497. right: 2em;
  498. h1 {
  499. @include title2black;
  500. margin:0 0 0.5em 0;
  501. }
  502. p{
  503. margin:0 0 0.5em 0;
  504. }
  505. time{
  506. font-weight: 600;
  507. }
  508. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  509. background-color: #fff;
  510. padding: 1em;
  511. box-shadow: 0 0 10px $gris;
  512. *{
  513. pointer-events: none;
  514. }
  515. }
  516. }
  517. }
  518. $pagenum_w:1em;
  519. >section{
  520. padding-right: 0;
  521. >.wrapper{
  522. padding-right: $pagenum_w*3;
  523. // outline: orange solid thin;
  524. }
  525. div#text{
  526. // .infinite-loading-container{
  527. // height:0;
  528. // overflow: hidden;
  529. // }
  530. .text-wrapper{
  531. // padding-left: 1em;
  532. position: relative;
  533. }
  534. .textrefcopylink{
  535. display: block;
  536. position: absolute;
  537. z-index: 99;
  538. span.mdi-open-in-new {
  539. position: relative;
  540. z-index: 10;
  541. margin-left: 1px;
  542. }
  543. .popup{
  544. position: absolute;
  545. top:0;
  546. left: 1px;
  547. // width: 15em;
  548. background-color: #fff;
  549. border-radius: 3px;
  550. padding: 1em 1em 1em 1.5em;
  551. box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  552. display: none;
  553. opacity: 0.1;
  554. // outline: 1px solid blue;
  555. transition: opacity 2s ease-in-out;
  556. button.copy-btn{
  557. display: block;
  558. padding: 0.5em 0.2em;
  559. @include fontcaption;
  560. white-space: nowrap;
  561. border: none;
  562. background: none;
  563. cursor: pointer;
  564. }
  565. }
  566. &:hover .popup{
  567. display: block;
  568. opacity: 1;
  569. transition: opacity 2s ease-in-out;
  570. }
  571. }
  572. div.tei{
  573. position: relative;
  574. width: calc(100% - #{$pagenum_w});
  575. // DEBUG
  576. color:chartreuse;
  577. &>*{ color: #1A1A1A;}
  578. // @media only screen and (min-width: $small-bp + 1) {
  579. padding-right: $pagenum_w;
  580. border-left: 1px dotted $grisclair;
  581. padding-left: 1em;
  582. margin-left:1.2em;
  583. overflow: visible;
  584. &.active{
  585. border-left: 1px dotted $bleuroi;
  586. }
  587. // }
  588. >h1{
  589. @include teititle1blue;
  590. }
  591. span.placeName,
  592. span.objectName,
  593. span.persName{
  594. font-weight: 600;
  595. }
  596. h1{ font-size: 1.512em;
  597. line-height: $base-line; }
  598. p{
  599. margin-top: 0;
  600. font-size: 1.134em;
  601. line-height: $base-line;
  602. margin-bottom: $base-line / 2;
  603. span.persName,
  604. span.placeName,
  605. span.objectName{
  606. font-weight: 600;
  607. }
  608. a{
  609. font-weight: 600;
  610. &.active-link{
  611. color: $rouge;
  612. // text-decoration: underline;
  613. line-height: $base-line/2;
  614. }
  615. sup.mdi{
  616. font-size: 0.630em;
  617. vertical-align: super;
  618. // line-height: 0.1;
  619. padding: 0 0.2em;
  620. }
  621. }
  622. }
  623. span[role="pageNum"]{
  624. font-size: 16px;
  625. position: relative;
  626. float:right;
  627. width: $pagenum_w; height:$base-line/4;
  628. border-bottom: 1px solid $bleuroilight;
  629. border-right: 1px solid $bleuroilight;
  630. // outline: solid red thin;
  631. // margin-left:calc(100% - #{$pagenum_w * 2});
  632. // margin-left: 100%;
  633. margin-right: - $pagenum_w * 1.5;
  634. &:before{
  635. // outline: solid green thin;
  636. content:attr(data-num);
  637. font-size: 0.630em;
  638. line-height: $base-line/3;
  639. position: absolute;
  640. right: 0;
  641. top:$base-line/2;
  642. color: $bleuroi;
  643. // top:0;
  644. // width: $pagenum_w*2; height: $pagenum_w;
  645. // border-top: 1px solid $bleuroilight;
  646. // border-right: 1px solid $bleuroilight;
  647. // text-indent: $pagenum_w * 2.5;
  648. }
  649. }
  650. a.text-item-link{
  651. // float: left;
  652. position: absolute;
  653. top:0; left:0;
  654. // display: block;
  655. // width:1em; height:1em;
  656. font-size: 0.630em;
  657. .mdi{
  658. color: $bleuroi;
  659. pointer-events: none;
  660. }
  661. }
  662. // front page
  663. header{
  664. padding-top: $base-line;
  665. h1{
  666. @include teititlefrontblue;
  667. .initial{
  668. display: inline-block;
  669. text-transform: uppercase;
  670. font-size: 1.3em;
  671. line-height: $base-line*2;
  672. margin: $base-line/2 0;
  673. }
  674. }
  675. }
  676. .byline{
  677. text-align: center;
  678. font-style: italic;
  679. padding-bottom: 1em;
  680. }
  681. .docImprint{
  682. text-align: center;
  683. // padding-bottom: 1em;
  684. }
  685. .imprimatur{
  686. text-align: center;
  687. font-style: italic;
  688. padding-bottom: 1em;
  689. }
  690. figure{
  691. // outline: 1px solid red;
  692. background-color: $grisclair;
  693. margin:1em 0;
  694. img{
  695. width: 100%;
  696. }
  697. figcaption{
  698. @include fontcaption
  699. padding: 0.5em;
  700. }
  701. }
  702. ul{
  703. line-height: $base-line;
  704. margin-bottom: $base-line/2;
  705. }
  706. blockquote{
  707. margin: $base-line/2 1em;
  708. line-height: $base-line;
  709. p{
  710. margin: 0;
  711. }
  712. }
  713. }
  714. }
  715. }
  716. >nav{
  717. $pager_h:2em;
  718. display: flex;
  719. flex-direction: column;
  720. span.nav-title{ display:none; }
  721. section#toc{
  722. box-sizing: content-box;
  723. padding:0 0 1em 1.5em;
  724. height:calc(100% - #{$pager_h});
  725. overflow-x: hidden;
  726. overflow-y: auto;
  727. line-height: $base-line / 2;
  728. >ul{
  729. ul{
  730. li{
  731. ul{
  732. overflow: hidden;
  733. max-height: 1000px;
  734. transition: max-height 0.5s ease-in-out;
  735. // transform: scaleY(1);
  736. // transform-origin: top;
  737. // transition: transform 0.3s ease-in-out;
  738. &:not(.opened){
  739. // height:0;
  740. max-height:0;
  741. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  742. // transform: scaleY(0);
  743. }
  744. // &.opened{
  745. // border: 1px solid red;
  746. // }
  747. // padding-left: 1em;
  748. border-left: 0.5px solid $grisclair;
  749. // min-height: 1em;
  750. margin-bottom: 0em;
  751. li{
  752. // min-height: 1em;
  753. // border-left: 1px solid red;
  754. padding:0 0 0 1em;
  755. }
  756. }
  757. }
  758. }
  759. .toc-title{
  760. @include title4grey;
  761. &.active,
  762. &:hover{
  763. color:$grisfonce;
  764. font-weight: 600;
  765. }
  766. &.loaded{
  767. color:$grisfonce;
  768. }
  769. }
  770. // h2.toc-title{font-size: 0.882em;}
  771. // h3.toc-title{font-size: 0.882em;}
  772. // h4.toc-title{font-size: 0.882em;}
  773. // h5.toc-title{font-size: 0.882em;}
  774. // h6.toc-title{font-size: 0.882em;}
  775. // span.toc-title{font-size: 0.882em;}
  776. }
  777. }
  778. div#page-nav{
  779. height:$pager_h;
  780. overflow: hidden;
  781. box-sizing: content-box;
  782. padding:1em 0 0 1.5em;
  783. select{
  784. option{
  785. padding:0;
  786. }
  787. }
  788. }
  789. }
  790. // responsive
  791. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  792. position: relative;
  793. >nav{
  794. $top: 45px;
  795. z-index: 2;
  796. position: absolute;
  797. top:$top;
  798. right:0;
  799. background-color: #fff;
  800. width:percentage(10/$default_sum);
  801. box-sizing: border-box;
  802. padding-top: 1em;
  803. padding-bottom: 1em;
  804. height:calc(100% - #{$top});
  805. transform: translateX(100%);
  806. transition: transform 0.3s ease-in-out;
  807. span.nav-title{
  808. display: block;
  809. position: absolute;
  810. top:4.5em; left:-1.8em;
  811. transform: rotateZ(-90deg);
  812. transform-origin: center;
  813. @include fontsans;
  814. font-size: 0.600em;
  815. cursor: pointer;
  816. color: $bleuroi;
  817. svg{
  818. vertical-align: bottom;
  819. transform-origin: center;
  820. transform: scale(0.8) rotate(180deg);
  821. transition: transform 0.3s ease-in-out;
  822. path{
  823. fill: $bleuroi;
  824. }
  825. }
  826. }
  827. &.opened{
  828. box-shadow: -3px -3px 5px $grisclair;
  829. transform: translateX(0);
  830. span.nav-title{
  831. svg{
  832. transform: scale(0.7) rotate(0);
  833. }
  834. }
  835. }
  836. }
  837. }
  838. }
  839. #biblio{
  840. .router-link-active{
  841. font-weight: 600;
  842. }
  843. ul.item-list{
  844. margin:0;
  845. padding:0;
  846. li{
  847. padding:0;
  848. margin:0 0 1.5em 0;
  849. h2{
  850. margin:0;
  851. @include title2black;
  852. }
  853. p{
  854. margin:0;
  855. }
  856. }
  857. }
  858. }
  859. }
  860. footer[role="tools"]{
  861. $list-item-h: 7em;
  862. @mixin resultItem{
  863. box-sizing: border-box;
  864. // we are only on 10 colls as 2 are occupied by sides
  865. flex-basis: percentage(2/($default_sum - 2));
  866. max-height: $list-item-h;
  867. overflow: hidden;
  868. padding-bottom: 1em;
  869. padding-right: $default_gap;
  870. article{
  871. max-height: 100%;
  872. overflow: hidden;
  873. }
  874. article.item{
  875. h1{
  876. @include title3black;
  877. font-weight: 600;
  878. max-width: 95%;
  879. }
  880. h2{
  881. @include title3black;
  882. text-transform: none;
  883. }
  884. span{
  885. font-size: 0.882em;
  886. }
  887. // .preview{
  888. // font-size: 0.882em;
  889. // margin:0;
  890. // code{
  891. // @include fontserif;
  892. // background-color: lighten(desaturate($rouge,20%), 20%);
  893. // padding:0 0.2em;
  894. // }
  895. // }
  896. }
  897. }
  898. #history{
  899. z-index: 8;
  900. background-color: $or;
  901. padding:1.2em $side-padding;
  902. max-height: $list-item-h;
  903. @include accordeon-transition($list-item-h);
  904. >header{
  905. }
  906. .history-list{
  907. overflow-x: hidden;
  908. .wrapper{
  909. height:100%;
  910. // hidding the scrollbar
  911. overflow-y: auto;
  912. // width:calc(100% + 1em);
  913. padding-right: 1em;
  914. >ul{
  915. padding:0;
  916. display: flex;
  917. flex-direction: row;
  918. flex-wrap: wrap;
  919. }
  920. }
  921. li.item{
  922. @include resultItem;
  923. }
  924. }
  925. }
  926. #results{
  927. z-index: 9;
  928. background-color: $gris;
  929. padding:1.2em $side-padding;
  930. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  931. padding:1.2em $side-padding/2;
  932. }
  933. max-height: $list-item-h * 3;
  934. @include accordeon-transition($list-item-h * 3);
  935. >header{
  936. .search-keys{
  937. font-size: 0.756em;
  938. font-weight: 500;
  939. }
  940. .results-count{
  941. font-size: 0.756em;
  942. }
  943. }
  944. .results-list{
  945. overflow-x: hidden;
  946. .wrapper{
  947. position:relative;
  948. height:100%;
  949. // hidding the scrollbar
  950. overflow-y: auto;
  951. // width:calc(100% + 1em);
  952. padding-right: 1em;
  953. >ul{
  954. padding:0;
  955. display: flex;
  956. flex-direction: row;
  957. flex-wrap: wrap;
  958. }
  959. }
  960. li.result{
  961. @include resultItem;
  962. }
  963. .infinite-loading-container{
  964. // TODO: how to center the loading
  965. }
  966. }
  967. >header, section.results-list{
  968. transition: opacity 0.2s ease-in-out;
  969. }
  970. &.loading {
  971. >header, section.results-list{
  972. transition: opacity 0.5s ease-in-out;
  973. opacity:0.5;
  974. pointer-events: none;
  975. }
  976. }
  977. // responsive
  978. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  979. position: relative;
  980. >header{
  981. padding:0 0 1em 0;
  982. >*{
  983. display: inline-block;
  984. margin-right: 1em;
  985. }
  986. #sorting{
  987. width:10em;
  988. }
  989. }
  990. >section.results-list{
  991. max-height: 15em;
  992. li.result{
  993. flex-basis: 33%;
  994. }
  995. }
  996. >nav{
  997. position: absolute;
  998. top:1.2em; right:1.2em;
  999. }
  1000. }
  1001. }
  1002. #footer-bottom{
  1003. z-index: 10;
  1004. padding:0 $side-padding;
  1005. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1006. padding:0 $side-padding/2;
  1007. }
  1008. background-color: $bleuroi;
  1009. &>*{
  1010. // disable grid gap
  1011. padding-right: 0;
  1012. }
  1013. #footer-tabs{
  1014. ul{
  1015. padding:0; margin:0;
  1016. display: flex;
  1017. flex-direction: column;
  1018. li{
  1019. flex: 1 1 auto;
  1020. .wrapper{
  1021. box-sizing: border-box;
  1022. line-height: 0.6em;
  1023. height:2em;
  1024. width: calc(100% + $side-padding);
  1025. margin-left:-$side-padding;
  1026. padding:0.3em 0.5em 0.3em $side-padding;
  1027. }
  1028. &.history .wrapper{
  1029. background-color: $or;
  1030. }
  1031. &.results .wrapper{
  1032. background-color: $gris;
  1033. }
  1034. span{
  1035. font-size: 0.693em;
  1036. font-weight: 400;
  1037. text-transform: uppercase;
  1038. cursor: pointer;
  1039. @include fade-transition;
  1040. }
  1041. }
  1042. }
  1043. }
  1044. #search{
  1045. color: #fff;
  1046. background-color: $bleuroi;
  1047. form{
  1048. padding: 0;
  1049. // display: flex;
  1050. // flex-direction: row;
  1051. // flex-wrap: wrap;
  1052. fieldset{
  1053. padding:0.7em 1em;
  1054. border: none;
  1055. box-sizing:border-box;
  1056. // width correction as row is not the same width as others in the page
  1057. // flex-basis: percentage(2/($default_sum - 1));
  1058. // flex-basis: 17.667%;
  1059. // flex-basis: percentage(2 / 11);
  1060. &:not(:first-of-type){
  1061. border-left: 1px solid $grisclair;
  1062. }
  1063. }
  1064. fieldset.search{
  1065. display: inline-flex;
  1066. >div{
  1067. width:80%;
  1068. vertical-align: middle;
  1069. }
  1070. label[for="keys"]{
  1071. display: none;
  1072. }
  1073. input[type="text"]{
  1074. padding:0em 0.3em;
  1075. margin:0 0 0.3em 0;
  1076. box-sizing: border-box;
  1077. font-size: 0.756em;
  1078. line-height: 1;
  1079. width:100%;
  1080. height:1.4em;
  1081. border:none;
  1082. border-radius: 2px;
  1083. }
  1084. span.mdi{
  1085. display: inline-block;
  1086. margin:0 0 0 0.5em;
  1087. font-size: 1.2em;
  1088. line-height:1.1;
  1089. vertical-align:middle;
  1090. width:1.2em; height:1.2em;
  1091. border-radius: 0.6em;
  1092. background-color: #fff;
  1093. color: $bleuroi;
  1094. text-align: center;
  1095. font-weight: 700;
  1096. cursor: pointer;
  1097. }
  1098. }
  1099. }
  1100. fieldset.filters{
  1101. .vs__actions{
  1102. // background-color: $grisclair;
  1103. align-items:baseline;
  1104. padding-top:0.2em;
  1105. }
  1106. }
  1107. form{
  1108. transition: opacity 0.2s ease-in-out;
  1109. }
  1110. &.loading{
  1111. form{
  1112. opacity:0.5;
  1113. transition: opacity 0.5s ease-in-out;
  1114. pointer-events: none;
  1115. }
  1116. }
  1117. // responsive
  1118. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1119. form{
  1120. fieldset{
  1121. &.search{
  1122. >div{
  1123. display: inline-flex;
  1124. flex-wrap: nowrap;
  1125. width:84%;
  1126. >*{
  1127. flex-basis: 45%;
  1128. margin: 0 0.5em 0 0;
  1129. // box-sizing: content-box;
  1130. // width:auto!important;
  1131. &#keys[type="text"]{
  1132. margin-right:1.5em;
  1133. }
  1134. }
  1135. }
  1136. span.mdi{
  1137. width:1em; height:1em;
  1138. margin-top: -0.1em;
  1139. margin-left: 0;
  1140. }
  1141. }
  1142. &.filters{
  1143. border-left: none;
  1144. flex-basis: 32%;
  1145. padding: 0.2em 0 1em 1em;
  1146. }
  1147. }
  1148. }
  1149. }
  1150. }
  1151. }
  1152. h2{
  1153. margin:0;
  1154. font-size: 0.756em;
  1155. font-weight: 400;
  1156. text-transform: uppercase;
  1157. padding:0;
  1158. }
  1159. }
  1160. // vue-select
  1161. .v-select{
  1162. padding:0;
  1163. div[role="combobox"]{
  1164. background-color: #fff;
  1165. padding:0;
  1166. border-radius: 2px;
  1167. border: none;
  1168. }
  1169. input[type="search"]{
  1170. margin:0;
  1171. padding:0;
  1172. -webkit-appearance:textfield;
  1173. -webkit-box-sizing:content-box;
  1174. }
  1175. input::-webkit-search-decoration,
  1176. input::-webkit-search-cancel-button {
  1177. display: none;
  1178. }
  1179. .vs__search{
  1180. &, &:focus{
  1181. font-size: 0.756em;
  1182. line-height: 1;
  1183. height:1.2em;
  1184. border:none;
  1185. box-sizing: border-box;
  1186. }
  1187. }
  1188. .vs__dropdown-toggle{
  1189. input::placeholder{background-color: #fff;}
  1190. }
  1191. .vs__selected-options{
  1192. background-color: #fff;
  1193. }
  1194. .vs__actions{
  1195. padding:1px 3px;
  1196. button.vs__clear{
  1197. line-height: 0.5;
  1198. // height:0;
  1199. }
  1200. svg[role="presentation"]{
  1201. transform: scale(0.8);
  1202. path{
  1203. fill: $bleuroi;
  1204. }
  1205. }
  1206. }
  1207. .vs__selected{
  1208. margin:0;
  1209. padding:0.2em 0;
  1210. line-height:1;
  1211. font-size: 0.756em;
  1212. background-color: #fff;
  1213. border:none;
  1214. align-items: middle;
  1215. box-sizing: content-box;
  1216. display: inline-block;
  1217. width: calc(100% - 12px);
  1218. // &>*:not(button){
  1219. // display: inline-block;
  1220. // width:70%;
  1221. // }
  1222. button{
  1223. svg{
  1224. transform: scale(0.8);
  1225. path{
  1226. fill: $bleuroi;
  1227. }
  1228. }
  1229. &.vs__deselect{
  1230. line-height: 0;
  1231. }
  1232. }
  1233. }
  1234. // border-radius: 2px;
  1235. // border: none;
  1236. }
  1237. ul[role="listbox"]{
  1238. @include fontsans;
  1239. padding:0;
  1240. margin:0;
  1241. border:none;
  1242. position: relative;
  1243. li{
  1244. box-sizing: content-box;
  1245. padding:0.3em;
  1246. margin:0;
  1247. font-size: 0.756em;
  1248. line-height: 1;
  1249. white-space: normal;
  1250. position: relative;
  1251. *{
  1252. max-width: 100%;
  1253. }
  1254. }
  1255. }
  1256. // ___
  1257. // |_ _|__ ___ _ _ ___
  1258. // | |/ _/ _ \ ' \(_-<
  1259. // |___\__\___/_||_/__/
  1260. span.mdi-close{
  1261. cursor: pointer;
  1262. }
  1263. @keyframes spin {
  1264. from {
  1265. transform:rotate(0deg);
  1266. }
  1267. to {
  1268. transform:rotate(360deg);
  1269. }
  1270. }
  1271. span.mdi-loading{
  1272. animation-name: spin;
  1273. animation-duration: 2000ms;
  1274. animation-iteration-count: infinite;
  1275. animation-timing-function: linear;
  1276. }
  1277. // _ _ _
  1278. // | | ___ __ _ __| (_)_ _ __ _
  1279. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1280. // |____\___/\__,_\__,_|_|_||_\__, |
  1281. // |___/
  1282. span.loading{
  1283. @include fontsans;
  1284. font-size: 0.756em;
  1285. color: $grisfonce;
  1286. animation: pulseloading 4s infinite;
  1287. }
  1288. @keyframes pulseloading{
  1289. 0% {
  1290. opacity: 1;
  1291. }
  1292. 50%{
  1293. opacity: 0;
  1294. }
  1295. 100% {
  1296. opacity: 1;
  1297. }
  1298. }