app.scss 30 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367
  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 title1black;
  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. @include title4grey;
  389. color: $grisfonce;
  390. font-weight: 400;
  391. display: inline-block;
  392. a{
  393. span.form{
  394. font-style: italic;
  395. }
  396. }
  397. }
  398. // ? c'est quoi ça ?
  399. // span.open-close{
  400. // cursor: pointer;
  401. // display: inline-block;
  402. // svg{
  403. // transform: rotate(-90deg) scale(0.8);
  404. // transition: transform 0.3s ease-in-out;
  405. // path{
  406. // fill:$bleuroi;
  407. // }
  408. // }
  409. // }
  410. // div.text{
  411. // max-height: 0;
  412. // transition: max-height 0.3s ease-in-out;
  413. // overflow: hidden;
  414. // box-sizing: content-box;
  415. // p, h1, h2, h3, h4, h5, h6{
  416. // margin: 0.5em 0 0 0;
  417. // }
  418. // }
  419. // a.lire-plus{
  420. // color: $bleuroi;
  421. // opacity: 0;
  422. // display: inline-block;
  423. // height: 0;
  424. // overflow: hidden;
  425. // transition: height, opacity 0.3s ease-in-out;
  426. // }
  427. // &.opened{
  428. // span.open-close{
  429. // cursor: pointer;
  430. // display: inline-block;
  431. // svg{
  432. // transform: scale(0.8) rotate(0);
  433. // }
  434. // }
  435. // div.text{
  436. // max-height:100px;
  437. // }
  438. // a.lire-plus{
  439. // opacity: 1;
  440. // height:1em;
  441. // }
  442. // }
  443. }
  444. }
  445. }
  446. }
  447. }
  448. }
  449. .attested-forms-occurences{
  450. ul{
  451. >li{
  452. margin: 0 0 1em 0;
  453. h3{
  454. @include title1black;
  455. padding:0 0 $base-line / 2 0;
  456. }
  457. li{
  458. margin: 0 0 0.5em 0;
  459. h4{
  460. // @include title3black;
  461. @include title4grey;
  462. color: $grisfonce;
  463. font-weight: 400;
  464. display: inline-block;
  465. a{
  466. span.edition{
  467. font-style: italic;
  468. }
  469. }
  470. }
  471. }
  472. }
  473. }
  474. }
  475. nav{
  476. h3{
  477. @include title2black;
  478. margin:0 0 0.5em;
  479. }
  480. h4{
  481. @include title3black;
  482. margin:0 0 0.5em;
  483. color: $bleuroi;
  484. }
  485. }
  486. }
  487. #edition{
  488. >header{
  489. position: relative;
  490. h1{
  491. @include title1black;
  492. }
  493. aside.index-tooltip{
  494. z-index:10;
  495. margin-top: -1.75em;
  496. position:absolute;
  497. text-align: right;
  498. right: 2em;
  499. h1 {
  500. @include title2black;
  501. margin:0 0 0.5em 0;
  502. }
  503. p{
  504. margin:0 0 0.5em 0;
  505. }
  506. time{
  507. font-weight: 600;
  508. }
  509. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  510. background-color: #fff;
  511. padding: 1em;
  512. box-shadow: 0 0 10px $gris;
  513. *{
  514. pointer-events: none;
  515. }
  516. }
  517. }
  518. }
  519. $pagenum_w:1em;
  520. >section{
  521. padding-right: 0;
  522. >.wrapper{
  523. padding-right: $pagenum_w*3;
  524. // outline: orange solid thin;
  525. }
  526. div#text{
  527. // .infinite-loading-container{
  528. // height:0;
  529. // overflow: hidden;
  530. // }
  531. .text-wrapper{
  532. // padding-left: 1em;
  533. position: relative;
  534. }
  535. .textrefcopylink{
  536. display: block;
  537. position: absolute;
  538. z-index: 99;
  539. span.mdi-open-in-new {
  540. position: relative;
  541. z-index: 10;
  542. margin-left: 1px;
  543. }
  544. .popup{
  545. position: absolute;
  546. top:0;
  547. left: 1px;
  548. // width: 15em;
  549. background-color: #fff;
  550. border-radius: 3px;
  551. padding: 1em 1em 1em 1.5em;
  552. box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  553. display: none;
  554. opacity: 0.1;
  555. // outline: 1px solid blue;
  556. transition: opacity 2s ease-in-out;
  557. button.copy-btn{
  558. display: block;
  559. padding: 0.5em 0.2em;
  560. @include fontcaption;
  561. white-space: nowrap;
  562. border: none;
  563. background: none;
  564. cursor: pointer;
  565. }
  566. }
  567. &:hover .popup{
  568. display: block;
  569. opacity: 1;
  570. transition: opacity 2s ease-in-out;
  571. }
  572. }
  573. div.tei{
  574. position: relative;
  575. width: calc(100% - #{$pagenum_w});
  576. // DEBUG
  577. color:chartreuse;
  578. &>*{ color: #1A1A1A;}
  579. // @media only screen and (min-width: $small-bp + 1) {
  580. padding-right: $pagenum_w;
  581. border-left: 1px dotted $grisclair;
  582. padding-left: 1em;
  583. margin-left:1.2em;
  584. overflow: visible;
  585. &.active{
  586. border-left: 1px dotted $bleuroi;
  587. }
  588. // }
  589. >h1{
  590. @include teititle1blue;
  591. }
  592. span.placeName,
  593. span.objectName,
  594. span.persName{
  595. font-weight: 600;
  596. }
  597. h1{ font-size: 1.512em;
  598. line-height: $base-line; }
  599. p{
  600. margin-top: 0;
  601. font-size: 1.134em;
  602. line-height: $base-line;
  603. margin-bottom: $base-line / 2;
  604. span.persName,
  605. span.placeName,
  606. span.objectName{
  607. font-weight: 600;
  608. }
  609. a{
  610. font-weight: 600;
  611. &.active-link{
  612. color: $rouge;
  613. // text-decoration: underline;
  614. line-height: $base-line/2;
  615. }
  616. sup.mdi{
  617. font-size: 0.630em;
  618. vertical-align: super;
  619. // line-height: 0.1;
  620. padding: 0 0.2em;
  621. }
  622. }
  623. }
  624. span[role="pageNum"]{
  625. font-size: 16px;
  626. position: relative;
  627. float:right;
  628. width: $pagenum_w; height:$base-line/4;
  629. border-bottom: 1px solid $bleuroilight;
  630. border-right: 1px solid $bleuroilight;
  631. // outline: solid red thin;
  632. // margin-left:calc(100% - #{$pagenum_w * 2});
  633. // margin-left: 100%;
  634. margin-right: - $pagenum_w * 1.5;
  635. &:before{
  636. // outline: solid green thin;
  637. content:attr(data-num);
  638. font-size: 0.630em;
  639. line-height: $base-line/3;
  640. position: absolute;
  641. right: 0;
  642. top:$base-line/2;
  643. color: $bleuroi;
  644. // top:0;
  645. // width: $pagenum_w*2; height: $pagenum_w;
  646. // border-top: 1px solid $bleuroilight;
  647. // border-right: 1px solid $bleuroilight;
  648. // text-indent: $pagenum_w * 2.5;
  649. }
  650. }
  651. a.text-item-link{
  652. // float: left;
  653. position: absolute;
  654. top:0; left:0;
  655. // display: block;
  656. // width:1em; height:1em;
  657. font-size: 0.630em;
  658. .mdi{
  659. color: $bleuroi;
  660. pointer-events: none;
  661. }
  662. }
  663. // front page
  664. header{
  665. padding-top: $base-line;
  666. h1{
  667. @include teititlefrontblue;
  668. .initial{
  669. display: inline-block;
  670. text-transform: uppercase;
  671. font-size: 1.3em;
  672. line-height: $base-line*2;
  673. margin: $base-line/2 0;
  674. }
  675. }
  676. }
  677. .byline{
  678. text-align: center;
  679. font-style: italic;
  680. padding-bottom: 1em;
  681. }
  682. .docImprint{
  683. text-align: center;
  684. // padding-bottom: 1em;
  685. }
  686. .imprimatur{
  687. text-align: center;
  688. font-style: italic;
  689. padding-bottom: 1em;
  690. }
  691. figure{
  692. // outline: 1px solid red;
  693. background-color: $grisclair;
  694. margin:1em 0;
  695. img{
  696. width: 100%;
  697. }
  698. figcaption{
  699. @include fontcaption
  700. padding: 0.5em;
  701. }
  702. }
  703. ul{
  704. line-height: $base-line;
  705. margin-bottom: $base-line/2;
  706. }
  707. blockquote{
  708. margin: $base-line/2 1em;
  709. line-height: $base-line;
  710. p{
  711. margin: 0;
  712. }
  713. }
  714. }
  715. }
  716. }
  717. >nav{
  718. $pager_h:2em;
  719. display: flex;
  720. flex-direction: column;
  721. span.nav-title{ display:none; }
  722. section#toc{
  723. box-sizing: content-box;
  724. padding:0 0 1em 1.5em;
  725. height:calc(100% - #{$pager_h});
  726. overflow-x: hidden;
  727. overflow-y: auto;
  728. line-height: $base-line / 2;
  729. >ul{
  730. ul{
  731. li{
  732. ul{
  733. overflow: hidden;
  734. max-height: 1000px;
  735. transition: max-height 0.5s ease-in-out;
  736. // transform: scaleY(1);
  737. // transform-origin: top;
  738. // transition: transform 0.3s ease-in-out;
  739. &:not(.opened){
  740. // height:0;
  741. max-height:0;
  742. transition: max-height 0.5s cubic-bezier(0, 1.05, 0, 1);
  743. // transform: scaleY(0);
  744. }
  745. // &.opened{
  746. // border: 1px solid red;
  747. // }
  748. // padding-left: 1em;
  749. border-left: 0.5px solid $grisclair;
  750. // min-height: 1em;
  751. margin-bottom: 0em;
  752. li{
  753. // min-height: 1em;
  754. // border-left: 1px solid red;
  755. padding:0 0 0 1em;
  756. }
  757. }
  758. }
  759. }
  760. .toc-title{
  761. @include title4grey;
  762. &.active,
  763. &:hover{
  764. color:$grisfonce;
  765. font-weight: 600;
  766. }
  767. &.loaded{
  768. color:$grisfonce;
  769. }
  770. }
  771. // h2.toc-title{font-size: 0.882em;}
  772. // h3.toc-title{font-size: 0.882em;}
  773. // h4.toc-title{font-size: 0.882em;}
  774. // h5.toc-title{font-size: 0.882em;}
  775. // h6.toc-title{font-size: 0.882em;}
  776. // span.toc-title{font-size: 0.882em;}
  777. }
  778. }
  779. div#page-nav{
  780. height:$pager_h;
  781. overflow: hidden;
  782. box-sizing: content-box;
  783. padding:1em 0 0 1.5em;
  784. select{
  785. option{
  786. padding:0;
  787. }
  788. }
  789. }
  790. }
  791. // responsive
  792. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  793. position: relative;
  794. >nav{
  795. $top: 45px;
  796. z-index: 2;
  797. position: absolute;
  798. top:$top;
  799. right:0;
  800. background-color: #fff;
  801. width:percentage(10/$default_sum);
  802. box-sizing: border-box;
  803. padding-top: 1em;
  804. padding-bottom: 1em;
  805. height:calc(100% - #{$top});
  806. transform: translateX(100%);
  807. transition: transform 0.3s ease-in-out;
  808. span.nav-title{
  809. display: block;
  810. position: absolute;
  811. top:4.5em; left:-1.8em;
  812. transform: rotateZ(-90deg);
  813. transform-origin: center;
  814. @include fontsans;
  815. font-size: 0.600em;
  816. cursor: pointer;
  817. color: $bleuroi;
  818. svg{
  819. vertical-align: bottom;
  820. transform-origin: center;
  821. transform: scale(0.8) rotate(180deg);
  822. transition: transform 0.3s ease-in-out;
  823. path{
  824. fill: $bleuroi;
  825. }
  826. }
  827. }
  828. &.opened{
  829. box-shadow: -3px -3px 5px $grisclair;
  830. transform: translateX(0);
  831. span.nav-title{
  832. svg{
  833. transform: scale(0.7) rotate(0);
  834. }
  835. }
  836. }
  837. }
  838. }
  839. }
  840. #biblio{
  841. .router-link-active{
  842. font-weight: 600;
  843. }
  844. ul.item-list{
  845. margin:0;
  846. padding:0;
  847. li{
  848. padding:0;
  849. margin:0 0 1.5em 0;
  850. h2{
  851. margin:0;
  852. @include title2black;
  853. }
  854. p{
  855. margin:0;
  856. }
  857. }
  858. }
  859. }
  860. }
  861. footer[role="tools"]{
  862. $list-item-h: 7em;
  863. @mixin resultItem{
  864. box-sizing: border-box;
  865. // we are only on 10 colls as 2 are occupied by sides
  866. flex-basis: percentage(2/($default_sum - 2));
  867. max-height: $list-item-h;
  868. overflow: hidden;
  869. padding-bottom: 1em;
  870. padding-right: $default_gap;
  871. article{
  872. max-height: 100%;
  873. overflow: hidden;
  874. }
  875. article.item{
  876. h1{
  877. @include title3black;
  878. font-weight: 600;
  879. max-width: 95%;
  880. }
  881. h2{
  882. @include title3black;
  883. text-transform: none;
  884. }
  885. span{
  886. font-size: 0.882em;
  887. }
  888. // .preview{
  889. // font-size: 0.882em;
  890. // margin:0;
  891. // code{
  892. // @include fontserif;
  893. // background-color: lighten(desaturate($rouge,20%), 20%);
  894. // padding:0 0.2em;
  895. // }
  896. // }
  897. }
  898. }
  899. #history{
  900. z-index: 8;
  901. background-color: $or;
  902. padding:1.2em $side-padding;
  903. max-height: $list-item-h;
  904. @include accordeon-transition($list-item-h);
  905. >header{
  906. }
  907. .history-list{
  908. overflow-x: hidden;
  909. .wrapper{
  910. height:100%;
  911. // hidding the scrollbar
  912. overflow-y: auto;
  913. // width:calc(100% + 1em);
  914. padding-right: 1em;
  915. >ul{
  916. padding:0;
  917. display: flex;
  918. flex-direction: row;
  919. flex-wrap: wrap;
  920. }
  921. }
  922. li.item{
  923. @include resultItem;
  924. }
  925. }
  926. }
  927. #results{
  928. z-index: 9;
  929. background-color: $gris;
  930. padding:1.2em $side-padding;
  931. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  932. padding:1.2em $side-padding/2;
  933. }
  934. max-height: $list-item-h * 3;
  935. @include accordeon-transition($list-item-h * 3);
  936. >header{
  937. .search-keys{
  938. font-size: 0.756em;
  939. font-weight: 500;
  940. }
  941. .results-count{
  942. font-size: 0.756em;
  943. }
  944. }
  945. .results-list{
  946. overflow-x: hidden;
  947. .wrapper{
  948. position:relative;
  949. height:100%;
  950. // hidding the scrollbar
  951. overflow-y: auto;
  952. // width:calc(100% + 1em);
  953. padding-right: 1em;
  954. >ul{
  955. padding:0;
  956. display: flex;
  957. flex-direction: row;
  958. flex-wrap: wrap;
  959. }
  960. }
  961. li.result{
  962. @include resultItem;
  963. }
  964. .infinite-loading-container{
  965. // TODO: how to center the loading
  966. }
  967. }
  968. >header, section.results-list{
  969. transition: opacity 0.2s ease-in-out;
  970. }
  971. &.loading {
  972. >header, section.results-list{
  973. transition: opacity 0.5s ease-in-out;
  974. opacity:0.5;
  975. pointer-events: none;
  976. }
  977. }
  978. // responsive
  979. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  980. position: relative;
  981. >header{
  982. padding:0 0 1em 0;
  983. >*{
  984. display: inline-block;
  985. margin-right: 1em;
  986. }
  987. #sorting{
  988. width:10em;
  989. }
  990. }
  991. >section.results-list{
  992. max-height: 15em;
  993. li.result{
  994. flex-basis: 33%;
  995. }
  996. }
  997. >nav{
  998. position: absolute;
  999. top:1.2em; right:1.2em;
  1000. }
  1001. }
  1002. }
  1003. #footer-bottom{
  1004. z-index: 10;
  1005. padding:0 $side-padding;
  1006. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1007. padding:0 $side-padding/2;
  1008. }
  1009. background-color: $bleuroi;
  1010. &>*{
  1011. // disable grid gap
  1012. padding-right: 0;
  1013. }
  1014. #footer-tabs{
  1015. ul{
  1016. padding:0; margin:0;
  1017. display: flex;
  1018. flex-direction: column;
  1019. li{
  1020. flex: 1 1 auto;
  1021. .wrapper{
  1022. box-sizing: border-box;
  1023. line-height: 0.6em;
  1024. height:2em;
  1025. width: calc(100% + $side-padding);
  1026. margin-left:-$side-padding;
  1027. padding:0.3em 0.5em 0.3em $side-padding;
  1028. }
  1029. &.history .wrapper{
  1030. background-color: $or;
  1031. }
  1032. &.results .wrapper{
  1033. background-color: $gris;
  1034. }
  1035. span{
  1036. font-size: 0.693em;
  1037. font-weight: 400;
  1038. text-transform: uppercase;
  1039. cursor: pointer;
  1040. @include fade-transition;
  1041. }
  1042. }
  1043. }
  1044. }
  1045. #search{
  1046. color: #fff;
  1047. background-color: $bleuroi;
  1048. form{
  1049. padding: 0;
  1050. // display: flex;
  1051. // flex-direction: row;
  1052. // flex-wrap: wrap;
  1053. fieldset{
  1054. padding:0.7em 1em;
  1055. border: none;
  1056. box-sizing:border-box;
  1057. // width correction as row is not the same width as others in the page
  1058. // flex-basis: percentage(2/($default_sum - 1));
  1059. // flex-basis: 17.667%;
  1060. // flex-basis: percentage(2 / 11);
  1061. &:not(:first-of-type){
  1062. border-left: 1px solid $grisclair;
  1063. }
  1064. }
  1065. fieldset.search{
  1066. display: inline-flex;
  1067. align-items: center;
  1068. >div{
  1069. width:80%;
  1070. vertical-align: middle;
  1071. }
  1072. label[for="keys"]{
  1073. display: none;
  1074. }
  1075. input[type="text"]{
  1076. padding:0em 0.3em;
  1077. margin:0 0 0.3em 0;
  1078. box-sizing: border-box;
  1079. font-size: 0.756em;
  1080. line-height: 1;
  1081. width:100%;
  1082. height:1.4em;
  1083. border:none;
  1084. border-radius: 2px;
  1085. }
  1086. span.mdi{
  1087. display: inline-block;
  1088. margin:0 0 0 0.5em;
  1089. font-size: 1.2em;
  1090. line-height:1.1;
  1091. vertical-align:middle;
  1092. width:1.2em; height:1.2em;
  1093. border-radius: 0.6em;
  1094. background-color: #fff;
  1095. color: $bleuroi;
  1096. text-align: center;
  1097. font-weight: 700;
  1098. cursor: pointer;
  1099. }
  1100. }
  1101. }
  1102. fieldset.filters{
  1103. .vs__actions{
  1104. // background-color: $grisclair;
  1105. align-items:baseline;
  1106. padding-top:0.2em;
  1107. }
  1108. }
  1109. form{
  1110. transition: opacity 0.2s ease-in-out;
  1111. }
  1112. &.loading{
  1113. form{
  1114. opacity:0.5;
  1115. transition: opacity 0.5s ease-in-out;
  1116. pointer-events: none;
  1117. }
  1118. }
  1119. // responsive
  1120. @media only screen and (max-width: $small-bp), (orientation: portrait) {
  1121. form{
  1122. fieldset{
  1123. &.search{
  1124. >div{
  1125. display: inline-flex;
  1126. flex-wrap: nowrap;
  1127. width:84%;
  1128. >*{
  1129. flex-basis: 45%;
  1130. margin: 0 0.5em 0 0;
  1131. // box-sizing: content-box;
  1132. // width:auto!important;
  1133. &#keys[type="text"]{
  1134. margin-right:1.5em;
  1135. }
  1136. }
  1137. }
  1138. span.mdi{
  1139. width:1em; height:1em;
  1140. margin-top: -0.1em;
  1141. margin-left: 0;
  1142. }
  1143. }
  1144. &.filters{
  1145. border-left: none;
  1146. flex-basis: 32%;
  1147. padding: 0.2em 0 1em 1em;
  1148. }
  1149. }
  1150. }
  1151. }
  1152. }
  1153. }
  1154. h2{
  1155. margin:0;
  1156. font-size: 0.756em;
  1157. font-weight: 400;
  1158. text-transform: uppercase;
  1159. padding:0;
  1160. }
  1161. }
  1162. // vue-select
  1163. .v-select{
  1164. padding:0;
  1165. div[role="combobox"]{
  1166. background-color: #fff;
  1167. padding:0;
  1168. border-radius: 2px;
  1169. border: none;
  1170. }
  1171. input[type="search"]{
  1172. margin:0;
  1173. padding:0;
  1174. -webkit-appearance:textfield;
  1175. -webkit-box-sizing:content-box;
  1176. }
  1177. input::-webkit-search-decoration,
  1178. input::-webkit-search-cancel-button {
  1179. display: none;
  1180. }
  1181. .vs__search{
  1182. &, &:focus{
  1183. font-size: 0.756em;
  1184. line-height: 1;
  1185. height:1.2em;
  1186. border:none;
  1187. box-sizing: border-box;
  1188. }
  1189. }
  1190. .vs__dropdown-toggle{
  1191. input::placeholder{background-color: #fff;}
  1192. }
  1193. .vs__selected-options{
  1194. background-color: #fff;
  1195. }
  1196. .vs__actions{
  1197. padding:1px 3px;
  1198. button.vs__clear{
  1199. line-height: 0.5;
  1200. // height:0;
  1201. }
  1202. svg[role="presentation"]{
  1203. transform: scale(0.8);
  1204. path{
  1205. fill: $bleuroi;
  1206. }
  1207. }
  1208. }
  1209. .vs__selected{
  1210. margin:0;
  1211. padding:0.2em 0;
  1212. line-height:1;
  1213. font-size: 0.756em;
  1214. background-color: #fff;
  1215. border:none;
  1216. align-items: middle;
  1217. box-sizing: content-box;
  1218. display: inline-block;
  1219. width: calc(100% - 12px);
  1220. // &>*:not(button){
  1221. // display: inline-block;
  1222. // width:70%;
  1223. // }
  1224. button{
  1225. svg{
  1226. transform: scale(0.8);
  1227. path{
  1228. fill: $bleuroi;
  1229. }
  1230. }
  1231. &.vs__deselect{
  1232. line-height: 0;
  1233. }
  1234. }
  1235. }
  1236. // border-radius: 2px;
  1237. // border: none;
  1238. }
  1239. ul[role="listbox"]{
  1240. @include fontsans;
  1241. padding:0;
  1242. margin:0;
  1243. border:none;
  1244. position: relative;
  1245. li{
  1246. box-sizing: content-box;
  1247. padding:0.3em;
  1248. margin:0;
  1249. font-size: 0.756em;
  1250. line-height: 1;
  1251. white-space: normal;
  1252. position: relative;
  1253. *{
  1254. max-width: 100%;
  1255. }
  1256. }
  1257. }
  1258. // ___
  1259. // |_ _|__ ___ _ _ ___
  1260. // | |/ _/ _ \ ' \(_-<
  1261. // |___\__\___/_||_/__/
  1262. span.mdi-close{
  1263. cursor: pointer;
  1264. }
  1265. @keyframes spin {
  1266. from {
  1267. transform:rotate(0deg);
  1268. }
  1269. to {
  1270. transform:rotate(360deg);
  1271. }
  1272. }
  1273. span.mdi-loading{
  1274. animation-name: spin;
  1275. animation-duration: 2000ms;
  1276. animation-iteration-count: infinite;
  1277. animation-timing-function: linear;
  1278. }
  1279. // _ _ _
  1280. // | | ___ __ _ __| (_)_ _ __ _
  1281. // | |__/ _ \/ _` / _` | | ' \/ _` |
  1282. // |____\___/\__,_\__,_|_|_||_\__, |
  1283. // |___/
  1284. span.loading{
  1285. @include fontsans;
  1286. font-size: 0.756em;
  1287. color: $grisfonce;
  1288. animation: pulseloading 4s infinite;
  1289. }
  1290. @keyframes pulseloading{
  1291. 0% {
  1292. opacity: 1;
  1293. }
  1294. 50%{
  1295. opacity: 0;
  1296. }
  1297. 100% {
  1298. opacity: 1;
  1299. }
  1300. }