app.scss 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364
  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. align-items: center;
  1067. >div{
  1068. width:80%;
  1069. vertical-align: middle;
  1070. }
  1071. label[for="keys"]{
  1072. display: none;
  1073. }
  1074. input[type="text"]{
  1075. padding:0em 0.3em;
  1076. margin:0 0 0.3em 0;
  1077. box-sizing: border-box;
  1078. font-size: 0.756em;
  1079. line-height: 1;
  1080. width:100%;
  1081. height:1.4em;
  1082. border:none;
  1083. border-radius: 2px;
  1084. }
  1085. span.mdi{
  1086. display: inline-block;
  1087. margin:0 0 0 0.5em;
  1088. font-size: 1.2em;
  1089. line-height:1.1;
  1090. vertical-align:middle;
  1091. width:1.2em; height:1.2em;
  1092. border-radius: 0.6em;
  1093. background-color: #fff;
  1094. color: $bleuroi;
  1095. text-align: center;
  1096. font-weight: 700;
  1097. cursor: pointer;
  1098. }
  1099. }
  1100. }
  1101. fieldset.filters{
  1102. .vs__actions{
  1103. // background-color: $grisclair;
  1104. align-items:baseline;
  1105. padding-top:0.2em;
  1106. }
  1107. }
  1108. form{
  1109. transition: opacity 0.2s ease-in-out;
  1110. }
  1111. &.loading{
  1112. form{
  1113. opacity:0.5;
  1114. transition: opacity 0.5s ease-in-out;
  1115. pointer-events: none;
  1116. }
  1117. }
  1118. // responsive
  1119. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1120. form{
  1121. fieldset{
  1122. &.search{
  1123. >div{
  1124. display: inline-flex;
  1125. flex-wrap: nowrap;
  1126. width:84%;
  1127. >*{
  1128. flex-basis: 45%;
  1129. margin: 0 0.5em 0 0;
  1130. // box-sizing: content-box;
  1131. // width:auto!important;
  1132. &#keys[type="text"]{
  1133. margin-right:1.5em;
  1134. }
  1135. }
  1136. }
  1137. span.mdi{
  1138. width:1em; height:1em;
  1139. margin-top: -0.1em;
  1140. margin-left: 0;
  1141. }
  1142. }
  1143. &.filters{
  1144. border-left: none;
  1145. flex-basis: 32%;
  1146. padding: 0.2em 0 1em 1em;
  1147. }
  1148. }
  1149. }
  1150. }
  1151. }
  1152. }
  1153. h2{
  1154. margin:0;
  1155. font-size: 0.756em;
  1156. font-weight: 400;
  1157. text-transform: uppercase;
  1158. padding:0;
  1159. }
  1160. }
  1161. // vue-select
  1162. .v-select{
  1163. padding:0;
  1164. div[role="combobox"]{
  1165. background-color: #fff;
  1166. padding:0;
  1167. border-radius: 2px;
  1168. border: none;
  1169. }
  1170. input[type="search"]{
  1171. margin:0;
  1172. padding:0;
  1173. -webkit-appearance:textfield;
  1174. -webkit-box-sizing:content-box;
  1175. }
  1176. input::-webkit-search-decoration,
  1177. input::-webkit-search-cancel-button {
  1178. display: none;
  1179. }
  1180. .vs__search{
  1181. &, &:focus{
  1182. font-size: 0.756em;
  1183. line-height: 1;
  1184. height:1.2em;
  1185. border:none;
  1186. box-sizing: border-box;
  1187. }
  1188. }
  1189. .vs__dropdown-toggle{
  1190. input::placeholder{background-color: #fff;}
  1191. }
  1192. .vs__selected-options{
  1193. background-color: #fff;
  1194. }
  1195. .vs__actions{
  1196. padding:1px 3px;
  1197. button.vs__clear{
  1198. line-height: 0.5;
  1199. // height:0;
  1200. }
  1201. svg[role="presentation"]{
  1202. transform: scale(0.8);
  1203. path{
  1204. fill: $bleuroi;
  1205. }
  1206. }
  1207. }
  1208. .vs__selected{
  1209. margin:0;
  1210. padding:0.2em 0;
  1211. line-height:1;
  1212. font-size: 0.756em;
  1213. background-color: #fff;
  1214. border:none;
  1215. align-items: middle;
  1216. box-sizing: content-box;
  1217. display: inline-block;
  1218. width: calc(100% - 12px);
  1219. // &>*:not(button){
  1220. // display: inline-block;
  1221. // width:70%;
  1222. // }
  1223. button{
  1224. svg{
  1225. transform: scale(0.8);
  1226. path{
  1227. fill: $bleuroi;
  1228. }
  1229. }
  1230. &.vs__deselect{
  1231. line-height: 0;
  1232. }
  1233. }
  1234. }
  1235. // border-radius: 2px;
  1236. // border: none;
  1237. }
  1238. ul[role="listbox"]{
  1239. @include fontsans;
  1240. padding:0;
  1241. margin:0;
  1242. border:none;
  1243. position: relative;
  1244. li{
  1245. box-sizing: content-box;
  1246. padding:0.3em;
  1247. margin:0;
  1248. font-size: 0.756em;
  1249. line-height: 1;
  1250. white-space: normal;
  1251. position: relative;
  1252. *{
  1253. max-width: 100%;
  1254. }
  1255. }
  1256. }
  1257. // ___
  1258. // |_ _|__ ___ _ _ ___
  1259. // | |/ _/ _ \ ' \(_-<
  1260. // |___\__\___/_||_/__/
  1261. span.mdi-close{
  1262. cursor: pointer;
  1263. }
  1264. @keyframes spin {
  1265. from {
  1266. transform:rotate(0deg);
  1267. }
  1268. to {
  1269. transform:rotate(360deg);
  1270. }
  1271. }
  1272. span.mdi-loading{
  1273. animation-name: spin;
  1274. animation-duration: 2000ms;
  1275. animation-iteration-count: infinite;
  1276. animation-timing-function: linear;
  1277. }
  1278. // _ _ _
  1279. // | | ___ __ _ __| (_)_ _ __ _
  1280. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1281. // |____\___/\__,_\__,_|_|_||_\__, |
  1282. // |___/
  1283. span.loading{
  1284. @include fontsans;
  1285. font-size: 0.756em;
  1286. color: $grisfonce;
  1287. animation: pulseloading 4s infinite;
  1288. }
  1289. @keyframes pulseloading{
  1290. 0% {
  1291. opacity: 1;
  1292. }
  1293. 50%{
  1294. opacity: 0;
  1295. }
  1296. 100% {
  1297. opacity: 1;
  1298. }
  1299. }