app.scss 28 KB

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